Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +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 | * 14 Nov 2000 ht - truncated declaration of xmlParseElementChildrenContentDecl |
| 9 | * for VMS |
| 10 | * |
| 11 | */ |
| 12 | |
| 13 | #ifndef __XML_PARSER_INTERNALS_H__ |
| 14 | #define __XML_PARSER_INTERNALS_H__ |
| 15 | |
| 16 | #include <libxml/parser.h> |
Daniel Veillard | 56a4cb8 | 2001-03-24 17:00:36 +0000 | [diff] [blame] | 17 | #include <libxml/HTMLparser.h> |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 18 | |
| 19 | #ifdef __cplusplus |
| 20 | extern "C" { |
| 21 | #endif |
| 22 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 23 | /** |
| 24 | * XML_MAX_NAMELEN: |
| 25 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 26 | * Identifiers can be longer, but this will be more costly |
| 27 | * at runtime. |
| 28 | */ |
| 29 | #define XML_MAX_NAMELEN 100 |
| 30 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 31 | /** |
| 32 | * INPUT_CHUNK: |
| 33 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 34 | * The parser tries to always have that amount of input ready |
| 35 | * one of the point is providing context when reporting errors |
| 36 | */ |
| 37 | #define INPUT_CHUNK 250 |
| 38 | |
| 39 | /************************************************************************ |
| 40 | * * |
| 41 | * UNICODE version of the macros. * |
| 42 | * * |
| 43 | ************************************************************************/ |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 44 | /** |
| 45 | * IS_CHAR: |
| 46 | * @c: an UNICODE value (int) |
| 47 | * |
| 48 | * Macro to check the following production in the XML spec |
| 49 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 50 | * [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
| 51 | * | [#x10000-#x10FFFF] |
| 52 | * any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. |
| 53 | */ |
| 54 | #define IS_CHAR(c) \ |
| 55 | ((((c) >= 0x20) && ((c) <= 0xD7FF)) || \ |
| 56 | ((c) == 0x09) || ((c) == 0x0A) || ((c) == 0x0D) || \ |
| 57 | (((c) >= 0xE000) && ((c) <= 0xFFFD)) || \ |
| 58 | (((c) >= 0x10000) && ((c) <= 0x10FFFF))) |
| 59 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 60 | /** |
| 61 | * IS_BLANK: |
| 62 | * @c: an UNICODE value (int) |
| 63 | * |
| 64 | * Macro to check the following production in the XML spec |
| 65 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 66 | * [3] S ::= (#x20 | #x9 | #xD | #xA)+ |
| 67 | */ |
| 68 | #define IS_BLANK(c) (((c) == 0x20) || ((c) == 0x09) || ((c) == 0xA) || \ |
| 69 | ((c) == 0x0D)) |
| 70 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 71 | /** |
| 72 | * IS_BASECHAR: |
| 73 | * @c: an UNICODE value (int) |
| 74 | * |
| 75 | * Macro to check the following production in the XML spec |
| 76 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 77 | * [85] BaseChar ::= ... long list see REC ... |
| 78 | */ |
| 79 | #define IS_BASECHAR(c) xmlIsBaseChar(c) |
| 80 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 81 | /** |
| 82 | * IS_DIGIT: |
| 83 | * @c: an UNICODE value (int) |
| 84 | * |
| 85 | * Macro to check the following production in the XML spec |
| 86 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 87 | * [88] Digit ::= ... long list see REC ... |
| 88 | */ |
| 89 | #define IS_DIGIT(c) xmlIsDigit(c) |
| 90 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 91 | /** |
| 92 | * IS_COMBINING: |
| 93 | * @c: an UNICODE value (int) |
| 94 | * |
| 95 | * Macro to check the following production in the XML spec |
| 96 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 97 | * [87] CombiningChar ::= ... long list see REC ... |
| 98 | */ |
| 99 | #define IS_COMBINING(c) xmlIsCombining(c) |
| 100 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 101 | /** |
| 102 | * IS_EXTENDER: |
| 103 | * @c: an UNICODE value (int) |
| 104 | * |
| 105 | * Macro to check the following production in the XML spec |
| 106 | * |
| 107 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 108 | * [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 | |
| 109 | * #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] | |
| 110 | * [#x309D-#x309E] | [#x30FC-#x30FE] |
| 111 | */ |
| 112 | #define IS_EXTENDER(c) xmlIsExtender(c) |
| 113 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 114 | /** |
| 115 | * IS_IDEOGRAPHIC: |
| 116 | * @c: an UNICODE value (int) |
| 117 | * |
| 118 | * Macro to check the following production in the XML spec |
| 119 | * |
| 120 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 121 | * [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029] |
| 122 | */ |
| 123 | #define IS_IDEOGRAPHIC(c) xmlIsIdeographic(c) |
| 124 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 125 | /** |
| 126 | * IS_LETTER: |
| 127 | * @c: an UNICODE value (int) |
| 128 | * |
| 129 | * Macro to check the following production in the XML spec |
| 130 | * |
| 131 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 132 | * [84] Letter ::= BaseChar | Ideographic |
| 133 | */ |
| 134 | #define IS_LETTER(c) (IS_BASECHAR(c) || IS_IDEOGRAPHIC(c)) |
| 135 | |
| 136 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 137 | /** |
| 138 | * IS_PUBIDCHAR: |
| 139 | * @c: an UNICODE value (int) |
| 140 | * |
| 141 | * Macro to check the following production in the XML spec |
| 142 | * |
| 143 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 144 | * [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] |
| 145 | */ |
| 146 | #define IS_PUBIDCHAR(c) xmlIsPubidChar(c) |
| 147 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 148 | /** |
| 149 | * SKIP_EOL: |
| 150 | * @p: and UTF8 string pointer |
| 151 | * |
| 152 | * Skips the end of line chars |
| 153 | */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 154 | #define SKIP_EOL(p) \ |
| 155 | if (*(p) == 0x13) { p++ ; if (*(p) == 0x10) p++; } \ |
| 156 | if (*(p) == 0x10) { p++ ; if (*(p) == 0x13) p++; } |
| 157 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 158 | /** |
| 159 | * MOVETO_ENDTAG: |
| 160 | * @p: and UTF8 string pointer |
| 161 | * |
| 162 | * Skips to the next '>' char |
| 163 | */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 164 | #define MOVETO_ENDTAG(p) \ |
| 165 | while ((*p) && (*(p) != '>')) (p)++ |
| 166 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 167 | /** |
| 168 | * MOVETO_STARTTAG: |
| 169 | * @p: and UTF8 string pointer |
| 170 | * |
| 171 | * Skips to the next '<' char |
| 172 | */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 173 | #define MOVETO_STARTTAG(p) \ |
| 174 | while ((*p) && (*(p) != '<')) (p)++ |
| 175 | |
| 176 | /** |
| 177 | * Global vaiables affecting the default parser behaviour. |
| 178 | */ |
| 179 | |
| 180 | LIBXML_DLL_IMPORT extern int xmlParserDebugEntities; |
| 181 | LIBXML_DLL_IMPORT extern int xmlGetWarningsDefaultValue; |
| 182 | LIBXML_DLL_IMPORT extern int xmlParserDebugEntities; |
| 183 | LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue; |
| 184 | LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue; |
| 185 | LIBXML_DLL_IMPORT extern int xmlLoadExtDtdDefaultValue; |
| 186 | LIBXML_DLL_IMPORT extern int xmlPedanticParserDefaultValue; |
| 187 | LIBXML_DLL_IMPORT extern int xmlKeepBlanksDefaultValue; |
| 188 | LIBXML_DLL_IMPORT extern xmlChar xmlStringText[]; |
| 189 | LIBXML_DLL_IMPORT extern xmlChar xmlStringTextNoenc[]; |
| 190 | LIBXML_DLL_IMPORT extern xmlChar xmlStringComment[]; |
| 191 | |
| 192 | /* |
| 193 | * Function to finish teh work of the macros where needed |
| 194 | */ |
| 195 | int xmlIsBaseChar (int c); |
| 196 | int xmlIsBlank (int c); |
| 197 | int xmlIsPubidChar (int c); |
| 198 | int xmlIsLetter (int c); |
| 199 | int xmlIsDigit (int c); |
| 200 | int xmlIsIdeographic(int c); |
| 201 | int xmlIsCombining (int c); |
| 202 | int xmlIsExtender (int c); |
| 203 | int xmlIsCombining (int c); |
| 204 | int xmlIsChar (int c); |
| 205 | |
| 206 | /** |
| 207 | * Parser context |
| 208 | */ |
| 209 | xmlParserCtxtPtr xmlCreateDocParserCtxt (xmlChar *cur); |
| 210 | xmlParserCtxtPtr xmlCreateFileParserCtxt (const char *filename); |
Daniel Veillard | fd7ddca | 2001-05-16 10:57:35 +0000 | [diff] [blame] | 211 | xmlParserCtxtPtr xmlCreateMemoryParserCtxt(const char *buffer, |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 212 | int size); |
| 213 | xmlParserCtxtPtr xmlNewParserCtxt (void); |
| 214 | xmlParserCtxtPtr xmlCreateEntityParserCtxt(const xmlChar *URL, |
| 215 | const xmlChar *ID, |
| 216 | const xmlChar *base); |
| 217 | int xmlSwitchEncoding (xmlParserCtxtPtr ctxt, |
| 218 | xmlCharEncoding enc); |
| 219 | int xmlSwitchToEncoding (xmlParserCtxtPtr ctxt, |
| 220 | xmlCharEncodingHandlerPtr handler); |
| 221 | void xmlFreeParserCtxt (xmlParserCtxtPtr ctxt); |
| 222 | |
| 223 | /** |
| 224 | * Entities |
| 225 | */ |
| 226 | void xmlHandleEntity (xmlParserCtxtPtr ctxt, |
| 227 | xmlEntityPtr entity); |
| 228 | |
| 229 | /** |
| 230 | * Input Streams |
| 231 | */ |
Daniel Veillard | 56a4cb8 | 2001-03-24 17:00:36 +0000 | [diff] [blame] | 232 | xmlParserInputPtr xmlNewStringInputStream (xmlParserCtxtPtr ctxt, |
| 233 | const xmlChar *buffer); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 234 | xmlParserInputPtr xmlNewEntityInputStream (xmlParserCtxtPtr ctxt, |
| 235 | xmlEntityPtr entity); |
| 236 | void xmlPushInput (xmlParserCtxtPtr ctxt, |
| 237 | xmlParserInputPtr input); |
| 238 | xmlChar xmlPopInput (xmlParserCtxtPtr ctxt); |
| 239 | void xmlFreeInputStream (xmlParserInputPtr input); |
| 240 | xmlParserInputPtr xmlNewInputFromFile (xmlParserCtxtPtr ctxt, |
| 241 | const char *filename); |
| 242 | xmlParserInputPtr xmlNewInputStream (xmlParserCtxtPtr ctxt); |
| 243 | |
| 244 | /** |
| 245 | * Namespaces. |
| 246 | */ |
| 247 | xmlChar * xmlSplitQName (xmlParserCtxtPtr ctxt, |
| 248 | const xmlChar *name, |
| 249 | xmlChar **prefix); |
| 250 | xmlChar * xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt); |
| 251 | xmlChar * xmlNamespaceParseQName (xmlParserCtxtPtr ctxt, |
| 252 | xmlChar **prefix); |
| 253 | xmlChar * xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt); |
| 254 | xmlChar * xmlParseQuotedString (xmlParserCtxtPtr ctxt); |
| 255 | void xmlParseNamespace (xmlParserCtxtPtr ctxt); |
| 256 | |
| 257 | /** |
| 258 | * Generic production rules |
| 259 | */ |
| 260 | xmlChar * xmlScanName (xmlParserCtxtPtr ctxt); |
| 261 | xmlChar * xmlParseName (xmlParserCtxtPtr ctxt); |
| 262 | xmlChar * xmlParseNmtoken (xmlParserCtxtPtr ctxt); |
| 263 | xmlChar * xmlParseEntityValue (xmlParserCtxtPtr ctxt, |
| 264 | xmlChar **orig); |
| 265 | xmlChar * xmlParseAttValue (xmlParserCtxtPtr ctxt); |
| 266 | xmlChar * xmlParseSystemLiteral (xmlParserCtxtPtr ctxt); |
| 267 | xmlChar * xmlParsePubidLiteral (xmlParserCtxtPtr ctxt); |
| 268 | void xmlParseCharData (xmlParserCtxtPtr ctxt, |
| 269 | int cdata); |
| 270 | xmlChar * xmlParseExternalID (xmlParserCtxtPtr ctxt, |
| 271 | xmlChar **publicID, |
| 272 | int strict); |
| 273 | void xmlParseComment (xmlParserCtxtPtr ctxt); |
| 274 | xmlChar * xmlParsePITarget (xmlParserCtxtPtr ctxt); |
| 275 | void xmlParsePI (xmlParserCtxtPtr ctxt); |
| 276 | void xmlParseNotationDecl (xmlParserCtxtPtr ctxt); |
| 277 | void xmlParseEntityDecl (xmlParserCtxtPtr ctxt); |
| 278 | int xmlParseDefaultDecl (xmlParserCtxtPtr ctxt, |
| 279 | xmlChar **value); |
| 280 | xmlEnumerationPtr xmlParseNotationType (xmlParserCtxtPtr ctxt); |
| 281 | xmlEnumerationPtr xmlParseEnumerationType (xmlParserCtxtPtr ctxt); |
| 282 | int xmlParseEnumeratedType (xmlParserCtxtPtr ctxt, |
| 283 | xmlEnumerationPtr *tree); |
| 284 | int xmlParseAttributeType (xmlParserCtxtPtr ctxt, |
| 285 | xmlEnumerationPtr *tree); |
| 286 | void xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt); |
| 287 | xmlElementContentPtr xmlParseElementMixedContentDecl |
| 288 | (xmlParserCtxtPtr ctxt); |
| 289 | #ifdef VMS |
| 290 | xmlElementContentPtr xmlParseElementChildrenContentD |
| 291 | (xmlParserCtxtPtr ctxt); |
| 292 | #define xmlParseElementChildrenContentDecl xmlParseElementChildrenContentD |
| 293 | #else |
| 294 | xmlElementContentPtr xmlParseElementChildrenContentDecl |
| 295 | (xmlParserCtxtPtr ctxt); |
| 296 | #endif |
| 297 | int xmlParseElementContentDecl(xmlParserCtxtPtr ctxt, |
| 298 | xmlChar *name, |
| 299 | xmlElementContentPtr *result); |
| 300 | int xmlParseElementDecl (xmlParserCtxtPtr ctxt); |
| 301 | void xmlParseMarkupDecl (xmlParserCtxtPtr ctxt); |
| 302 | int xmlParseCharRef (xmlParserCtxtPtr ctxt); |
| 303 | xmlEntityPtr xmlParseEntityRef (xmlParserCtxtPtr ctxt); |
| 304 | void xmlParseReference (xmlParserCtxtPtr ctxt); |
| 305 | void xmlParsePEReference (xmlParserCtxtPtr ctxt); |
| 306 | void xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt); |
| 307 | xmlChar * xmlParseAttribute (xmlParserCtxtPtr ctxt, |
| 308 | xmlChar **value); |
| 309 | xmlChar * xmlParseStartTag (xmlParserCtxtPtr ctxt); |
| 310 | void xmlParseEndTag (xmlParserCtxtPtr ctxt); |
| 311 | void xmlParseCDSect (xmlParserCtxtPtr ctxt); |
| 312 | void xmlParseContent (xmlParserCtxtPtr ctxt); |
| 313 | void xmlParseElement (xmlParserCtxtPtr ctxt); |
| 314 | xmlChar * xmlParseVersionNum (xmlParserCtxtPtr ctxt); |
| 315 | xmlChar * xmlParseVersionInfo (xmlParserCtxtPtr ctxt); |
| 316 | xmlChar * xmlParseEncName (xmlParserCtxtPtr ctxt); |
| 317 | xmlChar * xmlParseEncodingDecl (xmlParserCtxtPtr ctxt); |
| 318 | int xmlParseSDDecl (xmlParserCtxtPtr ctxt); |
| 319 | void xmlParseXMLDecl (xmlParserCtxtPtr ctxt); |
| 320 | void xmlParseTextDecl (xmlParserCtxtPtr ctxt); |
| 321 | void xmlParseMisc (xmlParserCtxtPtr ctxt); |
| 322 | void xmlParseExternalSubset (xmlParserCtxtPtr ctxt, |
| 323 | const xmlChar *ExternalID, |
| 324 | const xmlChar *SystemID); |
| 325 | /* |
| 326 | * Entities substitution |
| 327 | */ |
| 328 | #define XML_SUBSTITUTE_NONE 0 |
| 329 | #define XML_SUBSTITUTE_REF 1 |
| 330 | #define XML_SUBSTITUTE_PEREF 2 |
| 331 | #define XML_SUBSTITUTE_BOTH 3 |
| 332 | |
| 333 | xmlChar * xmlDecodeEntities (xmlParserCtxtPtr ctxt, |
| 334 | int len, |
| 335 | int what, |
| 336 | xmlChar end, |
| 337 | xmlChar end2, |
| 338 | xmlChar end3); |
| 339 | xmlChar * xmlStringDecodeEntities (xmlParserCtxtPtr ctxt, |
| 340 | const xmlChar *str, |
| 341 | int what, |
| 342 | xmlChar end, |
| 343 | xmlChar end2, |
| 344 | xmlChar end3); |
| 345 | |
| 346 | /* |
| 347 | * Generated by MACROS on top of parser.c c.f. PUSH_AND_POP |
| 348 | */ |
| 349 | int nodePush (xmlParserCtxtPtr ctxt, |
| 350 | xmlNodePtr value); |
| 351 | xmlNodePtr nodePop (xmlParserCtxtPtr ctxt); |
| 352 | int inputPush (xmlParserCtxtPtr ctxt, |
| 353 | xmlParserInputPtr value); |
| 354 | xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt); |
Daniel Veillard | 56a4cb8 | 2001-03-24 17:00:36 +0000 | [diff] [blame] | 355 | xmlChar *namePop (xmlParserCtxtPtr ctxt); |
| 356 | int namePush (xmlParserCtxtPtr ctxt, |
| 357 | xmlChar *value); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 358 | |
| 359 | /* |
| 360 | * other comodities shared between parser.c and parserInternals |
| 361 | */ |
| 362 | int xmlSkipBlankChars (xmlParserCtxtPtr ctxt); |
| 363 | int xmlStringCurrentChar (xmlParserCtxtPtr ctxt, |
| 364 | const xmlChar *cur, |
| 365 | int *len); |
| 366 | void xmlParserHandlePEReference(xmlParserCtxtPtr ctxt); |
| 367 | void xmlParserHandleReference(xmlParserCtxtPtr ctxt); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 368 | int xmlCheckLanguageID (const xmlChar *lang); |
| 369 | |
| 370 | /* |
| 371 | * Really core function shared with HTML parser |
| 372 | */ |
| 373 | int xmlCurrentChar (xmlParserCtxtPtr ctxt, |
| 374 | int *len); |
Daniel Veillard | 56a4cb8 | 2001-03-24 17:00:36 +0000 | [diff] [blame] | 375 | int xmlCopyCharMultiByte (xmlChar *out, |
| 376 | int val); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 377 | int xmlCopyChar (int len, |
| 378 | xmlChar *out, |
| 379 | int val); |
| 380 | void xmlNextChar (xmlParserCtxtPtr ctxt); |
| 381 | void xmlParserInputShrink (xmlParserInputPtr in); |
| 382 | |
| 383 | #ifdef LIBXML_HTML_ENABLED |
| 384 | /* |
| 385 | * Actually comes from the HTML parser but launched from the init stuff |
| 386 | */ |
| 387 | void htmlInitAutoClose (void); |
Daniel Veillard | 56a4cb8 | 2001-03-24 17:00:36 +0000 | [diff] [blame] | 388 | htmlParserCtxtPtr htmlCreateFileParserCtxt(const char *filename, |
| 389 | const char *encoding); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 390 | #endif |
| 391 | #ifdef __cplusplus |
| 392 | } |
| 393 | #endif |
| 394 | #endif /* __XML_PARSER_INTERNALS_H__ */ |