MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / add

Function add

External/tiny-json/tiny-json.c:315–324  ·  view source on GitHub ↗

Add a property to a JSON object or array. * @param obj The handler of the JSON object or array. * @param property The handler of the property to be added. */

Source from the content-addressed store, hash-verified

313 * @param obj The handler of the JSON object or array.
314 * @param property The handler of the property to be added. */
315static void add( json_t* obj, json_t* property ) {
316 property->sibling = 0;
317 if ( !obj->u.c.child ){
318 obj->u.c.child = property;
319 obj->u.c.last_child = property;
320 } else {
321 obj->u.c.last_child->sibling = property;
322 obj->u.c.last_child = property;
323 }
324}
325
326/** Parser a string to get a json object value.
327 * @param str Pointer to first character.

Callers 15

ResetStackMethod · 0.85
DEF_OPFunction · 0.85
ApplyMemOperandMethod · 0.85
Emulate128BitGatherMethod · 0.85
DEF_OPFunction · 0.85
DEF_OPFunction · 0.85
DEF_OPFunction · 0.85
DEF_OPFunction · 0.85
DEF_OPFunction · 0.85
EmitDispatcherMethod · 0.85
LoadConstantMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected