Lines Matching defs:root
801 static void overwrite_item(cJSON * const root, const cJSON replacement)
803 if (root == NULL)
808 if (root->string != NULL)
810 cJSON_free(root->string);
812 if (root->valuestring != NULL)
814 cJSON_free(root->valuestring);
816 if (root->child != NULL)
818 cJSON_Delete(root->child);
821 memcpy(root, &replacement, sizeof(cJSON));
855 /* special case for replacing the root */