From 47d5c086a1cfba4b96344009afb43ad17b33cc82 Mon Sep 17 00:00:00 2001 From: scottmk Date: Sat, 14 Aug 2010 11:33:08 +0000 Subject: [PATCH 1/1] Add some macros for upward compatibility from the old JSON parser. These macros map the old functions to the equivalent new ones. M include/opensrf/osrf_json.h git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2001 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/osrf_json.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/opensrf/osrf_json.h b/include/opensrf/osrf_json.h index 4431ee3..80619d0 100644 --- a/include/opensrf/osrf_json.h +++ b/include/opensrf/osrf_json.h @@ -134,6 +134,16 @@ struct _jsonIteratorStruct { }; typedef struct _jsonIteratorStruct jsonIterator; +/** + @brief Macros for upward compatibility with an old, defunct version + of the JSON parser. +*/ +/*@{*/ +#define jsonParseString jsonParse +#define jsonParseStringRaw jsonParseRaw +#define jsonParseStringFmt jsonParseFmt +/*@}*/ + jsonObject* jsonParse( const char* str ); jsonObject* jsonParseRaw( const char* str ); -- 2.43.2