]> xenbits.xensource.com Git - xen.git/commit
libxl: libxl_json: Handle number above LONG_MAX.
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 4 Nov 2011 12:38:25 +0000 (12:38 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Fri, 4 Nov 2011 12:38:25 +0000 (12:38 +0000)
commite89264c3df2f6d0203de7480e7fedef3a9e13b57
tree882dc178157f35e92b1c1f74730b06cd23d17092
parentca8450a226a986c24da53edcdfe9410cbe8d9018
libxl: libxl_json: Handle number above LONG_MAX.

The integers are now "long long" in the json_object.

If a number (decimal or integer) is too big (or too low), it is stored as it in
a string. So for that, we introduce a new type JSON_NUMBER.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxl/libxl_internal.h
tools/libxl/libxl_json.c