~ubuntu-branches/ubuntu/utopic/libxml-bare-perl/utopic-proposed

« back to all changes in this revision

Viewing changes to parser.h

  • Committer: Bazaar Package Importer
  • Author(s): Antonio Radici
  • Date: 2009-01-31 17:28:53 UTC
  • Revision ID: james.westby@ubuntu.com-20090131172853-hptyu448d89nsje4
Tags: upstream-0.40+dfsg.1
ImportĀ upstreamĀ versionĀ 0.40+dfsg.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifdef WIN32
 
2
#include<stdlib.h>
 
3
#endif
 
4
 
 
5
#ifndef NULL
 
6
  #define NULL 0x00
 
7
#endif
 
8
 
 
9
struct nodec {
 
10
  struct nodec *curchild;
 
11
  struct nodec *parent;
 
12
  struct nodec *next;
 
13
  struct nodec *firstchild;
 
14
  struct nodec *lastchild;
 
15
  struct attc  *firstatt;
 
16
  struct attc  *lastatt;
 
17
  int   numchildren;
 
18
  int   numatt;
 
19
  char  *name;
 
20
  int   namelen;
 
21
  char  *value;
 
22
  char  *comment;
 
23
  int   vallen;
 
24
  int   comlen;
 
25
  int   type;// cdata or normal
 
26
  int   numvals;
 
27
  int   numcoms;
 
28
  int   pos;
 
29
  int   err;
 
30
};
 
31
 
 
32
struct nodec *nodec_addchildr( struct nodec *self, char *newname, int newnamelen );//, char *newval, int newvallen, int newtype );
 
33
//struct nodec *nodec_addchild( struct nodec *self, char *newname, int newnamelen );
 
34
struct attc *nodec_addattr  ( struct nodec *self, char *newname, int newnamelen );//, char *newval, int newvallen );
 
35
//struct attc *nodec_addatt  ( struct nodec *self, char *newname, int newnamelen );
 
36
 
 
37
struct nodec *new_nodecp( struct nodec *newparent );
 
38
struct nodec *new_nodec();
 
39
void del_nodec( struct nodec *node );
 
40
 
 
41
struct attc {
 
42
  struct nodec *parent;
 
43
  struct attc  *next;
 
44
  char  *name;
 
45
  int   namelen;
 
46
  char  *value;
 
47
  int   vallen;
 
48
};
 
49
 
 
50
struct attc* new_attc( struct nodec *newparent );
 
51
 
 
52
struct parserc {
 
53
  struct nodec *pcurnode;
 
54
  struct attc  *curatt;
 
55
};
 
56
 
 
57
struct nodec* parserc_parse( struct parserc *self, char *newbuf );