src/json.c

changeset 1586
7f1cadc3ebc1
parent 1585
8ccfbc00f690
child 1591
ef2f47fc5f0c
equal deleted inserted replaced
1585:8ccfbc00f690 1586:7f1cadc3ebc1
450 } 450 }
451 cxBufferDestroy(&buf); 451 cxBufferDestroy(&buf);
452 return ret; 452 return ret;
453 } 453 }
454 454
455 #include "cx/hash_map.h"
456
455 static CxJsonObject json_create_object_map(const CxAllocator *allocator) { 457 static CxJsonObject json_create_object_map(const CxAllocator *allocator) {
456 CxMap *map = cxKvListCreateAsMap(allocator, NULL, CX_STORE_POINTERS); 458 CxMap *map = cxKvListCreateAsMap(allocator, NULL, CX_STORE_POINTERS);
457 if (map == NULL) return NULL; // LCOV_EXCL_LINE 459 if (map == NULL) return NULL; // LCOV_EXCL_LINE
458 // TODO: fix the specification of the compare function 460 // TODO: fix the specification of the compare function
459 map->collection.cmpfunc = (cx_compare_func) cxJsonCompare; 461 map->collection.cmpfunc = (cx_compare_func) cxJsonCompare;

mercurial