diff options
author | fdrake <fdrake> | 2002-09-05 01:48:24 +0000 |
---|---|---|
committer | fdrake <fdrake> | 2002-09-05 01:48:24 +0000 |
commit | 605ace7791f9965f4eb3cb42d297fc26043ec6a5 (patch) | |
tree | a9dd22b77a9e6c2b5a2b6ebdb352a6d888ee196b /xmlwf | |
parent | c582f9d5203f649f7d46e9bc9562d2968a09e9df (diff) | |
download | libexpat-605ace7791f9965f4eb3cb42d297fc26043ec6a5.tar.gz |
Elaborate the XML_GetFeatureList() API a bit, and add additional info
that may be needed by a hughly flexible client. (Or at least used to check
that the Expat that it links to matches client expectations.)
Diffstat (limited to 'xmlwf')
-rwxr-xr-x | xmlwf/xmlwf.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/xmlwf/xmlwf.c b/xmlwf/xmlwf.c index 34149c3..8a8056e 100755 --- a/xmlwf/xmlwf.c +++ b/xmlwf/xmlwf.c @@ -609,17 +609,19 @@ showVersion(XML_Char *prog) prog = s + 1; ++s; } - ftprintf(stdout, T("%s using %s"), prog, XML_ExpatVersion()); - if (features == NULL || features[0].feature == XML_FEATURE_END) - ftprintf(stdout, T("\n")); - else { + ftprintf(stdout, T("%s using %s\n"), prog, XML_ExpatVersion()); + if (features != NULL && features[0].feature != XML_FEATURE_END) { int i = 1; - ftprintf(stdout, T(" (%s"), features[0].name); + ftprintf(stdout, T("%s"), features[0].name); + if (features[0].value) + ftprintf(stdout, T("=%ld"), features[0].value); while (features[i].feature != XML_FEATURE_END) { ftprintf(stdout, T(", %s"), features[i].name); + if (features[i].value) + ftprintf(stdout, T("=%ld"), features[i].value); ++i; } - ftprintf(stdout, T(")\n")); + ftprintf(stdout, T("\n")); } } |