Change the underlying type of JSON integer from long to json_int_t

json_int_t is typedef'd to long long if it's supported, or long
otherwise. There's also some supporting things, like the
JSON_INTEGER_FORMAT macro that expands to the printf() conversion
specifier that corresponds to json_int_t's actual type.

This is a backwards incompatible change.
This commit is contained in:
Petri Lehtinen
2010-08-13 22:06:01 +03:00
parent 7ce70533c9
commit ffbab6fedd
17 changed files with 120 additions and 45 deletions

View File

@@ -1,2 +1,2 @@
1
too big negative integer near '-123123123123123'
too big negative integer

View File

@@ -1 +1 @@
[-123123123123123]
[-123123123123123123123123123123]

View File

@@ -1,2 +1,2 @@
1
too big integer near '123123123123123'
too big integer

View File

@@ -1 +1 @@
[123123123123123]
[123123123123123123123123123123]

View File

@@ -1,2 +1,2 @@
1
too big negative integer near '-123123123123123'
too big negative integer

View File

@@ -1 +1 @@
[-123123123123123]
[-123123123123123123123123123123]

View File

@@ -1,2 +1,2 @@
1
too big integer near '123123123123123'
too big integer

View File

@@ -1 +1 @@
[123123123123123]
[123123123123123123123123123123]