[Expat-CVS] expat/lib expat.h,1.34,1.35 xmlparse.c,1.70,1.71

Fred L. Drake fdrake@users.sourceforge.net
Mon Aug 26 10:20:05 2002


Update of /cvsroot/expat/expat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv3656/lib

Modified Files:
	expat.h xmlparse.c 
Log Message:
XML_GetFeatureList():  New API function.

Index: expat.h
===================================================================
RCS file: /cvsroot/expat/expat/lib/expat.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- expat.h	26 Aug 2002 15:04:19 -0000	1.34
+++ expat.h	26 Aug 2002 17:19:41 -0000	1.35
@@ -864,6 +864,9 @@
 XMLPARSEAPI(XML_Expat_Version)
 XML_ExpatVersionInfo(void);
 
+XMLPARSEAPI(const char **)
+XML_GetFeatureList(void);
+
 
 /* Expat follows the GNU/Linux convention of odd number minor version for
    beta/development releases and even number minor version for stable

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- xmlparse.c	26 Aug 2002 15:04:19 -0000	1.70
+++ xmlparse.c	26 Aug 2002 17:19:41 -0000	1.71
@@ -1584,7 +1584,8 @@
 }
 
 XML_Expat_Version
-XML_ExpatVersionInfo(void) {
+XML_ExpatVersionInfo(void)
+{
   XML_Expat_Version version;
 
   version.major = XML_MAJOR_VERSION;
@@ -1592,6 +1593,24 @@
   version.micro = XML_MICRO_VERSION;
 
   return version;
+}
+
+const char **
+XML_GetFeatureList(void)
+{
+  static const char *features[] = {
+#ifdef XML_DTD
+    "XML_DTD",
+#endif
+#ifdef XML_UNICODE
+    "XML_UNICODE",
+#endif
+#ifdef XML_UNICODE_WCHAR_T
+    "XML_UNICODE_WCHAR_T",
+#endif
+    NULL
+  };
+  return features;
 }
 
 static