62 Commits (c63d4a4194fe0a2b194457b23ecb0d359d5b1b8a)

Author SHA1 Message Date
  Rosen Penev 66f7869219 rename WIN32 to _WIN32 2 years ago
  Eric Haszlakiewicz c50bf9df9c Apply same EINVAL handling to json_parse_uint64() as was done for json_parse_int64(). Document that overflow/underflow for these functions is not an error, but sets errno=ERANGE. 2 years ago
  Eric Haszlakiewicz 57bef5edc4 Issue #792 - set errno=EINVAL if parsing the string in json_parse_int64 fails, to match the docs for json_object_get_int. 2 years ago
  Khem Raj 6eca65617a Fix build with clang-15+ 3 years ago
  Eric Haszlakiewicz bdd5e03d6e Apply some of the fixes from PR #740, although by using size_t instead of castings. 3 years ago
  Tobias Stoeckmann 5accae04bb json_object_from_fd_ex: fail if file is too large 3 years ago
  Tobias Stoeckmann 6e533471a8 Fix error messages 3 years ago
  Even Rouault f2c0df404b
json_type_to_name(): use correct printf() formatter 3 years ago
  Eric Haszlakiewicz 8c7849e6e3 Eliminate use of ctype.h and replace isdigit() and tolower() with non-locale-sensitive approaches. 5 years ago
  Eric Haszlakiewicz 6eac6986c9 Fix incremental parsing of invalid numbers with exponents, such as "0e+-" and "12.3E12E12", while still allowing "0e+" in non-strict mode. 5 years ago
  Pierce Lopez 003b58782b fix json_parse_uint64() usage of errno 5 years ago
  Eric Haszlakiewicz ecb9354bb1 Re-do clang-format. 5 years ago
  Eric Haszlakiewicz 23ddcbd4da Make json_abort() internal to json_object.c 5 years ago
  Eric Haszlakiewicz 545464322b Issue #568: fix the strtoll and strtoull handing so config.h ends up creating defines for those only when needed, which should exclude mingw environments. 5 years ago
  dota17 8b162c4b89 clang-format the files 5 years ago
  dota17 c117d8a8a8 add the disabling formatting coments and adjust the partial code manuly 5 years ago
  Jehan b15e7ba470 Fixes various Wreturn-type and Wimplicit-fallthrough errors on Mingw-w64 5 years ago
  dota17 c816de212b modify the json_object, replace c_int64/c_uint64 with struct{union{int64, uint64},...} 5 years ago
  dota17 3c3b5920f7 add uint64 data to json-c 5 years ago
  Eric Haszlakiewicz af8dd4a307 Define vars earlier to fix old Windows builds. 5 years ago
  Eric Haszlakiewicz baed9983b3 Add a json_object_from_fd_ex() function, to allow the max nesting depth to be specified. 5 years ago
  Eric Haszlakiewicz 437716c5b4 Rename _set_last_err() to _json_c_set_last_err(). 7 years ago
  Eric Haszlakiewicz 05c85ddc21 On VS 2013 and newer, actually use strtoll instead of redefining it to _strtoi64. 7 years ago
  Alexandru Ardelean 03f3b95248 json_util: define `strtoll` as _strtoi64 for MSVC 8 years ago
  Jason King 5355d387e9 Use strtoll to parse ints 8 years ago
  Eric Haszlakiewicz b2afca4560 Issue #173: since some sscanf implementations return 0 for non-zero inputs, directly check for "0" in the input. 8 years ago
  Eric Haszlakiewicz 81f6edbfd5 PR#331: for Visual Studio, use a snprintf/vsnprintf wrapper that ensures the string is terminated. 8 years ago
  topilski 65884f4d9e Fix parsing doubles for mingw 8 years ago
  Alexandru Ardelean fb72160caf build: make `strerror()` override-able 8 years ago
  Eric Haszlakiewicz e8e574fbe4 Issue #161: add a json_object_to_fd() function. 8 years ago
  Eric Haszlakiewicz 8581806558 Make _set_last_err() non-static so it can be used outside of json_util.c 8 years ago
  Eric Haszlakiewicz 29ef73f21d Issue #189: Eliminate use of MC_ERROR from json_util.c, and add a json_util_get_last_err() function to retrieve the error for those callers that care about it. 9 years ago
  Michael Heimpold a7534dbb7e Introduce json_object_from_fd 11 years ago
  Eric Haszlakiewicz d4e81f9ec8 Move the json_min() and json_max() macros to json_util.h and mark everything else in bits.h deprecated. 11 years ago
  Pascal Bach 20e4708c8a Update json_util 12 years ago
  Eric Haszlakiewicz b3bce4d594 Eliminate use of MC_ABORT in json-c code, and mark MC_ABORT/mc_abort deprecated. 12 years ago
  Anatol Belski 990fa8e3ee Fix C89 compat needed by MSVC 12 years ago
  Eric Haszlakiewicz 5b36a432c8 Merge branch 'remicollet-issue-float' 12 years ago
  Eric Haszlakiewicz bfb329223a Add a runtime check to see if parse_int64 needs to workaround sscanf bugs. If that workaround is not needed parsing is nearly twice as fast. 12 years ago
  Eric Haszlakiewicz ca8b27d183 Enable -Werror and fix a number of minor warnings that existed. 12 years ago
  Greg Hazel 77d0493b70 rename _errno 12 years ago
  Remi Collet a01b659ace move locale change to be global for perf 12 years ago
  Remi Collet 16a4a32e29 float parsing must be locale independent 13 years ago
  Eric Haszlakiewicz 77c6239465 Initialize errno before calling sscanf in json_parse_int64() so parsing valid numbers after parsing an out of range number works. 13 years ago
  Eric Haszlakiewicz eead1a7dc4 Remove unnecessary comment from json_util.c 13 years ago
  Mateusz Loskot a6f39a3c0c Replaced #if HAVE_X with #ifdef HAVE_X as the former test is troublemaker with #define HAVE_X where #define HAVE_X 1|0 is meant. 13 years ago
  Eric Haszlakiewicz 3fcffe1bb0 Add a json_object_to_json_string_ext() function to allow the formatting of output to be selected. 13 years ago
  John Arbash Meinel 6a231e4b41 Some updates to make the code compatible with VC 9 (2008) 13 years ago
  Eric Haszlakiewicz 886c4fbebf Add a json_type_to_name() function which returns a string that describes the type. Useful for logging. 14 years ago
  ehaszla 252669cee6 Simplify things by storing integer values only as int64_t's internally, and 15 years ago