From 4504df71178fe7a0eb8e7c37fa548b7c853a800f Mon Sep 17 00:00:00 2001 From: Michael Clark Date: Tue, 13 Mar 2007 08:26:20 +0000 Subject: =?UTF-8?q?=20=20*=20printbuf.c=20-=20C.=20Watford=20(christopher?= =?UTF-8?q?=20dot=20watford=20at=20gmail=20dot=20com)=20=20=20=20=20Added?= =?UTF-8?q?=20a=20Win32/Win64=20compliant=20implementation=20of=20vasprint?= =?UTF-8?q?f=20=20=20*=20debug.c=20-=20C.=20Watford=20(christopher=20dot?= =?UTF-8?q?=20watford=20at=20gmail=20dot=20com)=20=20=20=20=20Removed=20us?= =?UTF-8?q?age=20of=20vsyslog=20on=20Win32/Win64=20systems,=20needs=20to?= =?UTF-8?q?=20be=20handled=20=20=20=20=20by=20a=20configure=20script=20=20?= =?UTF-8?q?=20*=20json=5Fobject.c=20-=20C.=20Watford=20(christopher=20dot?= =?UTF-8?q?=20watford=20at=20gmail=20dot=20com)=20=20=20=20=20Added=20scop?= =?UTF-8?q?e=20operator=20to=20wrap=20usage=20of=20json=5Fobject=5Fobject?= =?UTF-8?q?=5Fforeach,=20this=20=20=20=20=20needs=20to=20be=20rethought=20?= =?UTF-8?q?to=20be=20more=20ANSI=20C=20friendly=20=20=20*=20json=5Fobject.?= =?UTF-8?q?h=20-=20C.=20Watford=20(christopher=20dot=20watford=20at=20gmai?= =?UTF-8?q?l=20dot=20com)=20=20=20=20=20Added=20Microsoft=20C=20friendly?= =?UTF-8?q?=20version=20of=20json=5Fobject=5Fobject=5Fforeach=20=20=20*=20?= =?UTF-8?q?json=5Ftokener.c=20-=20C.=20Watford=20(christopher=20dot=20watf?= =?UTF-8?q?ord=20at=20gmail=20dot=20com)=20=20=20=20=20Added=20a=20Win32/W?= =?UTF-8?q?in64=20compliant=20implementation=20of=20strndup=20=20=20*=20js?= =?UTF-8?q?on=5Futil.c=20-=20C.=20Watford=20(christopher=20dot=20watford?= =?UTF-8?q?=20at=20gmail=20dot=20com)=20=20=20=20=20Added=20cast=20and=20m?= =?UTF-8?q?ask=20to=20suffice=20size=5Ft=20v.=20unsigned=20int=20conversio?= =?UTF-8?q?n=20=20=20=20=20correctness=20=20=20*=20json=5Ftokener.c=20-=20?= =?UTF-8?q?sign=20reversal=20issue=20on=20error=20info=20for=20nested=20ob?= =?UTF-8?q?ject=20parse=20=20=20=20=20spotted=20by=20Johan=20Bj=EF=BF=BDrk?= =?UTF-8?q?lund=20(johbjo09=20at=20kth.se)=20=20=20*=20json=5Fobject.c=20-?= =?UTF-8?q?=20escape=20"=20in=20json=5Fescape=5Fstr=20=20=20*=20Change=20t?= =?UTF-8?q?o=20automake=20and=20libtool=20to=20build=20shared=20and=20stat?= =?UTF-8?q?ic=20library=20=20=20=20=20Michael=20Clark=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@4 327403b1-1117-474d-bef2-5cb71233fd97 --- json_tokener.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'json_tokener.h') diff --git a/json_tokener.h b/json_tokener.h index c39577d..9bdf238 100644 --- a/json_tokener.h +++ b/json_tokener.h @@ -1,5 +1,5 @@ /* - * $Id: json_tokener.h,v 1.5 2004/07/22 01:20:05 mclark Exp $ + * $Id: json_tokener.h,v 1.6 2005/06/14 22:41:51 mclark Exp $ * * Copyright Metaparadigm Pte. Ltd. 2004. * Michael Clark @@ -19,6 +19,7 @@ #ifndef _json_tokener_h_ #define _json_tokener_h_ +#include "config.h" #include "json_object.h" enum json_tokener_error { @@ -65,6 +66,17 @@ struct json_tokener struct printbuf *pb; }; +#if !HAVE_STRNCASECMP && defined(_MSC_VER) + /* MSC has the version as _strnicmp */ +# define strncasecmp _strnicmp +#elif !HAVE_STRNCASECMP +# error You do not have strncasecmp on your system. +#endif /* HAVE_STRNCASECMP */ + +#if !HAVE_STRNDUP + char* strndup(const char* str, size_t n); +#endif /* !HAVE_STRNDUP */ + extern struct json_object* json_tokener_parse(char *s); #endif -- cgit v1.2.1