66 return &obj->value.object.values[index]; |
66 return &obj->value.object.values[index]; |
67 } |
67 } |
68 } |
68 } |
69 |
69 |
70 static int json_add_objvalue(CxJsonValue *objv, CxJsonObjValue member) { |
70 static int json_add_objvalue(CxJsonValue *objv, CxJsonObjValue member) { |
71 assert(obj->type == CX_JSON_OBJECT); |
71 assert(objv->type == CX_JSON_OBJECT); |
72 const CxAllocator * const al = objv->allocator; |
72 const CxAllocator * const al = objv->allocator; |
73 CxJsonObject *obj = &(objv->value.object); |
73 CxJsonObject *obj = &(objv->value.object); |
74 |
74 |
75 // determine the index where we need to insert the new member |
75 // determine the index where we need to insert the new member |
76 size_t index = cx_array_binary_search_sup( |
76 size_t index = cx_array_binary_search_sup( |