diff options
author | fdrake <fdrake> | 2002-08-29 04:54:04 +0000 |
---|---|---|
committer | fdrake <fdrake> | 2002-08-29 04:54:04 +0000 |
commit | 94b209d1db0006ed08bd9abdd55f53a1b4d971d0 (patch) | |
tree | 4dbdb44ef7101ea9c625c873dae5840612abde08 /xmlwf | |
parent | e9e76454e64870e42861101f20a27014e84df3ec (diff) | |
download | libexpat-94b209d1db0006ed08bd9abdd55f53a1b4d971d0.tar.gz |
Revise the XML_GetFeatureList() function signature so that we maintain the
behavior that all strings returned from Expat are affected by the XML_UNICODE
and XML_UNICODE_WCHAR_T feature-test macros, and ensure that an application
that needs to determine what type of character data is returned can do so
with reasonable ease.
Diffstat (limited to 'xmlwf')
-rwxr-xr-x | xmlwf/xmlwf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmlwf/xmlwf.c b/xmlwf/xmlwf.c index 36d8f25..34149c3 100755 --- a/xmlwf/xmlwf.c +++ b/xmlwf/xmlwf.c @@ -599,7 +599,7 @@ showVersion(XML_Char *prog) { XML_Char *s = prog; XML_Char ch; - const char **features = XML_GetFeatureList(); + const XML_Feature *features = XML_GetFeatureList(); while ((ch = *s) != 0) { if (ch == '/' #ifdef WIN32 @@ -610,13 +610,13 @@ showVersion(XML_Char *prog) ++s; } ftprintf(stdout, T("%s using %s"), prog, XML_ExpatVersion()); - if (features[0] == NULL) + if (features == NULL || features[0].feature == XML_FEATURE_END) ftprintf(stdout, T("\n")); else { int i = 1; - ftprintf(stdout, T(" (%s"), features[0]); - while (features[i] != NULL) { - ftprintf(stdout, T(", %s"), features[i]); + ftprintf(stdout, T(" (%s"), features[0].name); + while (features[i].feature != XML_FEATURE_END) { + ftprintf(stdout, T(", %s"), features[i].name); ++i; } ftprintf(stdout, T(")\n")); |