Code

curl_json plugin: Use the "number" callback of libyajl.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 13 Jul 2010 11:58:34 +0000 (13:58 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 13 Jul 2010 11:58:34 +0000 (13:58 +0200)
commitb16fd65efea0f4073c967f9c93237585fcc7b88c
tree10e3a082ce34861956604a8a68737d811dee5fce
parent731838e867501089fcac57518155e1a69d7ef8ea
curl_json plugin: Use the "number" callback of libyajl.

The "integer" callback only works with "long"s, which are 32bit on
x86 and other 32bit architectures. The "number" callback gets the raw
string for us to parse ourselves – honoring the data source type in the
process.

The "integer" and "double" callbacks have been removed, since they are not
used if the "number" callback is present.
src/curl_json.c