diff options
Diffstat (limited to 'xmlwf/xmlwf.c')
-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")); } } |