#include <stdlib.h>
#include <assert.h>
#include "objs/kite_object.h"
#include "kite_vm.h"
Functions | |
void | kite_list_remove (kite_list_t **begin, kite_list_t **end, kite_list_t *item) |
void | kite_list_add_end (kite_list_t **begin, kite_list_t **end, kite_list_t *obj) |
void | kite_list_add_begin (kite_list_t **begin, kite_list_t **end, kite_list_t *obj) |
void kite_list_add_begin | ( | kite_list_t ** | begin, | |
kite_list_t ** | end, | |||
kite_list_t * | item | |||
) |
Add item to the beginning of a linked list.
[in,out] | begin | The beginning of the list. |
[in,out] | end | The end of the list. |
item | The item to add. |
References kite_list_t::next, and kite_list_t::prev.
Referenced by kite_dereference_object().
void kite_list_add_end | ( | kite_list_t ** | begin, | |
kite_list_t ** | end, | |||
kite_list_t * | item | |||
) |
Add item to the end of a linked list.
[in,out] | begin | The beginning of the list. |
[in,out] | end | The end of the list. |
item | The item to add. |
Referenced by kite_new_class(), kite_new_instance(), and kite_reference_object().
void kite_list_remove | ( | kite_list_t ** | begin, | |
kite_list_t ** | end, | |||
kite_list_t * | item | |||
) |
Remove item from a linked list.
[in,out] | begin | The beginning of the list. |
[in,out] | end | The end of the list. |
item | The item to remove. |
References kite_list_t::next, and kite_list_t::prev.
Referenced by kite_dereference_object(), kite_destruct_object_nofree(), and kite_reference_object().