version 1.36, 2000/09/10 13:14:22
|
version 1.37, 2000/09/16 13:35:50
|
Line 15
|
Line 15
|
extern "C" { |
extern "C" { |
#endif |
#endif |
|
|
|
/* |
|
* Identifiers can be longer, but this will be more costly |
|
* at runtime. |
|
*/ |
#define XML_MAX_NAMELEN 100 |
#define XML_MAX_NAMELEN 100 |
|
|
|
/* |
|
* The parser tries to always have that amount of input ready |
|
* one of the point is providing context when reporting errors |
|
*/ |
|
#define INPUT_CHUNK 250 |
|
|
/************************************************************************ |
/************************************************************************ |
* * |
* * |
* UNICODE version of the macros. * |
* UNICODE version of the macros. * |
Line 87 extern "C" {
|
Line 97 extern "C" {
|
#define MOVETO_STARTTAG(p) \ |
#define MOVETO_STARTTAG(p) \ |
while ((*p) && (*(p) != '<')) (p)++ |
while ((*p) && (*(p) != '<')) (p)++ |
|
|
|
/** |
|
* Global vaiables affecting the default parser behaviour. |
|
*/ |
|
|
|
extern int xmlParserDebugEntities; |
|
extern int xmlGetWarningsDefaultValue; |
|
extern int xmlParserDebugEntities; |
|
extern int xmlSubstituteEntitiesDefaultValue; |
|
extern int xmlDoValidityCheckingDefaultValue; |
|
extern int xmlPedanticParserDefaultValue; |
|
extern int xmlKeepBlanksDefaultValue; |
|
|
/* |
/* |
* Function to finish teh work of the macros where needed |
* Function to finish teh work of the macros where needed |
*/ |
*/ |
Line 102 int xmlIsCombining (int c);
|
Line 124 int xmlIsCombining (int c);
|
int xmlIsChar (int c); |
int xmlIsChar (int c); |
|
|
/** |
/** |
* Not for the faint of heart |
|
*/ |
|
|
|
extern int xmlParserDebugEntities; |
|
|
|
/** |
|
* Parser context |
* Parser context |
*/ |
*/ |
xmlParserCtxtPtr xmlCreateDocParserCtxt (xmlChar *cur); |
xmlParserCtxtPtr xmlCreateDocParserCtxt (xmlChar *cur); |
Line 141 xmlChar xmlPopInput (xmlParserCtxtPtr
|
Line 157 xmlChar xmlPopInput (xmlParserCtxtPtr
|
void xmlFreeInputStream (xmlParserInputPtr input); |
void xmlFreeInputStream (xmlParserInputPtr input); |
xmlParserInputPtr xmlNewInputFromFile (xmlParserCtxtPtr ctxt, |
xmlParserInputPtr xmlNewInputFromFile (xmlParserCtxtPtr ctxt, |
const char *filename); |
const char *filename); |
|
xmlParserInputPtr xmlNewInputStream (xmlParserCtxtPtr ctxt); |
|
|
/** |
/** |
* Namespaces. |
* Namespaces. |
Line 249 int inputPush (xmlParserCtxtPtr ctxt,
|
Line 266 int inputPush (xmlParserCtxtPtr ctxt,
|
xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt); |
xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt); |
|
|
/* |
/* |
|
* other comodities shared between parser.c and parserInternals |
|
*/ |
|
int xmlSkipBlankChars (xmlParserCtxtPtr ctxt); |
|
int xmlStringCurrentChar (xmlParserCtxtPtr ctxt, |
|
const xmlChar *cur, |
|
int *len); |
|
void xmlParserHandlePEReference(xmlParserCtxtPtr ctxt); |
|
void xmlParserHandleReference(xmlParserCtxtPtr ctxt); |
|
xmlChar *namePop (xmlParserCtxtPtr ctxt); |
|
int xmlCheckLanguageID (const xmlChar *lang); |
|
|
|
/* |
* Really core function shared with HTML parser |
* Really core function shared with HTML parser |
*/ |
*/ |
int xmlCurrentChar (xmlParserCtxtPtr ctxt, |
int xmlCurrentChar (xmlParserCtxtPtr ctxt, |