]> git.evergreen-ils.org Git - OpenSRF.git/commit
Patches from Scott McKellar covering:
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 19 Oct 2007 23:43:59 +0000 (23:43 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 19 Oct 2007 23:43:59 +0000 (23:43 +0000)
commited299f4e3bbea61eb44475cc4862aab5e7f5112c
tree341eb31813684aceb49eda9eb0e762fac9daae10
parent62026dbe0d8aabaaa4bd58ba8c640b9d82adb1c0
Patches from Scott McKellar covering:

1. Eliminating a const-removing cast from jsonObjectToJSON().  This
cast is no longer necessary now that a recent patch has changed the
signature of jsonObjectEncodeClass().

2. Moving the JSON_INIT_CLEAR macro out of the header file and into
the implementation file.  No other file invokes this macro -- nor
could it, since the macro refers to two static functions within
osrf_json_object.c.  Strictly speaking another file could provide
other functions with the same signatures, but I doubt that any such
usage was ever intended.

3. Adds some sanity checking to prevent undefined behavior when
a floating point payload is not representable as an int.

4. Streamlines the serialization of hashes and arrays by
eliminating a layer of allocation and deallocation.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1111 9efc2488-bf62-4759-914b-345cdb29e865
include/opensrf/osrf_json_utils.h
src/libopensrf/osrf_json_object.c