[Opensrf-commits] r1024 - in branches/new-json2: include/opensrf src/libopensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jul 11 15:25:42 EDT 2007


Author: erickson
Date: 2007-07-11 15:20:58 -0400 (Wed, 11 Jul 2007)
New Revision: 1024

Modified:
   branches/new-json2/include/opensrf/osrf_json_xml.h
   branches/new-json2/src/libopensrf/osrf_json_xml.c
Log:
wrapped all XML-related functionality in a compiler flag to allow easier compilation for those not interested in the xml utilities

Modified: branches/new-json2/include/opensrf/osrf_json_xml.h
===================================================================
--- branches/new-json2/include/opensrf/osrf_json_xml.h	2007-07-11 19:19:47 UTC (rev 1023)
+++ branches/new-json2/include/opensrf/osrf_json_xml.h	2007-07-11 19:20:58 UTC (rev 1024)
@@ -1,3 +1,5 @@
+#ifdef OSRF_JSON_ENABLE_XML_UTILS
+
 #include <stdio.h>
 #include <string.h>
 #include <libxml/globals.h>
@@ -21,3 +23,4 @@
  */
 jsonObject* jsonXMLToJSONObject(const char* xml);
 
+#endif

Modified: branches/new-json2/src/libopensrf/osrf_json_xml.c
===================================================================
--- branches/new-json2/src/libopensrf/osrf_json_xml.c	2007-07-11 19:19:47 UTC (rev 1023)
+++ branches/new-json2/src/libopensrf/osrf_json_xml.c	2007-07-11 19:20:58 UTC (rev 1024)
@@ -1,5 +1,7 @@
 #include <opensrf/osrf_json_xml.h>
 
+#ifdef OSRF_JSON_ENABLE_XML_UTILS
+
 struct osrfXMLGatewayParserStruct {
     osrfList* objStack;
     osrfList* keyStack;
@@ -360,4 +362,4 @@
 	return out;
 }
 
-
+#endif



More information about the opensrf-commits mailing list