| 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; |