a86ae1df9a
Another attempt at debugging the travis osx build, this time just ignore errors.
Eric Haszlakiewicz2020-04-08 02:28:02 +00:00
829e0829dd
Wait a while before exiting travis to allow output to flush.
Eric Haszlakiewicz2020-04-08 02:17:14 +00:00
cf8421c36d
Apparently cmake is already installed on travis osx builds. Try another approach to figure out what was failing.
Eric Haszlakiewicz2020-04-08 02:02:25 +00:00
fb0b653612
Install cmake on osx travis builds. s/make check/make test/
Eric Haszlakiewicz2020-04-08 01:45:49 +00:00
a3b82cbc77
Perform the travis build in a subdir, so the distcheck target works.
Eric Haszlakiewicz2020-04-08 01:34:22 +00:00
19bbf2c069
Add includes and split off json_types.h to help ensure that headers can be included in any order.
Eric Haszlakiewicz2020-04-06 13:55:27 +00:00
5e19c26cae
Don't let clang-format rearrange Windows includes, since they need to be in a particular order.
Eric Haszlakiewicz2020-04-06 02:47:34 +00:00
9acc4e9d71
Format random_seed.c with clang-format, with key asm sections excluded.
Eric Haszlakiewicz2020-04-06 01:52:28 +00:00
9a494081cb
Update the style guide to mention that we're using clang-format now.
Eric Haszlakiewicz2020-04-06 01:49:14 +00:00
f69fbd897b
Added documentation for camke-configure
dota172020-02-25 15:01:05 +08:00
3c3b5920f7
add uint64 data to json-c
dota172020-02-20 15:17:05 +08:00
c684b1d40b
add coveralls auto tool to json-c
dota172020-02-17 18:15:15 +08:00
518f337ce8
Issue #539: use a internal-only serializer function in json_object_new_double_s() to avoid potential conflicts with user code that uses the json_object_userdata_to_json_string serializer. Also, document the serializer-resetting behavior of json_object_set_double().
Eric Haszlakiewicz2020-02-14 03:48:02 +00:00
ae13ca524a
Issue #539: reset the serializer when json_object_set_double() is called and the current serializer is the one that json_object_new_double_s() used.
Eric Haszlakiewicz2020-02-13 03:11:10 +00:00
78d8e5c3d5
Properly append to CMAKE_C_FLAGS string
Jaap Keuter2019-12-12 21:28:03 +01:00
6c55f65d07
Set cmake policy CMP0075, to have check_include_file use the value of CMAKE_REQUIRED_LIBRARIES (currently, adds -lm). See issue #510.
Eric Haszlakiewicz2019-12-06 00:15:14 -05:00
11a638048d
Add a few missing features to the cmake setup that are present in configure.ac: Include all compiler warnings, and provide DISABLE_WERROR to make them not be errors. Define _REENTRANT, if setting it works. Set -Bsymbolic-functions, and provide DISABLE_BSYMBOLIC to turn that off. Implement the check for HAS_GNU_WARNING_LONG
Eric Haszlakiewicz2019-11-26 23:01:27 -05:00
a92e6d2c28
Set the soversion in the cmake built library, and arrange for the file name to be generated appropriately too.
Eric Haszlakiewicz2019-11-25 23:26:48 -05:00
41f434e89f
Fix test_util_file for VS2013 too, but skip all the tests for anything older than that because the limitations are too inconvenient.
Eric Haszlakiewicz2019-11-23 23:55:04 -05:00
b99be9cf4e
Fix up the test_util_file test for builds on Windows VS2015.
Eric Haszlakiewicz2019-11-23 23:14:24 -05:00
7f30afc6e5
Fix some Windows compile issues, add JSON_EXPORT's, fix bogus character escapes, define __func__ and omit unistd.h if needed.
Eric Haszlakiewicz2019-11-23 20:31:14 -05:00
f19abcf981
Get the cmake build a bit closer to the autoconf one: include json_visit.h, and fix the version stamped in json-c.pc.
Eric Haszlakiewicz2019-11-23 15:34:23 -05:00
25aedddcdf
Fix memory leaks in test_double_serializer, and make sure all tests return 0 at the end of main().
Eric Haszlakiewicz2019-11-23 12:05:28 -05:00
3d3b014971
Add a quick way (JSONC_TEST_TRACE=1) to turn on shell tracing in tests.
Eric Haszlakiewicz2019-11-23 12:03:27 -05:00
b1ad748842
Extend test_double_serializer to check NaN and Infinity handling.
Eric Haszlakiewicz2019-11-22 22:56:33 -05:00
eae040a84a
Issue #488: use JSON_EXPORT on functions so they are properly exported on Windows.
Eric Haszlakiewicz2019-09-08 22:42:36 -04:00
374ffe87c6
Issue #463: fix newlocale() call to use LC_NUMERIC_MASK instead of LC_NUMERIC, and remove incorrect comment. The second call to newlocale() with LC_TIME accidentally made things work because LC_TIME == LC_NUMERIC_MASK on some platforms.
Eric Haszlakiewicz2019-09-08 22:27:30 -04:00
05b41b159e
Add a json_tokener_get_parse_end() function to replace direct access of tok->char_offset.
Eric Haszlakiewicz2019-09-08 21:35:37 -04:00
d0b87ee87b
Add an explicit cast to double to squash a -Wimplicit-int-float-conversion warning. Though we will no longer be comparing exactly against INT64_MAX, this is ok because any value of that magnitude stored in a double will *also* have been rounded up, so the comparison will work appropriately.
Eric Haszlakiewicz2019-08-12 00:30:45 +00:00