| 2554 | } |
| 2555 | |
| 2556 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { |
| 2557 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2558 | if (item != NULL) { |
| 2559 | item->type = cJSON_Array | cJSON_IsReference; |
| 2560 | item->child = (cJSON*)cast_away_const(child); |
| 2561 | } |
| 2562 | |
| 2563 | return item; |
| 2564 | } |
| 2565 | |
| 2566 | CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) |
| 2567 | { |
searching dependent graphs…