vm/kite_linked_list.c File Reference

#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)

Function Documentation

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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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().


Generated on Sun Feb 8 19:42:48 2009 for Kite by  doxygen 1.5.6