Beispiel #1
0
/*
 *  ======== List_put ========
 */
Void List_put(List_Object *obj, List_Elem *elem)
{
    UInt key;

    key = Hwi_disable();

    List_enqueue(obj, elem);

    Hwi_restore(key);
}
Beispiel #2
0
void Room_SpawnEntity(Room self, const char *name, json_t* args)
{
    Entity (*constructor)(json_t*) = FHash_get(constructors, name);
    Entity *val = constructor(args);
    List_enqueue(self->entities, val);
}
Beispiel #3
0
/*
 *  ======== List_insert ========
 */
Void List_insert(List_Object *obj, List_Elem *newElem, List_Elem *curElem)
{
    List_enqueue((List_Object *)curElem, newElem);
}