| 2461 | } |
| 2462 | |
| 2463 | CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string) |
| 2464 | { |
| 2465 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2466 | if (item != NULL) |
| 2467 | { |
| 2468 | item->type = cJSON_String | cJSON_IsReference; |
| 2469 | item->valuestring = (char*)cast_away_const(string); |
| 2470 | } |
| 2471 | |
| 2472 | return item; |
| 2473 | } |
| 2474 | |
| 2475 | CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) |
| 2476 | { |
nothing calls this directly
no test coverage detected