summaryrefslogtreecommitdiff
path: root/testSAX.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>1999-06-22 21:49:07 +0000
committerDaniel Veillard <veillard@src.gnome.org>1999-06-22 21:49:07 +0000
commit14fff064e570ed836a5243a0ed82eca5fae4845a (patch)
tree423930ad4b361cc2141ac646c8e4d6f0f542ced1 /testSAX.c
parent05240da81832cc922f396e3ff3322666fad47668 (diff)
downloadlibxml2-14fff064e570ed836a5243a0ed82eca5fae4845a.tar.gz
Big changes, seems that 1.2.0 wasn't commited, here is 1.3.0, Daniel
Diffstat (limited to 'testSAX.c')
-rw-r--r--testSAX.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/testSAX.c b/testSAX.c
index 8d646915..1e7acb1b 100644
--- a/testSAX.c
+++ b/testSAX.c
@@ -177,8 +177,16 @@ internalSubsetDebug(xmlParserCtxtPtr ctxt, const CHAR *name,
xmlParserInputPtr
resolveEntityDebug(xmlParserCtxtPtr ctxt, const CHAR *publicId, const CHAR *systemId)
{
- fprintf(stdout, "SAX.resolveEntity(%s, %s)\n",
- (char *)publicId, (char *)systemId);
+
+ fprintf(stdout, "SAX.resolveEntity(");
+ if (publicId != NULL)
+ fprintf(stdout, "%s", (char *)publicId);
+ else
+ fprintf(stdout, " ");
+ if (systemId != NULL)
+ fprintf(stdout, ", %s)\n", (char *)systemId);
+ else
+ fprintf(stdout, ", )\n");
if (systemId != NULL) {
return(xmlNewInputFromFile(ctxt, systemId));
}