Skip to content

Commit

Permalink
Merge branch 'xml_sax2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Jan 17, 2025
2 parents d07c207 + a94dee4 commit 1d97721
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Source/Additions/GSXML.m
Original file line number Diff line number Diff line change
Expand Up @@ -2992,7 +2992,11 @@ + (void) initialize
has = [HANDLER hasInternalSubset];
if (has < 0)
{
has = TREEFUN(hasInternalSubset, (ctx));
#if LIBXML_VERSION >= 20900
has = xmlSAX2HasInternalSubset (ctx);
#else
has = xmlInternalSubset (ctxt);
#endif
}
return has;
}
Expand All @@ -3006,7 +3010,11 @@ + (void) initialize
has = [HANDLER hasExternalSubset];
if (has < 0)
{
has = TREEFUN(hasExternalSubset, (ctx));
#if LIBXML_VERSION >= 20900
has = xmlSAX2HasExternalSubset (ctx);
#else
has = xmlExternalSubset (ctx);
#endif
}
return has;
}
Expand Down Expand Up @@ -3720,6 +3728,7 @@ - (BOOL) _initLibXML
LIB->isStandalone = (void*) isStandaloneFunction;
LIB->hasInternalSubset = (void*) hasInternalSubsetFunction;
LIB->hasExternalSubset = (void*) hasExternalSubsetFunction;
LIB->resolveEntity = (void*) resolveEntityFunction;
LIB->getEntity = (void*) getEntityIgnoreExternal;
LIB->entityDecl = (void*) entityDeclFunction;
LIB->notationDecl = (void*) notationDeclFunction;
Expand All @@ -3738,7 +3747,6 @@ - (BOOL) _initLibXML
LIB->fatalError = (void*) fatalErrorFunction;
LIB->getParameterEntity = (void*) getParameterEntityFunction;
LIB->cdataBlock = (void*) cdataBlockFunction;
LIB->resolveEntity = (void*) resolveEntityFunction;
#undef LIB
return YES;
}
Expand Down Expand Up @@ -3840,6 +3848,7 @@ - (BOOL) _initLibXML
SETCB(isStandalone, isStandalone);
SETCB(hasInternalSubset, hasInternalSubset);
SETCB(hasExternalSubset, hasExternalSubset);
LIB->resolveEntity = resolveEntityFunction;
SETCB(getEntity, getEntity:);
if (LIB->getEntity != getEntityFunction)
{
Expand Down Expand Up @@ -3897,6 +3906,7 @@ - (BOOL) _initLibXML
LIB->isStandalone = (void*)isStandaloneFunction;
LIB->hasInternalSubset = (void*)hasInternalSubsetFunction;
LIB->hasExternalSubset = (void*)hasExternalSubsetFunction;
LIB->resolveEntity = (void*)resolveEntityFunction;
LIB->getEntity = (void*)getEntityFunction;
LIB->entityDecl = (void*)entityDeclFunction;
LIB->notationDecl = (void*)notationDeclFunction;
Expand Down

0 comments on commit 1d97721

Please sign in to comment.