This done for the same reasons as we do not ship config.h.pull/585/head
@@ -294,7 +294,7 @@ if (NOT ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")) | |||||
endif() | endif() | ||||
if ($ENV{VALGRIND}) | if ($ENV{VALGRIND}) | ||||
# Build so that valgrind doesn't complain about linkhash.c | |||||
# Build so that valgrind doesn't complain about json_c_linkhash.c | |||||
add_definitions(-DVALGRIND=1) | add_definitions(-DVALGRIND=1) | ||||
endif() | endif() | ||||
@@ -313,7 +313,7 @@ set(JSON_C_PUBLIC_HEADERS | |||||
${PROJECT_SOURCE_DIR}/json_types.h | ${PROJECT_SOURCE_DIR}/json_types.h | ||||
${PROJECT_SOURCE_DIR}/json_util.h | ${PROJECT_SOURCE_DIR}/json_util.h | ||||
${PROJECT_SOURCE_DIR}/json_visit.h | ${PROJECT_SOURCE_DIR}/json_visit.h | ||||
${PROJECT_SOURCE_DIR}/linkhash.h | |||||
${PROJECT_SOURCE_DIR}/json_c_linkhash.h | |||||
${PROJECT_SOURCE_DIR}/json_c_printbuf.h | ${PROJECT_SOURCE_DIR}/json_c_printbuf.h | ||||
) | ) | ||||
@@ -340,7 +340,7 @@ set(JSON_C_SOURCES | |||||
${PROJECT_SOURCE_DIR}/json_tokener.c | ${PROJECT_SOURCE_DIR}/json_tokener.c | ||||
${PROJECT_SOURCE_DIR}/json_util.c | ${PROJECT_SOURCE_DIR}/json_util.c | ||||
${PROJECT_SOURCE_DIR}/json_visit.c | ${PROJECT_SOURCE_DIR}/json_visit.c | ||||
${PROJECT_SOURCE_DIR}/linkhash.c | |||||
${PROJECT_SOURCE_DIR}/json_c_linkhash.c | |||||
${PROJECT_SOURCE_DIR}/json_c_printbuf.c | ${PROJECT_SOURCE_DIR}/json_c_printbuf.c | ||||
${PROJECT_SOURCE_DIR}/random_seed.c | ${PROJECT_SOURCE_DIR}/random_seed.c | ||||
${PROJECT_SOURCE_DIR}/strerror_override.c | ${PROJECT_SOURCE_DIR}/strerror_override.c | ||||
@@ -29,7 +29,7 @@ extern "C" { | |||||
#include "json_pointer.h" | #include "json_pointer.h" | ||||
#include "json_tokener.h" | #include "json_tokener.h" | ||||
#include "json_util.h" | #include "json_util.h" | ||||
#include "linkhash.h" | |||||
#include "json_c_linkhash.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
@@ -1,5 +1,5 @@ | |||||
/* | /* | ||||
* $Id: linkhash.c,v 1.4 2006/01/26 02:16:28 mclark Exp $ | |||||
* $Id: json_c_linkhash.c,v 1.4 2006/01/26 02:16:28 mclark Exp $ | |||||
* | * | ||||
* Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. | * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. | ||||
* Michael Clark <michael@metaparadigm.com> | * Michael Clark <michael@metaparadigm.com> | ||||
@@ -28,7 +28,7 @@ | |||||
#include <windows.h> /* Get InterlockedCompareExchange */ | #include <windows.h> /* Get InterlockedCompareExchange */ | ||||
#endif | #endif | ||||
#include "linkhash.h" | |||||
#include "json_c_linkhash.h" | |||||
#include "random_seed.h" | #include "random_seed.h" | ||||
/* hash functions */ | /* hash functions */ |
@@ -1,5 +1,5 @@ | |||||
/* | /* | ||||
* $Id: linkhash.h,v 1.6 2006/01/30 23:07:57 mclark Exp $ | |||||
* $Id: json_c_linkhash.h,v 1.6 2006/01/30 23:07:57 mclark Exp $ | |||||
* | * | ||||
* Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. | * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. | ||||
* Michael Clark <michael@metaparadigm.com> | * Michael Clark <michael@metaparadigm.com> | ||||
@@ -16,8 +16,8 @@ | |||||
* this is exposed by the json_object_get_object() function and within the | * this is exposed by the json_object_get_object() function and within the | ||||
* json_object_iter type, it is not recommended for direct use. | * json_object_iter type, it is not recommended for direct use. | ||||
*/ | */ | ||||
#ifndef _linkhash_h_ | |||||
#define _linkhash_h_ | |||||
#ifndef _json_c_linkhash_h_ | |||||
#define _json_c_linkhash_h_ | |||||
#include "json_object.h" | #include "json_object.h" | ||||
@@ -309,7 +309,7 @@ extern int lh_table_length(struct lh_table *t); | |||||
int lh_table_resize(struct lh_table *t, int new_size); | int lh_table_resize(struct lh_table *t, int new_size); | ||||
/** | /** | ||||
* @deprecated Don't use this outside of linkhash.h: | |||||
* @deprecated Don't use this outside of json_c_linkhash.h: | |||||
*/ | */ | ||||
#if !defined(_MSC_VER) || (_MSC_VER > 1800) | #if !defined(_MSC_VER) || (_MSC_VER > 1800) | ||||
/* VS2010 can't handle inline funcs, so skip it there */ | /* VS2010 can't handle inline funcs, so skip it there */ | ||||
@@ -337,7 +337,7 @@ static _LH_INLINE unsigned long lh_get_hash(const struct lh_table *t, const void | |||||
#undef _LH_INLINE | #undef _LH_INLINE | ||||
/** | /** | ||||
* @deprecated Don't use this outside of linkhash.h: | |||||
* @deprecated Don't use this outside of json_c_linkhash.h: | |||||
*/ | */ | ||||
#ifdef __UNCONST | #ifdef __UNCONST | ||||
#define _LH_UNCONST(a) __UNCONST(a) | #define _LH_UNCONST(a) __UNCONST(a) |
@@ -28,7 +28,7 @@ | |||||
#include "json_object.h" | #include "json_object.h" | ||||
#include "json_object_private.h" | #include "json_object_private.h" | ||||
#include "json_util.h" | #include "json_util.h" | ||||
#include "linkhash.h" | |||||
#include "json_c_linkhash.h" | |||||
#include "math_compat.h" | #include "math_compat.h" | ||||
#include "json_c_printbuf.h" | #include "json_c_printbuf.h" | ||||
#include "snprintf_compat.h" | #include "snprintf_compat.h" | ||||
@@ -11,7 +11,7 @@ | |||||
#include "json_inttypes.h" | #include "json_inttypes.h" | ||||
#include "json_object.h" | #include "json_object.h" | ||||
#include "json_visit.h" | #include "json_visit.h" | ||||
#include "linkhash.h" | |||||
#include "json_c_linkhash.h" | |||||
static int _json_c_visit(json_object *jso, json_object *parent_jso, const char *jso_key, | static int _json_c_visit(json_object *jso, json_object *parent_jso, const char *jso_key, | ||||
size_t *jso_index, json_c_visit_userfunc *userfunc, void *userarg); | size_t *jso_index, json_c_visit_userfunc *userfunc, void *userarg); | ||||