~ubuntu-branches/ubuntu/raring/octave-miscellaneous/raring

« back to all changes in this revision

Viewing changes to src/xmltree.h

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot, Sébastien Villemot, Rafael Laboissiere
  • Date: 2012-04-02 13:20:23 UTC
  • mfrom: (8.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20120402132023-03ksp2he2ty1qfis
Tags: 1.1.0-1
[ Sébastien Villemot ]
* Imported Upstream version 1.1.0
* debian/patches/match-cell-array.patch: remove patch (applied upstream)
* debian/patches/waitbar-rename.patch: remove patch (applied upstream)
* debian/patches/no-flexml.patch: remove obsolete patch, flex no longer used
  (Closes: #666294)
* debian/copyright: reflect upstream changes
* debian/octave-miscellaneous.docs: remove, no more docs in the package
* debian/clean: remove obsolete file
* debian/rules: remove hack for wrong permissions in upstream tarball

[ Rafael Laboissiere ]
* debian/watch: Use the SourceForge redirector

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2004 Laurent Mazet
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License as published by
6
 
 * the Free Software Foundation; either version 2 of the License, or
7
 
 * (at your option) any later version.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful,
10
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
 * GNU General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program; If not, see <http://www.gnu.org/licenses/>.
16
 
 */
17
 
 
18
 
/* 2004-01-25
19
 
 *   initial release
20
 
 */
21
 
 
22
 
/*
23
 
  xmltree structure
24
 
 */
25
 
 
26
 
#if !defined(__XMLTREE_H__)
27
 
#define __XMLTREE_H__
28
 
 
29
 
typedef enum {
30
 
  value_undef = 0,
31
 
  value_scalar,
32
 
  value_complex,
33
 
  value_string,
34
 
  value_array,
35
 
  value_matrix,
36
 
  value_structure,
37
 
  value_list,
38
 
  value_cell,
39
 
  value_data } t_value;
40
 
 
41
 
typedef enum {
42
 
  const_undef = 0,
43
 
  const_true,
44
 
  const_false,
45
 
  const_inf,
46
 
  const_neginf,
47
 
  const_na,
48
 
  const_nan } t_const;
49
 
 
50
 
typedef struct _element {
51
 
  struct _element *next;
52
 
  struct _element *child;
53
 
 
54
 
  /* values */
55
 
  t_value def_value;
56
 
  t_const const_value;
57
 
  double scalar_value;
58
 
  char *string_value;
59
 
 
60
 
  /* parameters */
61
 
  char *name;
62
 
  int length;
63
 
  int rows;
64
 
  int columns;
65
 
 
66
 
  /* check */
67
 
  int nb_elements;
68
 
 
69
 
} element;
70
 
  
71
 
typedef struct _list {
72
 
  struct _list *prev;
73
 
 
74
 
  element **root;
75
 
} list;
76
 
 
77
 
element *new_element ();
78
 
element *new_next (element *pred);
79
 
element *new_child (element *father);
80
 
void free_element (element *root);
81
 
void print_element (element *root, int l);
82
 
 
83
 
list *new_list(list *father);
84
 
list *pop_list(list *child);
85
 
 
86
 
#endif /* __XMLTREE_H__ */