| 867 | } |
| 868 | |
| 869 | void cJSON_AddItemToArrayHead(cJSON *array, cJSON *item) |
| 870 | { |
| 871 | cJSON *c = array->child; |
| 872 | if (!item) |
| 873 | return; |
| 874 | if (!c) |
| 875 | { |
| 876 | array->child = item; |
| 877 | } |
| 878 | else |
| 879 | { |
| 880 | item->prev = c->prev; |
| 881 | item->next = c; |
| 882 | c->prev = item; |
| 883 | array->child = item; |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | void cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) |
| 888 | { |
no outgoing calls
no test coverage detected