From e6d221f3ae8a7000086c9dc63354fe8ab56a8eeb Mon Sep 17 00:00:00 2001 From: Erik Olsson Date: Sat, 9 Jul 2022 22:57:39 +0200 Subject: [PATCH] Import jansson headers using double quotes consistently --- doc/github_commits.c | 2 +- examples/simple_parse.c | 2 +- src/hashtable.c | 4 ++-- src/hashtable_seed.c | 2 +- src/lookup3.h | 2 +- src/strconv.c | 2 +- src/utf.h | 2 +- src/value.c | 2 +- test/bin/json_process.c | 4 ++-- test/suites/api/test_array.c | 2 +- test/suites/api/test_chaos.c | 2 +- test/suites/api/test_copy.c | 2 +- test/suites/api/test_dump.c | 2 +- test/suites/api/test_dump_callback.c | 2 +- test/suites/api/test_equal.c | 2 +- test/suites/api/test_fixed_size.c | 2 +- test/suites/api/test_load.c | 2 +- test/suites/api/test_load_callback.c | 2 +- test/suites/api/test_loadb.c | 2 +- test/suites/api/test_memory_funcs.c | 2 +- test/suites/api/test_number.c | 2 +- test/suites/api/test_object.c | 2 +- test/suites/api/test_pack.c | 6 +++--- test/suites/api/test_simple.c | 2 +- test/suites/api/test_sprintf.c | 2 +- test/suites/api/test_unpack.c | 2 +- test/suites/api/test_version.c | 2 +- test/suites/api/util.h | 4 ++-- 28 files changed, 33 insertions(+), 33 deletions(-) diff --git a/doc/github_commits.c b/doc/github_commits.c index 81c80639..979e2fbe 100644 --- a/doc/github_commits.c +++ b/doc/github_commits.c @@ -9,7 +9,7 @@ #include #include -#include +#include "jansson.h" #define BUFFER_SIZE (256 * 1024) /* 256 KB */ diff --git a/examples/simple_parse.c b/examples/simple_parse.c index a96a0f83..b8ebc6cc 100644 --- a/examples/simple_parse.c +++ b/examples/simple_parse.c @@ -22,7 +22,7 @@ * it under the terms of the MIT license. See LICENSE for details. */ -#include +#include "jansson.h" #include #include diff --git a/src/hashtable.c b/src/hashtable.c index 5e97f851..a265036b 100644 --- a/src/hashtable.c +++ b/src/hashtable.c @@ -6,7 +6,7 @@ */ #ifdef HAVE_CONFIG_H -#include +#include "jansson_private_config.h" #endif #include @@ -18,7 +18,7 @@ #include "hashtable.h" #include "jansson_private.h" /* for container_of() */ -#include /* for JSON_INLINE */ +#include "jansson_config.h" /* for JSON_INLINE */ #ifndef INITIAL_HASHTABLE_ORDER #define INITIAL_HASHTABLE_ORDER 3 diff --git a/src/hashtable_seed.c b/src/hashtable_seed.c index 7cd6e67d..e558b3c4 100644 --- a/src/hashtable_seed.c +++ b/src/hashtable_seed.c @@ -3,7 +3,7 @@ */ #ifdef HAVE_CONFIG_H -#include +#include "jansson_private_config.h" #endif #include diff --git a/src/lookup3.h b/src/lookup3.h index 9b39aa1c..517f51ef 100644 --- a/src/lookup3.h +++ b/src/lookup3.h @@ -38,7 +38,7 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy. #include #ifdef HAVE_CONFIG_H -#include +#include "jansson_private_config.h" #endif #ifdef HAVE_STDINT_H diff --git a/src/strconv.c b/src/strconv.c index 7b104049..3a27420b 100644 --- a/src/strconv.c +++ b/src/strconv.c @@ -10,7 +10,7 @@ /* need jansson_private_config.h to get the correct snprintf */ #ifdef HAVE_CONFIG_H -#include +#include "jansson_private_config.h" #endif /* diff --git a/src/utf.h b/src/utf.h index 5db99df6..2ccdd3e2 100644 --- a/src/utf.h +++ b/src/utf.h @@ -9,7 +9,7 @@ #define UTF_H #ifdef HAVE_CONFIG_H -#include +#include "jansson_private_config.h" #endif #include diff --git a/src/value.c b/src/value.c index 07b51136..41f8d5bb 100644 --- a/src/value.c +++ b/src/value.c @@ -10,7 +10,7 @@ #endif #ifdef HAVE_CONFIG_H -#include +#include "jansson_private_config.h" #endif #include diff --git a/test/bin/json_process.c b/test/bin/json_process.c index 965fa6b2..63329ba5 100644 --- a/test/bin/json_process.c +++ b/test/bin/json_process.c @@ -6,11 +6,11 @@ */ #ifdef HAVE_CONFIG_H -#include +#include "jansson_private_config.h" #endif +#include "jansson.h" #include -#include #include #include #include diff --git a/test/suites/api/test_array.c b/test/suites/api/test_array.c index e5d9d1a1..13c0cbed 100644 --- a/test/suites/api/test_array.c +++ b/test/suites/api/test_array.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" static void test_misc(void) { json_t *array, *five, *seven, *value; diff --git a/test/suites/api/test_chaos.c b/test/suites/api/test_chaos.c index 8687243e..6822de78 100644 --- a/test/suites/api/test_chaos.c +++ b/test/suites/api/test_chaos.c @@ -3,7 +3,7 @@ #endif #include "util.h" -#include +#include "jansson.h" #include #include diff --git a/test/suites/api/test_copy.c b/test/suites/api/test_copy.c index 656d98dd..60acd97a 100644 --- a/test/suites/api/test_copy.c +++ b/test/suites/api/test_copy.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include static void test_copy_simple(void) { diff --git a/test/suites/api/test_dump.c b/test/suites/api/test_dump.c index e8cb5196..2ded3465 100644 --- a/test/suites/api/test_dump.c +++ b/test/suites/api/test_dump.c @@ -7,7 +7,7 @@ #include "jansson_private_config.h" -#include +#include "jansson.h" #include #ifdef HAVE_UNISTD_H #include diff --git a/test/suites/api/test_dump_callback.c b/test/suites/api/test_dump_callback.c index 80ea0084..daa2956f 100644 --- a/test/suites/api/test_dump_callback.c +++ b/test/suites/api/test_dump_callback.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include #include diff --git a/test/suites/api/test_equal.c b/test/suites/api/test_equal.c index d068b7bf..3b5255d3 100644 --- a/test/suites/api/test_equal.c +++ b/test/suites/api/test_equal.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" static void test_equal_simple() { json_t *value1, *value2; diff --git a/test/suites/api/test_fixed_size.c b/test/suites/api/test_fixed_size.c index 4ae9e079..4668db20 100644 --- a/test/suites/api/test_fixed_size.c +++ b/test/suites/api/test_fixed_size.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include static void test_keylen_iterator(json_t *object) { diff --git a/test/suites/api/test_load.c b/test/suites/api/test_load.c index 1c64b0c8..c29f4f37 100644 --- a/test/suites/api/test_load.c +++ b/test/suites/api/test_load.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include static void file_not_found() { diff --git a/test/suites/api/test_load_callback.c b/test/suites/api/test_load_callback.c index b292fcf4..2eec5a7a 100644 --- a/test/suites/api/test_load_callback.c +++ b/test/suites/api/test_load_callback.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include #include diff --git a/test/suites/api/test_loadb.c b/test/suites/api/test_loadb.c index 2cd88fef..5732738f 100644 --- a/test/suites/api/test_loadb.c +++ b/test/suites/api/test_loadb.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include static void run_tests() { diff --git a/test/suites/api/test_memory_funcs.c b/test/suites/api/test_memory_funcs.c index 4fd61665..6fbbe4b2 100644 --- a/test/suites/api/test_memory_funcs.c +++ b/test/suites/api/test_memory_funcs.c @@ -1,4 +1,4 @@ -#include +#include "jansson.h" #include #include "util.h" diff --git a/test/suites/api/test_number.c b/test/suites/api/test_number.c index 2a22a67d..3c41a6cf 100644 --- a/test/suites/api/test_number.c +++ b/test/suites/api/test_number.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include #ifdef INFINITY diff --git a/test/suites/api/test_object.c b/test/suites/api/test_object.c index 331edf22..89f53bf8 100644 --- a/test/suites/api/test_object.c +++ b/test/suites/api/test_object.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include static void test_clear() { diff --git a/test/suites/api/test_pack.c b/test/suites/api/test_pack.c index 865f60b6..bfd3e60f 100644 --- a/test/suites/api/test_pack.c +++ b/test/suites/api/test_pack.c @@ -7,13 +7,13 @@ */ #ifdef HAVE_CONFIG_H -#include +#include "jansson_private_config.h" #endif -#include +#include "jansson_config.h" #include "util.h" -#include +#include "jansson.h" #include #include #include diff --git a/test/suites/api/test_simple.c b/test/suites/api/test_simple.c index 7a3f6b7b..d801ebab 100644 --- a/test/suites/api/test_simple.c +++ b/test/suites/api/test_simple.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include static void test_bad_args(void) { diff --git a/test/suites/api/test_sprintf.c b/test/suites/api/test_sprintf.c index 60a0b601..a3999066 100644 --- a/test/suites/api/test_sprintf.c +++ b/test/suites/api/test_sprintf.c @@ -1,5 +1,5 @@ #include "util.h" -#include +#include "jansson.h" #include static void test_sprintf() { diff --git a/test/suites/api/test_unpack.c b/test/suites/api/test_unpack.c index 139ec6f7..414baab9 100644 --- a/test/suites/api/test_unpack.c +++ b/test/suites/api/test_unpack.c @@ -7,7 +7,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include #include diff --git a/test/suites/api/test_version.c b/test/suites/api/test_version.c index 05e0e961..dcf690f4 100644 --- a/test/suites/api/test_version.c +++ b/test/suites/api/test_version.c @@ -6,7 +6,7 @@ */ #include "util.h" -#include +#include "jansson.h" #include static void test_version_str(void) { diff --git a/test/suites/api/util.h b/test/suites/api/util.h index d964c493..eec610c1 100644 --- a/test/suites/api/util.h +++ b/test/suites/api/util.h @@ -9,7 +9,7 @@ #define UTIL_H #ifdef HAVE_CONFIG_H -#include +#include "jansson_private_config.h" #endif #include @@ -18,7 +18,7 @@ #include #endif -#include +#include "jansson.h" #define failhdr fprintf(stderr, "%s:%d: ", __FILE__, __LINE__)