diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ucode/compiler.h | 1 | ||||
-rw-r--r-- | include/ucode/util.h | 26 | ||||
-rw-r--r-- | include/ucode/vallist.h | 1 |
3 files changed, 0 insertions, 28 deletions
diff --git a/include/ucode/compiler.h b/include/ucode/compiler.h index a85b48b..15b77b3 100644 --- a/include/ucode/compiler.h +++ b/include/ucode/compiler.h @@ -20,7 +20,6 @@ #include <stddef.h> #include <stdint.h> #include <stdbool.h> -#include <json-c/json.h> #include "source.h" #include "lexer.h" diff --git a/include/ucode/util.h b/include/ucode/util.h index 35c1e56..3203499 100644 --- a/include/ucode/util.h +++ b/include/ucode/util.h @@ -159,30 +159,4 @@ static inline struct printbuf *xprintbuf_new(void) { return pb; } - -/* json-c compat */ - -#ifndef HAVE_PARSE_END -static inline size_t json_tokener_get_parse_end(struct json_tokener *tok) { - return (size_t)tok->char_offset; -} -#endif - -#ifndef HAVE_ARRAY_EXT -static inline struct json_object *json_object_new_array_ext(int size) { - (void) size; - return json_object_new_array(); -} -#endif - -#ifndef HAVE_JSON_UINT64 -static inline struct json_object *json_object_new_uint64(uint64_t i) { - return json_object_new_int64((int64_t)i); -} - -static inline uint64_t json_object_get_uint64(const struct json_object *obj) { - return (uint64_t)json_object_get_int64(obj); -} -#endif - #endif /* UCODE_UTIL_H */ diff --git a/include/ucode/vallist.h b/include/ucode/vallist.h index 53750bd..fb46677 100644 --- a/include/ucode/vallist.h +++ b/include/ucode/vallist.h @@ -21,7 +21,6 @@ #include <stddef.h> #include <stdbool.h> #include <stdio.h> -#include <json-c/json.h> #include "types.h" |