diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-03-05 09:49:20 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-03-05 09:49:20 +0000 |
commit | 29631a8901021b9b33182ad821d0e32b52defce4 (patch) | |
tree | 750f2bfa6d9480c2d81f57115c1cb761c31419ec /parser.c | |
parent | 14be0a178f97516446ff036be91cafe24e077630 (diff) | |
download | libxml2-29631a8901021b9b33182ad821d0e32b52defce4.tar.gz |
10 mn hacking while waiting for doctor appointment:
- parser.c: trying to fix the Dtd parsing problem reported
by Gary, side effect of last week speed optimizations.
Daniel
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -1688,7 +1688,7 @@ xmlParseNameComplex(xmlParserCtxtPtr ctxt) { if (buffer == NULL) { if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) ctxt->sax->error(ctxt->userData, - "xmlParseName: out of memory\n"); + "xmlParseNameComplex: out of memory\n"); return(NULL); } memcpy(buffer, buf, len); @@ -1708,7 +1708,7 @@ xmlParseNameComplex(xmlParserCtxtPtr ctxt) { if (buffer == NULL) { if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) ctxt->sax->error(ctxt->userData, - "xmlParseName: out of memory\n"); + "xmlParseNameComplex: out of memory\n"); return(NULL); } } @@ -1874,7 +1874,7 @@ xmlParseNmtoken(xmlParserCtxtPtr ctxt) { if (buffer == NULL) { if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) ctxt->sax->error(ctxt->userData, - "xmlParseName: out of memory\n"); + "xmlParseNameComplex: out of memory\n"); return(NULL); } } @@ -3011,7 +3011,7 @@ xmlParseNotationDecl(xmlParserCtxtPtr ctxt) { } SKIP_BLANKS; - name = xmlParseName(ctxt); + name = xmlParseNameComplex(ctxt); if (name == NULL) { ctxt->errNo = XML_ERR_NOTATION_NOT_STARTED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) @@ -3129,7 +3129,7 @@ xmlParseEntityDecl(xmlParserCtxtPtr ctxt) { isParameter = 1; } - name = xmlParseName(ctxt); + name = xmlParseNameComplex(ctxt); if (name == NULL) { ctxt->errNo = XML_ERR_NAME_REQUIRED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) @@ -3269,7 +3269,7 @@ xmlParseEntityDecl(xmlParserCtxtPtr ctxt) { ctxt->disableSAX = 1; } SKIP_BLANKS; - ndata = xmlParseName(ctxt); + ndata = xmlParseNameComplex(ctxt); if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && (ctxt->sax->unparsedEntityDecl != NULL)) ctxt->sax->unparsedEntityDecl(ctxt->userData, name, @@ -3447,7 +3447,7 @@ xmlParseNotationType(xmlParserCtxtPtr ctxt) { do { NEXT; SKIP_BLANKS; - name = xmlParseName(ctxt); + name = xmlParseNameComplex(ctxt); if (name == NULL) { ctxt->errNo = XML_ERR_NAME_REQUIRED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) @@ -3716,7 +3716,7 @@ xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt) { ctxt->disableSAX = 1; } SKIP_BLANKS; - elemName = xmlParseName(ctxt); + elemName = xmlParseNameComplex(ctxt); if (elemName == NULL) { ctxt->errNo = XML_ERR_NAME_REQUIRED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) @@ -3736,7 +3736,7 @@ xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt) { GROW; tree = NULL; - attrName = xmlParseName(ctxt); + attrName = xmlParseNameComplex(ctxt); if (attrName == NULL) { ctxt->errNo = XML_ERR_NAME_REQUIRED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) @@ -3919,7 +3919,7 @@ xmlParseElementMixedContentDecl(xmlParserCtxtPtr ctxt) { xmlFree(elem); } SKIP_BLANKS; - elem = xmlParseName(ctxt); + elem = xmlParseNameComplex(ctxt); if (elem == NULL) { ctxt->errNo = XML_ERR_NAME_REQUIRED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) @@ -4016,7 +4016,7 @@ xmlParseElementChildrenContentDecl SKIP_BLANKS; GROW; } else { - elem = xmlParseName(ctxt); + elem = xmlParseNameComplex(ctxt); if (elem == NULL) { ctxt->errNo = XML_ERR_ELEMCONTENT_NOT_STARTED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) @@ -4159,7 +4159,7 @@ xmlParseElementChildrenContentDecl last = xmlParseElementChildrenContentDecl(ctxt); SKIP_BLANKS; } else { - elem = xmlParseName(ctxt); + elem = xmlParseNameComplex(ctxt); if (elem == NULL) { ctxt->errNo = XML_ERR_ELEMCONTENT_NOT_STARTED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) @@ -4308,7 +4308,7 @@ xmlParseElementDecl(xmlParserCtxtPtr ctxt) { ctxt->disableSAX = 1; } SKIP_BLANKS; - name = xmlParseName(ctxt); + name = xmlParseNameComplex(ctxt); if (name == NULL) { ctxt->errNo = XML_ERR_NAME_REQUIRED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) @@ -5443,7 +5443,7 @@ xmlParsePEReference(xmlParserCtxtPtr ctxt) { if (RAW == '%') { NEXT; - name = xmlParseName(ctxt); + name = xmlParseNameComplex(ctxt); if (name == NULL) { ctxt->errNo = XML_ERR_NAME_REQUIRED; if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) |