MCPcopy Index your code
hub / github.com/armink/struct2json / suffix_object

Function suffix_object

struct2json/src/cJSON.c:678–678  ·  view source on GitHub ↗

Utility for array list handling. */

Source from the content-addressed store, hash-verified

676
677/* Utility for array list handling. */
678static void suffix_object(cJSON *prev,cJSON *item) {prev->next=item;item->prev=prev;}
679/* Utility for handling references. */
680static cJSON *create_reference(cJSON *item) {cJSON *ref=cJSON_New_Item();if (!ref) return 0;memcpy(ref,item,sizeof(cJSON));ref->string=0;ref->type|=cJSON_IsReference;ref->next=ref->prev=0;return ref;}
681

Callers 5

cJSON_AddItemToArrayFunction · 0.85
cJSON_CreateIntArrayFunction · 0.85
cJSON_CreateFloatArrayFunction · 0.85
cJSON_CreateDoubleArrayFunction · 0.85
cJSON_CreateStringArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected