Menu

Commit [r149]  Maximize  Restore  History

- Moved definition of Json::Int and Json::UInt to config.h which compiler detection logic to define them to 64 bits integer if JSON_NO_INT64 is not defined.

- Added Json::ArrayIndex as an unsigned int to forwards.h
- Modified Json::Value to consistently use Json::ArrayIndex.
- Added int/unsigned int constructor overload to Json::Value to avoid ambiguous constructor call.
- Modified jsontestrunner/main.cpp to use Json::valueToString for Value::asInt() conversion to string.
- Modified Json::Reader to only overflow to double when the number is too large (previous code relied on the fact that an int fitted in a double without precision loss).
- Generalized uintToString() helpers and buffer size to automatically adapt to the precision of Json::UInt.
- Added specific conversion logic for UInt to double conversion on Microsoft Visual Studio 6 which only support __int64 to double conversion (unsigned __int64 conversion is not supported)
- Added test for 64 bits parsing/writing. Notes: those will fail when compiled with JSON_NO_INT64 (more dev required to adapt).

blep 2010-04-19

changed /trunk/jsoncpp/NEWS.txt
changed /trunk/jsoncpp/include/json/config.h
changed /trunk/jsoncpp/include/json/forwards.h
changed /trunk/jsoncpp/include/json/value.h
changed /trunk/jsoncpp/src/jsontestrunner/main.cpp
changed /trunk/jsoncpp/src/lib_json/json_reader.cpp
changed /trunk/jsoncpp/src/lib_json/json_tool.h
changed /trunk/jsoncpp/src/lib_json/json_value.cpp
changed /trunk/jsoncpp/src/lib_json/json_writer.cpp
added /trunk/jsoncpp/test/data/test_integer_06_64bits.expected
added /trunk/jsoncpp/test/data/test_integer_06_64bits.json
added /trunk/jsoncpp/test/data/test_integer_07_64bits.expected
added /trunk/jsoncpp/test/data/test_integer_07_64bits.json
added /trunk/jsoncpp/test/data/test_integer_08_64bits.expected
added /trunk/jsoncpp/test/data/test_integer_08_64bits.json
/trunk/jsoncpp/NEWS.txt Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/include/json/config.h Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/include/json/forwards.h Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/include/json/value.h Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/src/jsontestrunner/main.cpp Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/src/lib_json/json_reader.cpp Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/src/lib_json/json_tool.h Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/src/lib_json/json_value.cpp Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/src/lib_json/json_writer.cpp Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/test/data/test_integer_06_64bits.expected Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/test/data/test_integer_06_64bits.json Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/test/data/test_integer_07_64bits.expected Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/test/data/test_integer_07_64bits.json Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/test/data/test_integer_08_64bits.expected Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/test/data/test_integer_08_64bits.json Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB