src/json.c

changeset 1591
ef2f47fc5f0c
parent 1586
7f1cadc3ebc1
child 1592
c1e17411004f
equal deleted inserted replaced
1590:7fc3bea76481 1591:ef2f47fc5f0c
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
457 static CxJsonObject json_create_object_map(const CxAllocator *allocator) { 455 static CxJsonObject json_create_object_map(const CxAllocator *allocator) {
458 CxMap *map = cxKvListCreateAsMap(allocator, NULL, CX_STORE_POINTERS); 456 CxMap *map = cxKvListCreateAsMap(allocator, NULL, CX_STORE_POINTERS);
459 if (map == NULL) return NULL; // LCOV_EXCL_LINE 457 if (map == NULL) return NULL; // LCOV_EXCL_LINE
460 // TODO: fix the specification of the compare function 458 // TODO: fix the specification of the compare function
461 map->collection.cmpfunc = (cx_compare_func) cxJsonCompare; 459 map->collection.cmpfunc = (cx_compare_func) cxJsonCompare;

mercurial