a5c2e11460
Cause the cmake include dirs to also have ${CMAKE_INSTALL_INCLUDEDIR}/json-c, so downstream packages that use cmake to link against json-c can choose whether to include headers as just e.g. #include <json_object.h>, if they care to do so. Update the README to better explain this, and make a few other tweaks.
Eric Haszlakiewicz2021-12-22 02:52:37 +00:00
2d2382d709
Add linkhash accessor functions (lh_table_head(), lh_entry_next(), etc...) to pave the way for making the lh_table and lh_entry structure opaque in the future. Update the docs to mark all members of those structures deprecated, and suggest what to use instead.
Eric Haszlakiewicz2021-11-30 03:27:55 +00:00
320548caf6
Drop the REFCOUNT_DEBUG code, it hasn't been used in ages.
Eric Haszlakiewicz2021-11-30 03:08:02 +00:00
1763edaba3
Skip most "Release" builds. s/b_config/CONFIGURATION/ to fix artifact creation.
Eric Haszlakiewicz2021-11-29 18:18:48 +00:00
a5fed59756
There doesn't seem to be a way to extend the appveyor build matrix for just one image, so instead list a whole bunch of excluded builds.
Eric Haszlakiewicz2021-11-27 02:55:29 +00:00
0910e18bbd
Use the newer appveyor images to build for VS2017 and VS2019. Trim the number of builds we do.
Eric Haszlakiewicz2021-11-27 02:29:26 +00:00
f1fb9abf14
Note the need to also set CTEST_OUTPUT_ON_FAILURE to get test output
Eric Haszlakiewicz2021-11-26 22:49:06 +00:00
42aa6f7257
Merge pull request #732 from DiracResearch/fix/static_include_dirs
Eric Hawicz2021-11-11 23:52:43 -05:00
286b4fdd27
Fix uninitialized value error for clang-8 msan
Robert Bielik2021-11-11 10:23:05 +01:00
e91e4cc9fb
Setted cmake "uninstall" target to exist in unix like operating systems only
Pawday2021-07-26 18:52:29 +03:00
f61f1a7a91
Add workaround for Visual Studio not knowing about "inline".
Eric Haszlakiewicz2021-07-25 20:31:59 +00:00
db6a6cc2b2
Switch the Travis build to use osx_image: xcode12.5, in an attempt to avoid timeouts with Homebrew.
Eric Haszlakiewicz2021-07-25 20:03:55 +00:00
6a0df2609e
Merge some old work to include (some of) PR #464 into the current master branch.
Eric Haszlakiewicz2021-07-25 19:07:06 +00:00
8c727e5ce1
Only define an "uninstall" target if it's not already defined (e.g. by projects that include json-c)
Eric Haszlakiewicz2021-07-25 15:11:11 +00:00
be9671e48a
Merge pull request #714 from Hex052/clang-format_AfterCaseLabel
Eric Hawicz2021-07-05 18:18:06 -04:00
9dde931a1c
Add AfterCaseLabel to .clang-format
Hex0522021-07-04 18:28:21 -08:00
041cef434a
Add a DISABLE_EXTRA_LIBS option to skip using libbsd, per @neheb's request on issue #692/commit 0f61f692.
Eric Haszlakiewicz2021-02-15 20:19:56 +00:00
f787810890
If arc4random is used, don't bother compiling in the other fallback methods since they'll never be used. Fixes PR#695 about unreachable code too.
Eric Haszlakiewicz2021-02-13 03:23:58 +00:00
2b439ea598
Fix json_object_get_boolean() doc for the object and array cases (always returns 0), and add those cases to the test_cast test. See also issue #658.
Eric Haszlakiewicz2020-08-17 14:55:54 +00:00
4e9e44e525
Fix read past end of buffer
Marc2020-08-07 10:49:45 +01:00
8c7849e6e3
Eliminate use of ctype.h and replace isdigit() and tolower() with non-locale-sensitive approaches.
Eric Haszlakiewicz2020-08-02 04:06:44 +00:00
f3d8006d34
Neither vertical tab nor formfeed are considered whitespace per the JSON spec, remove them from is_ws_char().
Eric Haszlakiewicz2020-08-02 03:59:56 +00:00
8b43ff0c22
Merge the is_ws_char() and is_hex_char() changes to json_tokener from branch 'ramiropolla/for_upstream' (PR #464)
Eric Haszlakiewicz2020-08-02 02:54:36 +00:00
bfec9c8685
Take a hint from PR #464 and use json_object_new_string_len() to avoid a needless extra strlen() call. Also, create a _json_object_get_string_len() for internal use when we know for sure the object we're dealing with is a json_type_string.
Eric Haszlakiewicz2020-08-02 02:23:01 +00:00
56a89f902f
Merge pull request #653 from lamby/966657-json-c-please-make-the-build-reproducible
Eric Hawicz2020-08-01 22:06:38 -04:00
46eea84554
Make the documentation build reproducibly
Chris Lamb2020-08-01 11:26:53 +01:00