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