升级到cJSON-1.7.7。

This commit is contained in:
zhengchao
2018-11-09 17:59:24 +08:00
parent a5834f6be4
commit a2845ca071
4 changed files with 3012 additions and 539 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -95,7 +95,7 @@ void duplicate_func(const uchar * key, uint size, void * data, void * user)
{
MESA_htable_handle target=(MESA_htable_handle)user;
int value=*(int*)data;
int ret=0;
__attribute__((unused)) int ret=0;
char* string=(char*)calloc(sizeof(char),(size+1));
memcpy(string,key,size);
ret=map_register(target,string,value);
@@ -103,7 +103,7 @@ void duplicate_func(const uchar * key, uint size, void * data, void * user)
}
MESA_htable_handle map_duplicate(MESA_htable_handle origin_map)
{
int ret=0;
__attribute__((unused)) int ret=0;
MESA_htable_handle target=NULL;
target=map_create();
ret=MESA_htable_iterate(origin_map, duplicate_func, target);