<libroxml
version="3.0.2"
/>
contact:
tristan.lelong@libroxml.net
src
roxml_defines.h
Go to the documentation of this file.
1
12
#ifndef ROXML_DEF_H
13
#define ROXML_DEF_H
14
15
#ifndef ROXML_TUNE_H
16
#error "roxml_tune.h must be included before roxml_defines.h to tune it."
17
#endif
18
19
#define ROXML_PATH_OR "|"
20
#define ROXML_PATH_AND "&"
21
#define ROXML_COND_OR "or"
22
#define ROXML_COND_AND "and"
23
24
#define ROXML_OPERATOR_OR 1
25
#define ROXML_OPERATOR_AND 2
26
#define ROXML_OPERATOR_INF 3
27
#define ROXML_OPERATOR_SUP 4
28
#define ROXML_OPERATOR_EINF 5
29
#define ROXML_OPERATOR_ESUP 6
30
#define ROXML_OPERATOR_DIFF 7
31
#define ROXML_OPERATOR_EQU 8
32
#define ROXML_OPERATOR_ADD 9
33
#define ROXML_OPERATOR_SUB 10
34
#define ROXML_OPERATOR_MUL 11
35
#define ROXML_OPERATOR_DIV 12
36
37
#define ROXML_FUNC_INTCOMP 1
38
#define ROXML_FUNC_STRCOMP 2
39
#define ROXML_FUNC_POS 3
40
#define ROXML_FUNC_FIRST 4
41
#define ROXML_FUNC_LAST 5
42
#define ROXML_FUNC_TEXT 6
43
#define ROXML_FUNC_NODE 7
44
#define ROXML_FUNC_COMMENT 8
45
#define ROXML_FUNC_PI 9
46
#define ROXML_FUNC_XPATH 10
47
#define ROXML_FUNC_NSURI 11
48
#define ROXML_FUNC_LNAME 12
49
50
#define ROXML_FUNC_POS_STR "position()"
51
#define ROXML_FUNC_FIRST_STR "first()"
52
#define ROXML_FUNC_LAST_STR "last()"
53
#define ROXML_FUNC_NSURI_STR "namespace-uri()"
54
#define ROXML_FUNC_LNAME_STR "local-name()"
55
56
#define ROXML_FUNC_TEXT_STR "text()"
57
#define ROXML_FUNC_NODE_STR "node()"
58
#define ROXML_FUNC_COMMENT_STR "comment()"
59
#define ROXML_FUNC_PI_STR "processing-instruction()"
60
66
#define MAX_NAME_LEN 128
67
73
#if(CONFIG_XML_SMALL_BUFFER==1)
74
#define ROXML_BULK_READ 256
75
#else
/* CONFIG_XML_SMALL_BUFFER==0 */
76
#define ROXML_BULK_READ 4096
77
#endif
/* CONFIG_XML_SMALL_BUFFER */
78
88
#if(CONFIG_XML_SMALL_BUFFER==1)
89
#define ROXML_BASE_LEN 64
90
#else
/* CONFIG_XML_SMALL_BUFFER==0 */
91
#define ROXML_BASE_LEN 512
92
#endif
/* CONFIG_XML_SMALL_BUFFER */
93
94
#define ROXML_ID_CHILD 0
95
#define ROXML_ID_DESC_O_SELF 1
96
#define ROXML_ID_SELF 2
97
#define ROXML_ID_PARENT 3
98
#define ROXML_ID_ATTR 4
99
#define ROXML_ID_DESC 5
100
#define ROXML_ID_ANC 6
101
#define ROXML_ID_NEXT_SIBL 7
102
#define ROXML_ID_PREV_SIBL 8
103
#define ROXML_ID_NEXT 9
104
#define ROXML_ID_PREV 10
105
#define ROXML_ID_NS 11
106
#define ROXML_ID_ANC_O_SELF 12
107
108
#define ROXML_L_CHILD "child::"
109
#define ROXML_L_DESC_O_SELF "descendant-or-self::"
110
#define ROXML_L_SELF "self::"
111
#define ROXML_L_PARENT "parent::"
112
#define ROXML_L_ATTR "attribute::"
113
#define ROXML_L_DESC "descendant::"
114
#define ROXML_L_ANC "ancestor::"
115
#define ROXML_L_NEXT_SIBL "following-sibling::"
116
#define ROXML_L_PREV_SIBL "preceding-sibling::"
117
#define ROXML_L_NEXT "following::"
118
#define ROXML_L_PREV "preceding::"
119
#define ROXML_L_NS "namespace::"
120
#define ROXML_L_ANC_O_SELF "ancestor-or-self::"
121
122
#define ROXML_S_CHILD
123
#define ROXML_S_DESC_O_SELF ""
124
#define ROXML_S_SELF "."
125
#define ROXML_S_PARENT ".."
126
#define ROXML_S_ATTR "@"
127
128
#define ROXML_DIRECT 0
129
#define ROXML_DESC_ONLY 1
130
#define ROXML_DESC_O_SELF 2
131
132
#define ROXML_REQTABLE_ID 0
133
#define ROXML_NS_ID 1
134
#define ROXML_XPATH_FIRST_ID 16
135
141
#define PTR_NONE -1
142
148
#define PTR_VOID 0
149
155
#define PTR_CHAR 2
156
162
#define PTR_CHAR_STAR 3
163
169
#define PTR_NODE 4
170
176
#define PTR_NODE_STAR 5
177
183
#define PTR_INT 6
184
190
#define PTR_INT_STAR 7
191
197
#define PTR_NODE_RESULT 8
198
204
#define PTR_IS_STAR(a) ((a)->type % 2)
205
211
#define ROXML_FILE 0x01
212
218
#define ROXML_BUFF 0x02
219
225
#define ROXML_PENDING 0x04
226
232
#define ROXML_INVALID 0x03
233
239
#define STATE_NODE_NONE 0
240
246
#define STATE_NODE_BEG 1
247
253
#define STATE_NODE_NAME 2
254
260
#define STATE_NODE_END 3
261
267
#define STATE_NODE_STRING 4
268
274
#define STATE_NODE_ARG 5
275
281
#define STATE_NODE_ARGVAL 6
282
288
#define STATE_NODE_SEP 7
289
295
#define STATE_NODE_PI 8
296
302
#define STATE_NODE_SINGLE 9
303
309
#define STATE_NODE_ATTR 10
310
316
#define STATE_NODE_CONTENT 11
317
323
#define STATE_NODE_COMMENT_BEG 12
324
330
#define STATE_NODE_COMMENT 14
331
337
#define STATE_NODE_COMMENT_END 15
338
344
#define STATE_NODE_CDATA_BEG 16
345
351
#define STATE_NODE_CDATA 22
352
358
#define STATE_NODE_CDATA_END 23
359
365
#define MODE_COMMENT_NONE 0
366
372
#define MODE_COMMENT_QUOTE 1
373
379
#define MODE_COMMENT_DQUOTE 2
380
386
#define STATE_INSIDE_ARG_BEG 0
387
393
#define STATE_INSIDE_ARG 1
394
400
#define STATE_INSIDE_VAL_BEG 2
401
407
#define STATE_INSIDE_VAL 3
408
414
#define ROXML_WHITE(n) ((n==' ')||(n=='\t')||(n=='\n')||(n=='\r'))
415
416
#endif
/* ROXML_DEF_H */
Generated on Tue Jul 2 2024 21:08:20 for libroxml by
1.9.8