diff options
author | Daniel Veillard <veillard@src.gnome.org> | 1999-06-22 21:49:07 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 1999-06-22 21:49:07 +0000 |
commit | 14fff064e570ed836a5243a0ed82eca5fae4845a (patch) | |
tree | 423930ad4b361cc2141ac646c8e4d6f0f542ced1 /testSAX.c | |
parent | 05240da81832cc922f396e3ff3322666fad47668 (diff) | |
download | libxml2-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.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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)); } |