Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 1 | /* |
| 2 | * parserInternals.h : internals routines exported by the parser. |
| 3 | * |
| 4 | * See Copyright for the status of this software. |
| 5 | * |
| 6 | * Daniel.Veillard@w3.org |
| 7 | */ |
| 8 | |
| 9 | #ifndef __XML_PARSER_INTERNALS_H__ |
| 10 | #define __XML_PARSER_INTERNALS_H__ |
| 11 | |
| 12 | #include "parser.h" |
| 13 | |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 18 | #define XML_MAX_NAMELEN 1000 |
| 19 | |
Daniel Veillard | bc50b59 | 1999-03-01 12:28:53 +0000 | [diff] [blame] | 20 | /** |
Daniel Veillard | 64068b3 | 1999-03-24 20:42:16 +0000 | [diff] [blame] | 21 | * A few macros needed to help building the parser. |
| 22 | */ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 23 | /* #define UNICODE */ |
| 24 | |
| 25 | #ifdef UNICODE |
| 26 | typedef unsigned long CHARVAL; |
| 27 | |
| 28 | #define NEXTCHARVAL(p) (unsigned long) \ |
| 29 | ((*(p) == 0) ? (unsigned long) 0 : \ |
| 30 | ((*(p) < 0x80) ? (unsigned long) (*(p)++) : \ |
| 31 | (*(p) < 0xC0) ? (unsigned long) 0 : \ |
| 32 | (*(p) < 0xE0) ? ((((unsigned long) *(p)++) << 6) + (*(p)++ & 0x3F)) : \ |
| 33 | (*(p) < 0xF0) ? (((((unsigned long) *(p)++) << 6) + (*(p)++ & 0x3F)) << 6 + \ |
| 34 | (*(p)++ & 0x3F)) : \ |
| 35 | (*(p) < 0xF8) ? ((((((unsigned long) *(p)++) << 6) + (*(p)++ & 0x3F)) << 6 + \ |
| 36 | (*(p)++ & 0x3F)) << 6 + (*(p)++ & 0x3F)) : 0)) |
| 37 | #else |
| 38 | typedef unsigned char CHARVAL; |
| 39 | |
| 40 | #define NEXTCHARVAL(p) (unsigned long) *(p); |
| 41 | #define SKIPCHARVAL(p) (p)++; |
| 42 | #endif |
Daniel Veillard | 64068b3 | 1999-03-24 20:42:16 +0000 | [diff] [blame] | 43 | |
| 44 | #ifdef UNICODE |
| 45 | /************************************************************************ |
| 46 | * * |
| 47 | * UNICODE version of the macros. * |
| 48 | * * |
| 49 | ************************************************************************/ |
| 50 | /* |
| 51 | * [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
| 52 | * | [#x10000-#x10FFFF] |
| 53 | * any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. |
| 54 | */ |
| 55 | #define IS_CHAR(c) \ |
| 56 | ((((c) == 0x09) || ((c) == 0x0a) || ((c) == 0x0d) || \ |
| 57 | (((c) >= 0x20) && ((c) != 0xFFFE) && ((c) != 0xFFFF))) && \ |
| 58 | (((c) <= 0xD7FF) || ((c) >= 0xE000)) && ((c) >= 0) && \ |
| 59 | ((c) <= 0x10FFFF)) |
| 60 | |
| 61 | /* |
| 62 | * [3] S ::= (#x20 | #x9 | #xD | #xA)+ |
| 63 | */ |
| 64 | #define IS_BLANK(c) (((c) == 0x20) || ((c) == 0x09) || ((c) == 0xa) || \ |
| 65 | ((c) == 0x0D)) |
| 66 | |
| 67 | /* |
| 68 | * [85] BaseChar ::= ... long list see REC ... |
| 69 | * |
| 70 | * VI is your friend ! |
| 71 | * :1,$ s/\[#x\([0-9A-Z]*\)-#x\([0-9A-Z]*\)\]/ (((c) >= 0x\1) \&\& ((c) <= 0x\2)) ||/ |
| 72 | * and |
| 73 | * :1,$ s/#x\([0-9A-Z]*\)/ ((c) == 0x\1) ||/ |
| 74 | */ |
| 75 | #define IS_BASECHAR(c) \ |
| 76 | ((((c) >= 0x0041) && ((c) <= 0x005A)) || \ |
| 77 | (((c) >= 0x0061) && ((c) <= 0x007A)) || \ |
| 78 | (((c) >= 0x00C0) && ((c) <= 0x00D6)) || \ |
| 79 | (((c) >= 0x00D8) && ((c) <= 0x00F6)) || \ |
| 80 | (((c) >= 0x00F8) && ((c) <= 0x00FF)) || \ |
| 81 | (((c) >= 0x0100) && ((c) <= 0x0131)) || \ |
| 82 | (((c) >= 0x0134) && ((c) <= 0x013E)) || \ |
| 83 | (((c) >= 0x0141) && ((c) <= 0x0148)) || \ |
| 84 | (((c) >= 0x014A) && ((c) <= 0x017E)) || \ |
| 85 | (((c) >= 0x0180) && ((c) <= 0x01C3)) || \ |
| 86 | (((c) >= 0x01CD) && ((c) <= 0x01F0)) || \ |
| 87 | (((c) >= 0x01F4) && ((c) <= 0x01F5)) || \ |
| 88 | (((c) >= 0x01FA) && ((c) <= 0x0217)) || \ |
| 89 | (((c) >= 0x0250) && ((c) <= 0x02A8)) || \ |
| 90 | (((c) >= 0x02BB) && ((c) <= 0x02C1)) || \ |
| 91 | ((c) == 0x0386) || \ |
| 92 | (((c) >= 0x0388) && ((c) <= 0x038A)) || \ |
| 93 | ((c) == 0x038C) || \ |
| 94 | (((c) >= 0x038E) && ((c) <= 0x03A1)) || \ |
| 95 | (((c) >= 0x03A3) && ((c) <= 0x03CE)) || \ |
| 96 | (((c) >= 0x03D0) && ((c) <= 0x03D6)) || \ |
| 97 | ((c) == 0x03DA) || \ |
| 98 | ((c) == 0x03DC) || \ |
| 99 | ((c) == 0x03DE) || \ |
| 100 | ((c) == 0x03E0) || \ |
| 101 | (((c) >= 0x03E2) && ((c) <= 0x03F3)) || \ |
| 102 | (((c) >= 0x0401) && ((c) <= 0x040C)) || \ |
| 103 | (((c) >= 0x040E) && ((c) <= 0x044F)) || \ |
| 104 | (((c) >= 0x0451) && ((c) <= 0x045C)) || \ |
| 105 | (((c) >= 0x045E) && ((c) <= 0x0481)) || \ |
| 106 | (((c) >= 0x0490) && ((c) <= 0x04C4)) || \ |
| 107 | (((c) >= 0x04C7) && ((c) <= 0x04C8)) || \ |
| 108 | (((c) >= 0x04CB) && ((c) <= 0x04CC)) || \ |
| 109 | (((c) >= 0x04D0) && ((c) <= 0x04EB)) || \ |
| 110 | (((c) >= 0x04EE) && ((c) <= 0x04F5)) || \ |
| 111 | (((c) >= 0x04F8) && ((c) <= 0x04F9)) || \ |
| 112 | (((c) >= 0x0531) && ((c) <= 0x0556)) || \ |
| 113 | ((c) == 0x0559) || \ |
| 114 | (((c) >= 0x0561) && ((c) <= 0x0586)) || \ |
| 115 | (((c) >= 0x05D0) && ((c) <= 0x05EA)) || \ |
| 116 | (((c) >= 0x05F0) && ((c) <= 0x05F2)) || \ |
| 117 | (((c) >= 0x0621) && ((c) <= 0x063A)) || \ |
| 118 | (((c) >= 0x0641) && ((c) <= 0x064A)) || \ |
| 119 | (((c) >= 0x0671) && ((c) <= 0x06B7)) || \ |
| 120 | (((c) >= 0x06BA) && ((c) <= 0x06BE)) || \ |
| 121 | (((c) >= 0x06C0) && ((c) <= 0x06CE)) || \ |
| 122 | (((c) >= 0x06D0) && ((c) <= 0x06D3)) || \ |
| 123 | ((c) == 0x06D5) || \ |
| 124 | (((c) >= 0x06E5) && ((c) <= 0x06E6)) || \ |
| 125 | (((c) >= 0x0905) && ((c) <= 0x0939)) || \ |
| 126 | ((c) == 0x093D) || \ |
| 127 | (((c) >= 0x0958) && ((c) <= 0x0961)) || \ |
| 128 | (((c) >= 0x0985) && ((c) <= 0x098C)) || \ |
| 129 | (((c) >= 0x098F) && ((c) <= 0x0990)) || \ |
| 130 | (((c) >= 0x0993) && ((c) <= 0x09A8)) || \ |
| 131 | (((c) >= 0x09AA) && ((c) <= 0x09B0)) || \ |
| 132 | ((c) == 0x09B2) || \ |
| 133 | (((c) >= 0x09B6) && ((c) <= 0x09B9)) || \ |
| 134 | (((c) >= 0x09DC) && ((c) <= 0x09DD)) || \ |
| 135 | (((c) >= 0x09DF) && ((c) <= 0x09E1)) || \ |
| 136 | (((c) >= 0x09F0) && ((c) <= 0x09F1)) || \ |
| 137 | (((c) >= 0x0A05) && ((c) <= 0x0A0A)) || \ |
| 138 | (((c) >= 0x0A0F) && ((c) <= 0x0A10)) || \ |
| 139 | (((c) >= 0x0A13) && ((c) <= 0x0A28)) || \ |
| 140 | (((c) >= 0x0A2A) && ((c) <= 0x0A30)) || \ |
| 141 | (((c) >= 0x0A32) && ((c) <= 0x0A33)) || \ |
| 142 | (((c) >= 0x0A35) && ((c) <= 0x0A36)) || \ |
| 143 | (((c) >= 0x0A38) && ((c) <= 0x0A39)) || \ |
| 144 | (((c) >= 0x0A59) && ((c) <= 0x0A5C)) || \ |
| 145 | ((c) == 0x0A5E) || \ |
| 146 | (((c) >= 0x0A72) && ((c) <= 0x0A74)) || \ |
| 147 | (((c) >= 0x0A85) && ((c) <= 0x0A8B)) || \ |
| 148 | ((c) == 0x0A8D) || \ |
| 149 | (((c) >= 0x0A8F) && ((c) <= 0x0A91)) || \ |
| 150 | (((c) >= 0x0A93) && ((c) <= 0x0AA8)) || \ |
| 151 | (((c) >= 0x0AAA) && ((c) <= 0x0AB0)) || \ |
| 152 | (((c) >= 0x0AB2) && ((c) <= 0x0AB3)) || \ |
| 153 | (((c) >= 0x0AB5) && ((c) <= 0x0AB9)) || \ |
| 154 | ((c) == 0x0ABD) || \ |
| 155 | ((c) == 0x0AE0) || \ |
| 156 | (((c) >= 0x0B05) && ((c) <= 0x0B0C)) || \ |
| 157 | (((c) >= 0x0B0F) && ((c) <= 0x0B10)) || \ |
| 158 | (((c) >= 0x0B13) && ((c) <= 0x0B28)) || \ |
| 159 | (((c) >= 0x0B2A) && ((c) <= 0x0B30)) || \ |
| 160 | (((c) >= 0x0B32) && ((c) <= 0x0B33)) || \ |
| 161 | (((c) >= 0x0B36) && ((c) <= 0x0B39)) || \ |
| 162 | ((c) == 0x0B3D) || \ |
| 163 | (((c) >= 0x0B5C) && ((c) <= 0x0B5D)) || \ |
| 164 | (((c) >= 0x0B5F) && ((c) <= 0x0B61)) || \ |
| 165 | (((c) >= 0x0B85) && ((c) <= 0x0B8A)) || \ |
| 166 | (((c) >= 0x0B8E) && ((c) <= 0x0B90)) || \ |
| 167 | (((c) >= 0x0B92) && ((c) <= 0x0B95)) || \ |
| 168 | (((c) >= 0x0B99) && ((c) <= 0x0B9A)) || \ |
| 169 | ((c) == 0x0B9C) || \ |
| 170 | (((c) >= 0x0B9E) && ((c) <= 0x0B9F)) || \ |
| 171 | (((c) >= 0x0BA3) && ((c) <= 0x0BA4)) || \ |
| 172 | (((c) >= 0x0BA8) && ((c) <= 0x0BAA)) || \ |
| 173 | (((c) >= 0x0BAE) && ((c) <= 0x0BB5)) || \ |
| 174 | (((c) >= 0x0BB7) && ((c) <= 0x0BB9)) || \ |
| 175 | (((c) >= 0x0C05) && ((c) <= 0x0C0C)) || \ |
| 176 | (((c) >= 0x0C0E) && ((c) <= 0x0C10)) || \ |
| 177 | (((c) >= 0x0C12) && ((c) <= 0x0C28)) || \ |
| 178 | (((c) >= 0x0C2A) && ((c) <= 0x0C33)) || \ |
| 179 | (((c) >= 0x0C35) && ((c) <= 0x0C39)) || \ |
| 180 | (((c) >= 0x0C60) && ((c) <= 0x0C61)) || \ |
| 181 | (((c) >= 0x0C85) && ((c) <= 0x0C8C)) || \ |
| 182 | (((c) >= 0x0C8E) && ((c) <= 0x0C90)) || \ |
| 183 | (((c) >= 0x0C92) && ((c) <= 0x0CA8)) || \ |
| 184 | (((c) >= 0x0CAA) && ((c) <= 0x0CB3)) || \ |
| 185 | (((c) >= 0x0CB5) && ((c) <= 0x0CB9)) || \ |
| 186 | ((c) == 0x0CDE) || \ |
| 187 | (((c) >= 0x0CE0) && ((c) <= 0x0CE1)) || \ |
| 188 | (((c) >= 0x0D05) && ((c) <= 0x0D0C)) || \ |
| 189 | (((c) >= 0x0D0E) && ((c) <= 0x0D10)) || \ |
| 190 | (((c) >= 0x0D12) && ((c) <= 0x0D28)) || \ |
| 191 | (((c) >= 0x0D2A) && ((c) <= 0x0D39)) || \ |
| 192 | (((c) >= 0x0D60) && ((c) <= 0x0D61)) || \ |
| 193 | (((c) >= 0x0E01) && ((c) <= 0x0E2E)) || \ |
| 194 | ((c) == 0x0E30) || \ |
| 195 | (((c) >= 0x0E32) && ((c) <= 0x0E33)) || \ |
| 196 | (((c) >= 0x0E40) && ((c) <= 0x0E45)) || \ |
| 197 | (((c) >= 0x0E81) && ((c) <= 0x0E82)) || \ |
| 198 | ((c) == 0x0E84) || \ |
| 199 | (((c) >= 0x0E87) && ((c) <= 0x0E88)) || \ |
| 200 | ((c) == 0x0E8A) || \ |
| 201 | ((c) == 0x0E8D) || \ |
| 202 | (((c) >= 0x0E94) && ((c) <= 0x0E97)) || \ |
| 203 | (((c) >= 0x0E99) && ((c) <= 0x0E9F)) || \ |
| 204 | (((c) >= 0x0EA1) && ((c) <= 0x0EA3)) || \ |
| 205 | ((c) == 0x0EA5) || \ |
| 206 | ((c) == 0x0EA7) || \ |
| 207 | (((c) >= 0x0EAA) && ((c) <= 0x0EAB)) || \ |
| 208 | (((c) >= 0x0EAD) && ((c) <= 0x0EAE)) || \ |
| 209 | ((c) == 0x0EB0) || \ |
| 210 | (((c) >= 0x0EB2) && ((c) <= 0x0EB3)) || \ |
| 211 | ((c) == 0x0EBD) || \ |
| 212 | (((c) >= 0x0EC0) && ((c) <= 0x0EC4)) || \ |
| 213 | (((c) >= 0x0F40) && ((c) <= 0x0F47)) || \ |
| 214 | (((c) >= 0x0F49) && ((c) <= 0x0F69)) || \ |
| 215 | (((c) >= 0x10A0) && ((c) <= 0x10C5)) || \ |
| 216 | (((c) >= 0x10D0) && ((c) <= 0x10F6)) || \ |
| 217 | ((c) == 0x1100) || \ |
| 218 | (((c) >= 0x1102) && ((c) <= 0x1103)) || \ |
| 219 | (((c) >= 0x1105) && ((c) <= 0x1107)) || \ |
| 220 | ((c) == 0x1109) || \ |
| 221 | (((c) >= 0x110B) && ((c) <= 0x110C)) || \ |
| 222 | (((c) >= 0x110E) && ((c) <= 0x1112)) || \ |
| 223 | ((c) == 0x113C) || \ |
| 224 | ((c) == 0x113E) || \ |
| 225 | ((c) == 0x1140) || \ |
| 226 | ((c) == 0x114C) || \ |
| 227 | ((c) == 0x114E) || \ |
| 228 | ((c) == 0x1150) || \ |
| 229 | (((c) >= 0x1154) && ((c) <= 0x1155)) || \ |
| 230 | ((c) == 0x1159) || \ |
| 231 | (((c) >= 0x115F) && ((c) <= 0x1161)) || \ |
| 232 | ((c) == 0x1163) || \ |
| 233 | ((c) == 0x1165) || \ |
| 234 | ((c) == 0x1167) || \ |
| 235 | ((c) == 0x1169) || \ |
| 236 | (((c) >= 0x116D) && ((c) <= 0x116E)) || \ |
| 237 | (((c) >= 0x1172) && ((c) <= 0x1173)) || \ |
| 238 | ((c) == 0x1175) || \ |
| 239 | ((c) == 0x119E) || \ |
| 240 | ((c) == 0x11A8) || \ |
| 241 | ((c) == 0x11AB) || \ |
| 242 | (((c) >= 0x11AE) && ((c) <= 0x11AF)) || \ |
| 243 | (((c) >= 0x11B7) && ((c) <= 0x11B8)) || \ |
| 244 | ((c) == 0x11BA) || \ |
| 245 | (((c) >= 0x11BC) && ((c) <= 0x11C2)) || \ |
| 246 | ((c) == 0x11EB) || \ |
| 247 | ((c) == 0x11F0) || \ |
| 248 | ((c) == 0x11F9) || \ |
| 249 | (((c) >= 0x1E00) && ((c) <= 0x1E9B)) || \ |
| 250 | (((c) >= 0x1EA0) && ((c) <= 0x1EF9)) || \ |
| 251 | (((c) >= 0x1F00) && ((c) <= 0x1F15)) || \ |
| 252 | (((c) >= 0x1F18) && ((c) <= 0x1F1D)) || \ |
| 253 | (((c) >= 0x1F20) && ((c) <= 0x1F45)) || \ |
| 254 | (((c) >= 0x1F48) && ((c) <= 0x1F4D)) || \ |
| 255 | (((c) >= 0x1F50) && ((c) <= 0x1F57)) || \ |
| 256 | ((c) == 0x1F59) || \ |
| 257 | ((c) == 0x1F5B) || \ |
| 258 | ((c) == 0x1F5D) || \ |
| 259 | (((c) >= 0x1F5F) && ((c) <= 0x1F7D)) || \ |
| 260 | (((c) >= 0x1F80) && ((c) <= 0x1FB4)) || \ |
| 261 | (((c) >= 0x1FB6) && ((c) <= 0x1FBC)) || \ |
| 262 | ((c) == 0x1FBE) || \ |
| 263 | (((c) >= 0x1FC2) && ((c) <= 0x1FC4)) || \ |
| 264 | (((c) >= 0x1FC6) && ((c) <= 0x1FCC)) || \ |
| 265 | (((c) >= 0x1FD0) && ((c) <= 0x1FD3)) || \ |
| 266 | (((c) >= 0x1FD6) && ((c) <= 0x1FDB)) || \ |
| 267 | (((c) >= 0x1FE0) && ((c) <= 0x1FEC)) || \ |
| 268 | (((c) >= 0x1FF2) && ((c) <= 0x1FF4)) || \ |
| 269 | (((c) >= 0x1FF6) && ((c) <= 0x1FFC)) || \ |
| 270 | ((c) == 0x2126) || \ |
| 271 | (((c) >= 0x212A) && ((c) <= 0x212B)) || \ |
| 272 | ((c) == 0x212E) || \ |
| 273 | (((c) >= 0x2180) && ((c) <= 0x2182)) || \ |
| 274 | (((c) >= 0x3041) && ((c) <= 0x3094)) || \ |
| 275 | (((c) >= 0x30A1) && ((c) <= 0x30FA)) || \ |
| 276 | (((c) >= 0x3105) && ((c) <= 0x312C)) || \ |
| 277 | (((c) >= 0xAC00) && ((c) <= 0xD7A3))) |
| 278 | |
| 279 | /* |
| 280 | * [88] Digit ::= ... long list see REC ... |
| 281 | */ |
| 282 | #define IS_DIGIT(c) \ |
| 283 | ((((c) >= 0x0030) && ((c) <= 0x0039)) || \ |
| 284 | (((c) >= 0x0660) && ((c) <= 0x0669)) || \ |
| 285 | (((c) >= 0x06F0) && ((c) <= 0x06F9)) || \ |
| 286 | (((c) >= 0x0966) && ((c) <= 0x096F)) || \ |
| 287 | (((c) >= 0x09E6) && ((c) <= 0x09EF)) || \ |
| 288 | (((c) >= 0x0A66) && ((c) <= 0x0A6F)) || \ |
| 289 | (((c) >= 0x0AE6) && ((c) <= 0x0AEF)) || \ |
| 290 | (((c) >= 0x0B66) && ((c) <= 0x0B6F)) || \ |
| 291 | (((c) >= 0x0BE7) && ((c) <= 0x0BEF)) || \ |
| 292 | (((c) >= 0x0C66) && ((c) <= 0x0C6F)) || \ |
| 293 | (((c) >= 0x0CE6) && ((c) <= 0x0CEF)) || \ |
| 294 | (((c) >= 0x0D66) && ((c) <= 0x0D6F)) || \ |
| 295 | (((c) >= 0x0E50) && ((c) <= 0x0E59)) || \ |
| 296 | (((c) >= 0x0ED0) && ((c) <= 0x0ED9)) || \ |
| 297 | (((c) >= 0x0F20) && ((c) <= 0x0F29))) |
| 298 | |
| 299 | /* |
| 300 | * [87] CombiningChar ::= ... long list see REC ... |
| 301 | */ |
| 302 | #define IS_COMBINING(c) \ |
| 303 | ((((c) >= 0x0300) && ((c) <= 0x0345)) || \ |
| 304 | (((c) >= 0x0360) && ((c) <= 0x0361)) || \ |
| 305 | (((c) >= 0x0483) && ((c) <= 0x0486)) || \ |
| 306 | (((c) >= 0x0591) && ((c) <= 0x05A1)) || \ |
| 307 | (((c) >= 0x05A3) && ((c) <= 0x05B9)) || \ |
| 308 | (((c) >= 0x05BB) && ((c) <= 0x05BD)) || \ |
| 309 | ((c) == 0x05BF) || \ |
| 310 | (((c) >= 0x05C1) && ((c) <= 0x05C2)) || \ |
| 311 | ((c) == 0x05C4) || \ |
| 312 | (((c) >= 0x064B) && ((c) <= 0x0652)) || \ |
| 313 | ((c) == 0x0670) || \ |
| 314 | (((c) >= 0x06D6) && ((c) <= 0x06DC)) || \ |
| 315 | (((c) >= 0x06DD) && ((c) <= 0x06DF)) || \ |
| 316 | (((c) >= 0x06E0) && ((c) <= 0x06E4)) || \ |
| 317 | (((c) >= 0x06E7) && ((c) <= 0x06E8)) || \ |
| 318 | (((c) >= 0x06EA) && ((c) <= 0x06ED)) || \ |
| 319 | (((c) >= 0x0901) && ((c) <= 0x0903)) || \ |
| 320 | ((c) == 0x093C) || \ |
| 321 | (((c) >= 0x093E) && ((c) <= 0x094C)) || \ |
| 322 | ((c) == 0x094D) || \ |
| 323 | (((c) >= 0x0951) && ((c) <= 0x0954)) || \ |
| 324 | (((c) >= 0x0962) && ((c) <= 0x0963)) || \ |
| 325 | (((c) >= 0x0981) && ((c) <= 0x0983)) || \ |
| 326 | ((c) == 0x09BC) || \ |
| 327 | ((c) == 0x09BE) || \ |
| 328 | ((c) == 0x09BF) || \ |
| 329 | (((c) >= 0x09C0) && ((c) <= 0x09C4)) || \ |
| 330 | (((c) >= 0x09C7) && ((c) <= 0x09C8)) || \ |
| 331 | (((c) >= 0x09CB) && ((c) <= 0x09CD)) || \ |
| 332 | ((c) == 0x09D7) || \ |
| 333 | (((c) >= 0x09E2) && ((c) <= 0x09E3)) || \ |
| 334 | ((c) == 0x0A02) || \ |
| 335 | ((c) == 0x0A3C) || \ |
| 336 | ((c) == 0x0A3E) || \ |
| 337 | ((c) == 0x0A3F) || \ |
| 338 | (((c) >= 0x0A40) && ((c) <= 0x0A42)) || \ |
| 339 | (((c) >= 0x0A47) && ((c) <= 0x0A48)) || \ |
| 340 | (((c) >= 0x0A4B) && ((c) <= 0x0A4D)) || \ |
| 341 | (((c) >= 0x0A70) && ((c) <= 0x0A71)) || \ |
| 342 | (((c) >= 0x0A81) && ((c) <= 0x0A83)) || \ |
| 343 | ((c) == 0x0ABC) || \ |
| 344 | (((c) >= 0x0ABE) && ((c) <= 0x0AC5)) || \ |
| 345 | (((c) >= 0x0AC7) && ((c) <= 0x0AC9)) || \ |
| 346 | (((c) >= 0x0ACB) && ((c) <= 0x0ACD)) || \ |
| 347 | (((c) >= 0x0B01) && ((c) <= 0x0B03)) || \ |
| 348 | ((c) == 0x0B3C) || \ |
| 349 | (((c) >= 0x0B3E) && ((c) <= 0x0B43)) || \ |
| 350 | (((c) >= 0x0B47) && ((c) <= 0x0B48)) || \ |
| 351 | (((c) >= 0x0B4B) && ((c) <= 0x0B4D)) || \ |
| 352 | (((c) >= 0x0B56) && ((c) <= 0x0B57)) || \ |
| 353 | (((c) >= 0x0B82) && ((c) <= 0x0B83)) || \ |
| 354 | (((c) >= 0x0BBE) && ((c) <= 0x0BC2)) || \ |
| 355 | (((c) >= 0x0BC6) && ((c) <= 0x0BC8)) || \ |
| 356 | (((c) >= 0x0BCA) && ((c) <= 0x0BCD)) || \ |
| 357 | ((c) == 0x0BD7) || \ |
| 358 | (((c) >= 0x0C01) && ((c) <= 0x0C03)) || \ |
| 359 | (((c) >= 0x0C3E) && ((c) <= 0x0C44)) || \ |
| 360 | (((c) >= 0x0C46) && ((c) <= 0x0C48)) || \ |
| 361 | (((c) >= 0x0C4A) && ((c) <= 0x0C4D)) || \ |
| 362 | (((c) >= 0x0C55) && ((c) <= 0x0C56)) || \ |
| 363 | (((c) >= 0x0C82) && ((c) <= 0x0C83)) || \ |
| 364 | (((c) >= 0x0CBE) && ((c) <= 0x0CC4)) || \ |
| 365 | (((c) >= 0x0CC6) && ((c) <= 0x0CC8)) || \ |
| 366 | (((c) >= 0x0CCA) && ((c) <= 0x0CCD)) || \ |
| 367 | (((c) >= 0x0CD5) && ((c) <= 0x0CD6)) || \ |
| 368 | (((c) >= 0x0D02) && ((c) <= 0x0D03)) || \ |
| 369 | (((c) >= 0x0D3E) && ((c) <= 0x0D43)) || \ |
| 370 | (((c) >= 0x0D46) && ((c) <= 0x0D48)) || \ |
| 371 | (((c) >= 0x0D4A) && ((c) <= 0x0D4D)) || \ |
| 372 | ((c) == 0x0D57) || \ |
| 373 | ((c) == 0x0E31) || \ |
| 374 | (((c) >= 0x0E34) && ((c) <= 0x0E3A)) || \ |
| 375 | (((c) >= 0x0E47) && ((c) <= 0x0E4E)) || \ |
| 376 | ((c) == 0x0EB1) || \ |
| 377 | (((c) >= 0x0EB4) && ((c) <= 0x0EB9)) || \ |
| 378 | (((c) >= 0x0EBB) && ((c) <= 0x0EBC)) || \ |
| 379 | (((c) >= 0x0EC8) && ((c) <= 0x0ECD)) || \ |
| 380 | (((c) >= 0x0F18) && ((c) <= 0x0F19)) || \ |
| 381 | ((c) == 0x0F35) || \ |
| 382 | ((c) == 0x0F37) || \ |
| 383 | ((c) == 0x0F39) || \ |
| 384 | ((c) == 0x0F3E) || \ |
| 385 | ((c) == 0x0F3F) || \ |
| 386 | (((c) >= 0x0F71) && ((c) <= 0x0F84)) || \ |
| 387 | (((c) >= 0x0F86) && ((c) <= 0x0F8B)) || \ |
| 388 | (((c) >= 0x0F90) && ((c) <= 0x0F95)) || \ |
| 389 | ((c) == 0x0F97) || \ |
| 390 | (((c) >= 0x0F99) && ((c) <= 0x0FAD)) || \ |
| 391 | (((c) >= 0x0FB1) && ((c) <= 0x0FB7)) || \ |
| 392 | ((c) == 0x0FB9) || \ |
| 393 | (((c) >= 0x20D0) && ((c) <= 0x20DC)) || \ |
| 394 | ((c) == 0x20E1) || \ |
| 395 | (((c) >= 0x302A) && ((c) <= 0x302F)) || \ |
| 396 | ((c) == 0x3099) || \ |
| 397 | ((c) == 0x309A)) |
| 398 | |
| 399 | /* |
| 400 | * [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 | |
| 401 | * #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] | |
| 402 | * [#x309D-#x309E] | [#x30FC-#x30FE] |
| 403 | */ |
| 404 | #define IS_EXTENDER(c) \ |
| 405 | (((c) == 0xb7) || ((c) == 0x2d0) || ((c) == 0x2d1) || \ |
| 406 | ((c) == 0x387) || ((c) == 0x640) || ((c) == 0xe46) || \ |
| 407 | ((c) == 0xec6) || ((c) == 0x3005) \ |
| 408 | (((c) >= 0x3031) && ((c) <= 0x3035)) || \ |
| 409 | (((c) >= 0x309b) && ((c) <= 0x309e)) || \ |
| 410 | (((c) >= 0x30fc) && ((c) <= 0x30fe))) |
| 411 | |
| 412 | /* |
| 413 | * [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029] |
| 414 | */ |
| 415 | #define IS_IDEOGRAPHIC(c) \ |
| 416 | ((((c) >= 0x4e00) && ((c) <= 0x9fa5)) || \ |
| 417 | (((c) >= 0xf900) && ((c) <= 0xfa2d)) || \ |
| 418 | (((c) >= 0x3021) && ((c) <= 0x3029)) || \ |
| 419 | ((c) == 0x3007)) |
| 420 | |
| 421 | /* |
| 422 | * [84] Letter ::= BaseChar | Ideographic |
| 423 | */ |
| 424 | #define IS_LETTER(c) (IS_BASECHAR(c) || IS_IDEOGRAPHIC(c)) |
| 425 | |
| 426 | #else |
Daniel Veillard | 64068b3 | 1999-03-24 20:42:16 +0000 | [diff] [blame] | 427 | /************************************************************************ |
| 428 | * * |
| 429 | * 8bits / ISO-Latin version of the macros. * |
| 430 | * * |
| 431 | ************************************************************************/ |
| 432 | /* |
| 433 | * [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
| 434 | * | [#x10000-#x10FFFF] |
| 435 | * any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. |
| 436 | */ |
| 437 | #define IS_CHAR(c) \ |
Daniel Veillard | dbfd641 | 1999-12-28 16:35:14 +0000 | [diff] [blame] | 438 | ((((c) >= 0x20) && ((c) <= 0xD7FF)) || \ |
| 439 | ((c) == 0x09) || ((c) == 0x0a) || ((c) == 0x0d) || \ |
| 440 | (((c) >= 0xE000) && ((c) <= 0xFFFD)) || \ |
| 441 | (((c) >= 0x10000) && ((c) <= 0x10FFFF))) |
Daniel Veillard | 64068b3 | 1999-03-24 20:42:16 +0000 | [diff] [blame] | 442 | |
| 443 | /* |
| 444 | * [85] BaseChar ::= ... long list see REC ... |
| 445 | */ |
| 446 | #define IS_BASECHAR(c) \ |
Daniel Veillard | 944b5ff | 1999-12-15 19:08:24 +0000 | [diff] [blame] | 447 | ((((c) >= 0x0041) && ((c) <= 0x005A)) || \ |
| 448 | (((c) >= 0x0061) && ((c) <= 0x007A)) || \ |
| 449 | (((c) >= 0x00C0) && ((c) <= 0x00D6)) || \ |
| 450 | (((c) >= 0x00D8) && ((c) <= 0x00F6)) || \ |
| 451 | (((c) >= 0x00F8) && ((c) <= 0x00FF))) |
Daniel Veillard | 64068b3 | 1999-03-24 20:42:16 +0000 | [diff] [blame] | 452 | |
| 453 | /* |
| 454 | * [88] Digit ::= ... long list see REC ... |
| 455 | */ |
| 456 | #define IS_DIGIT(c) (((c) >= 0x30) && ((c) <= 0x39)) |
| 457 | |
| 458 | /* |
| 459 | * [84] Letter ::= BaseChar | Ideographic |
| 460 | */ |
| 461 | #define IS_LETTER(c) IS_BASECHAR(c) |
| 462 | |
| 463 | |
| 464 | /* |
| 465 | * [87] CombiningChar ::= ... long list see REC ... |
| 466 | */ |
| 467 | #define IS_COMBINING(c) 0 |
| 468 | |
| 469 | /* |
| 470 | * [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 | |
| 471 | * #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] | |
| 472 | * [#x309D-#x309E] | [#x30FC-#x30FE] |
| 473 | */ |
| 474 | #define IS_EXTENDER(c) ((c) == 0xb7) |
| 475 | |
Daniel Veillard | 64068b3 | 1999-03-24 20:42:16 +0000 | [diff] [blame] | 476 | #endif /* !UNICODE */ |
| 477 | |
| 478 | /* |
| 479 | * Blank chars. |
| 480 | * |
| 481 | * [3] S ::= (#x20 | #x9 | #xD | #xA)+ |
| 482 | */ |
| 483 | #define IS_BLANK(c) (((c) == 0x20) || ((c) == 0x09) || ((c) == 0xa) || \ |
| 484 | ((c) == 0x0D)) |
| 485 | |
| 486 | /* |
| 487 | * [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] |
| 488 | */ |
| 489 | #define IS_PUBIDCHAR(c) \ |
| 490 | (((c) == 0x20) || ((c) == 0x0D) || ((c) == 0x0A) || \ |
| 491 | (((c) >= 'a') && ((c) <= 'z')) || \ |
| 492 | (((c) >= 'A') && ((c) <= 'Z')) || \ |
| 493 | (((c) >= '0') && ((c) <= '9')) || \ |
| 494 | ((c) == '-') || ((c) == '\'') || ((c) == '(') || ((c) == ')') || \ |
| 495 | ((c) == '+') || ((c) == ',') || ((c) == '.') || ((c) == '/') || \ |
| 496 | ((c) == ':') || ((c) == '=') || ((c) == '?') || ((c) == ';') || \ |
| 497 | ((c) == '!') || ((c) == '*') || ((c) == '#') || ((c) == '@') || \ |
| 498 | ((c) == '$') || ((c) == '_') || ((c) == '%')) |
| 499 | |
| 500 | #define SKIP_EOL(p) \ |
| 501 | if (*(p) == 0x13) { p++ ; if (*(p) == 0x10) p++; } \ |
| 502 | if (*(p) == 0x10) { p++ ; if (*(p) == 0x13) p++; } |
| 503 | |
| 504 | #define MOVETO_ENDTAG(p) \ |
| 505 | while (IS_CHAR(*p) && (*(p) != '>')) (p)++ |
| 506 | |
| 507 | #define MOVETO_STARTTAG(p) \ |
| 508 | while (IS_CHAR(*p) && (*(p) != '<')) (p)++ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 509 | |
| 510 | /** |
Daniel Veillard | d692aa4 | 1999-02-28 21:54:31 +0000 | [diff] [blame] | 511 | * Parser context |
| 512 | */ |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 513 | xmlParserCtxtPtr xmlCreateDocParserCtxt (xmlChar *cur); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 514 | xmlParserCtxtPtr xmlCreateFileParserCtxt (const char *filename); |
| 515 | xmlParserCtxtPtr xmlCreateMemoryParserCtxt(char *buffer, |
| 516 | int size); |
| 517 | void xmlFreeParserCtxt (xmlParserCtxtPtr ctxt); |
| 518 | xmlParserCtxtPtr xmlNewParserCtxt (void); |
| 519 | void xmlSwitchEncoding (xmlParserCtxtPtr ctxt, |
| 520 | xmlCharEncoding enc); |
Daniel Veillard | d692aa4 | 1999-02-28 21:54:31 +0000 | [diff] [blame] | 521 | |
Daniel Veillard | bc50b59 | 1999-03-01 12:28:53 +0000 | [diff] [blame] | 522 | /** |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 523 | * Entities |
| 524 | */ |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 525 | void xmlHandleEntity (xmlParserCtxtPtr ctxt, |
| 526 | xmlEntityPtr entity); |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 527 | |
Daniel Veillard | bc50b59 | 1999-03-01 12:28:53 +0000 | [diff] [blame] | 528 | /** |
| 529 | * Input Streams |
| 530 | */ |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 531 | xmlParserInputPtr xmlNewEntityInputStream (xmlParserCtxtPtr ctxt, |
| 532 | xmlEntityPtr entity); |
| 533 | void xmlPushInput (xmlParserCtxtPtr ctxt, |
| 534 | xmlParserInputPtr input); |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 535 | xmlChar xmlPopInput (xmlParserCtxtPtr ctxt); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 536 | void xmlFreeInputStream (xmlParserInputPtr input); |
| 537 | xmlParserInputPtr xmlNewInputFromFile (xmlParserCtxtPtr ctxt, |
| 538 | const char *filename); |
Daniel Veillard | bc50b59 | 1999-03-01 12:28:53 +0000 | [diff] [blame] | 539 | |
| 540 | /** |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 541 | * Namespaces. |
| 542 | */ |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 543 | xmlChar * xmlSplitQName (const xmlChar *name, |
| 544 | xmlChar **prefix); |
| 545 | xmlChar * xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt); |
| 546 | xmlChar * xmlNamespaceParseQName (xmlParserCtxtPtr ctxt, |
| 547 | xmlChar **prefix); |
| 548 | xmlChar * xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt); |
| 549 | xmlChar * xmlParseQuotedString (xmlParserCtxtPtr ctxt); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 550 | void xmlParseNamespace (xmlParserCtxtPtr ctxt); |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 551 | |
Daniel Veillard | bc50b59 | 1999-03-01 12:28:53 +0000 | [diff] [blame] | 552 | /** |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 553 | * Generic production rules |
| 554 | */ |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 555 | xmlChar * xmlScanName (xmlParserCtxtPtr ctxt); |
| 556 | xmlChar * xmlParseName (xmlParserCtxtPtr ctxt); |
| 557 | xmlChar * xmlParseNmtoken (xmlParserCtxtPtr ctxt); |
| 558 | xmlChar * xmlParseEntityValue (xmlParserCtxtPtr ctxt, |
| 559 | xmlChar **orig); |
| 560 | xmlChar * xmlParseAttValue (xmlParserCtxtPtr ctxt); |
| 561 | xmlChar * xmlParseSystemLiteral (xmlParserCtxtPtr ctxt); |
| 562 | xmlChar * xmlParsePubidLiteral (xmlParserCtxtPtr ctxt); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 563 | void xmlParseCharData (xmlParserCtxtPtr ctxt, |
| 564 | int cdata); |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 565 | xmlChar * xmlParseExternalID (xmlParserCtxtPtr ctxt, |
| 566 | xmlChar **publicID, |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 567 | int strict); |
| 568 | void xmlParseComment (xmlParserCtxtPtr ctxt); |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 569 | xmlChar * xmlParsePITarget (xmlParserCtxtPtr ctxt); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 570 | void xmlParsePI (xmlParserCtxtPtr ctxt); |
| 571 | void xmlParseNotationDecl (xmlParserCtxtPtr ctxt); |
| 572 | void xmlParseEntityDecl (xmlParserCtxtPtr ctxt); |
| 573 | int xmlParseDefaultDecl (xmlParserCtxtPtr ctxt, |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 574 | xmlChar **value); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 575 | xmlEnumerationPtr xmlParseNotationType (xmlParserCtxtPtr ctxt); |
| 576 | xmlEnumerationPtr xmlParseEnumerationType (xmlParserCtxtPtr ctxt); |
| 577 | int xmlParseEnumeratedType (xmlParserCtxtPtr ctxt, |
| 578 | xmlEnumerationPtr *tree); |
| 579 | int xmlParseAttributeType (xmlParserCtxtPtr ctxt, |
| 580 | xmlEnumerationPtr *tree); |
| 581 | void xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt); |
| 582 | xmlElementContentPtr xmlParseElementMixedContentDecl |
| 583 | (xmlParserCtxtPtr ctxt); |
| 584 | xmlElementContentPtr xmlParseElementChildrenContentDecl |
| 585 | (xmlParserCtxtPtr ctxt); |
| 586 | int xmlParseElementContentDecl(xmlParserCtxtPtr ctxt, |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 587 | xmlChar *name, |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 588 | xmlElementContentPtr *result); |
| 589 | int xmlParseElementDecl (xmlParserCtxtPtr ctxt); |
| 590 | void xmlParseMarkupDecl (xmlParserCtxtPtr ctxt); |
| 591 | int xmlParseCharRef (xmlParserCtxtPtr ctxt); |
| 592 | xmlEntityPtr xmlParseEntityRef (xmlParserCtxtPtr ctxt); |
| 593 | void xmlParseReference (xmlParserCtxtPtr ctxt); |
| 594 | void xmlParsePEReference (xmlParserCtxtPtr ctxt); |
| 595 | void xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt); |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 596 | xmlChar * xmlParseAttribute (xmlParserCtxtPtr ctxt, |
| 597 | xmlChar **value); |
| 598 | xmlChar * xmlParseStartTag (xmlParserCtxtPtr ctxt); |
Daniel Veillard | dbfd641 | 1999-12-28 16:35:14 +0000 | [diff] [blame] | 599 | void xmlParseEndTag (xmlParserCtxtPtr ctxt); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 600 | void xmlParseCDSect (xmlParserCtxtPtr ctxt); |
| 601 | void xmlParseContent (xmlParserCtxtPtr ctxt); |
| 602 | void xmlParseElement (xmlParserCtxtPtr ctxt); |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 603 | xmlChar * xmlParseVersionNum (xmlParserCtxtPtr ctxt); |
| 604 | xmlChar * xmlParseVersionInfo (xmlParserCtxtPtr ctxt); |
| 605 | xmlChar * xmlParseEncName (xmlParserCtxtPtr ctxt); |
| 606 | xmlChar * xmlParseEncodingDecl (xmlParserCtxtPtr ctxt); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 607 | int xmlParseSDDecl (xmlParserCtxtPtr ctxt); |
| 608 | void xmlParseXMLDecl (xmlParserCtxtPtr ctxt); |
| 609 | void xmlParseMisc (xmlParserCtxtPtr ctxt); |
| 610 | void xmlParseExternalSubset (xmlParserCtxtPtr ctxt, |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 611 | const xmlChar *ExternalID, |
| 612 | const xmlChar *SystemID); |
Daniel Veillard | 517752b | 1999-04-05 12:20:10 +0000 | [diff] [blame] | 613 | /* |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 614 | * Entities substitution |
| 615 | */ |
| 616 | #define XML_SUBSTITUTE_NONE 0 |
| 617 | #define XML_SUBSTITUTE_REF 1 |
| 618 | #define XML_SUBSTITUTE_PEREF 2 |
| 619 | #define XML_SUBSTITUTE_BOTH 3 |
| 620 | |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 621 | xmlChar * xmlDecodeEntities (xmlParserCtxtPtr ctxt, |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 622 | int len, |
| 623 | int what, |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 624 | xmlChar end, |
| 625 | xmlChar end2, |
| 626 | xmlChar end3); |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 627 | |
| 628 | /* |
Daniel Veillard | 517752b | 1999-04-05 12:20:10 +0000 | [diff] [blame] | 629 | * Generated by MACROS on top of parser.c c.f. PUSH_AND_POP |
| 630 | */ |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 631 | int nodePush (xmlParserCtxtPtr ctxt, |
| 632 | xmlNodePtr value); |
| 633 | xmlNodePtr nodePop (xmlParserCtxtPtr ctxt); |
| 634 | int inputPush (xmlParserCtxtPtr ctxt, |
| 635 | xmlParserInputPtr value); |
| 636 | xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt); |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 637 | |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 638 | #ifdef __cplusplus |
| 639 | } |
| 640 | #endif |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 641 | #endif /* __XML_PARSER_INTERNALS_H__ */ |