Applied Davids SAX handler fixups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24050 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-11-07 18:37:36 +00:00
parent 688192ff19
commit df40863d54
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2006-11-07 David Wetzel <dave@turbocat.de>
* Source/Additions/GSXML.m:
Fix error setting start and end element for SAX.
2006-11-06 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSObject.m: Use %p to print address in description.

View file

@ -3318,10 +3318,9 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
xmlSAXVersion(LIB, 2); // Set SAX2
LIB->startElementNs = (void*) startElementNsFunction;
LIB->endElementNs = (void*) endElementNsFunction;
#else
#endif
LIB->startElement = (void*) startElementFunction;
LIB->endElement = (void*) endElementFunction;
#endif
LIB->internalSubset = (void*) internalSubsetFunction;
LIB->externalSubset = (void*) externalSubsetFunction;
LIB->isStandalone = (void*) isStandaloneFunction;
@ -3440,10 +3439,9 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
xmlSAXVersion(LIB, 2); // Set SAX2
SETCB(startElementNs, startElement:prefix:href:attributes:);
SETCB(endElementNs, endElement:prefix:href:);
#else
#endif
SETCB(startElement, startElement:attributes:);
SETCB(endElement, endElement:);
#endif
SETCB(internalSubset, internalSubset:externalID:systemID:);
SETCB(externalSubset, externalSubset:externalID:systemID:);
SETCB(isStandalone, isStandalone);