Clases |
struct | List |
struct | ListCell |
'defines' |
#define | NIL ((List *) NULL) |
#define | lnext(lc) ((lc)->next) |
#define | lfirst(lc) ((lc)->data.ptr_value) |
#define | lfirst_int(lc) ((lc)->data.int_value) |
#define | lfirst_oid(lc) ((lc)->data.oid_value) |
#define | linitial(l) lfirst(list_head(l)) |
#define | linitial_int(l) lfirst_int(list_head(l)) |
#define | linitial_oid(l) lfirst_oid(list_head(l)) |
#define | lsecond(l) lfirst(lnext(list_head(l))) |
#define | lsecond_int(l) lfirst_int(lnext(list_head(l))) |
#define | lsecond_oid(l) lfirst_oid(lnext(list_head(l))) |
#define | lthird(l) lfirst(lnext(lnext(list_head(l)))) |
#define | lthird_int(l) lfirst_int(lnext(lnext(list_head(l)))) |
#define | lthird_oid(l) lfirst_oid(lnext(lnext(list_head(l)))) |
#define | lfourth(l) lfirst(lnext(lnext(lnext(list_head(l))))) |
#define | lfourth_int(l) lfirst_int(lnext(lnext(lnext(list_head(l))))) |
#define | lfourth_oid(l) lfirst_oid(lnext(lnext(lnext(list_head(l))))) |
#define | llast(l) lfirst(list_tail(l)) |
#define | llast_int(l) lfirst_int(list_tail(l)) |
#define | llast_oid(l) lfirst_oid(list_tail(l)) |
#define | list_make1(x1) lcons(x1, NIL) |
#define | list_make2(x1, x2) lcons(x1, list_make1(x2)) |
#define | list_make3(x1, x2, x3) lcons(x1, list_make2(x2, x3)) |
#define | list_make4(x1, x2, x3, x4) lcons(x1, list_make3(x2, x3, x4)) |
#define | list_make1_int(x1) lcons_int(x1, NIL) |
#define | list_make2_int(x1, x2) lcons_int(x1, list_make1_int(x2)) |
#define | list_make3_int(x1, x2, x3) lcons_int(x1, list_make2_int(x2, x3)) |
#define | list_make4_int(x1, x2, x3, x4) lcons_int(x1, list_make3_int(x2, x3, x4)) |
#define | list_make1_oid(x1) lcons_oid(x1, NIL) |
#define | list_make2_oid(x1, x2) lcons_oid(x1, list_make1_oid(x2)) |
#define | list_make3_oid(x1, x2, x3) lcons_oid(x1, list_make2_oid(x2, x3)) |
#define | list_make4_oid(x1, x2, x3, x4) lcons_oid(x1, list_make3_oid(x2, x3, x4)) |
#define | foreach(cell, l) for ((cell) = list_head(l); (cell) != NULL; (cell) = lnext(cell)) |
#define | for_each_cell(cell, initcell) for ((cell) = (initcell); (cell) != NULL; (cell) = lnext(cell)) |
#define | forboth(cell1, list1, cell2, list2) |
'typedefs' |
typedef struct ListCell | ListCell |
typedef struct List | List |
Funciones |
ListCell * | list_head (List *l) |
ListCell * | list_tail (List *l) |
int | list_length (List *l) |
List * | lappend (List *list, void *datum) |
List * | lappend_int (List *list, int datum) |
List * | lappend_oid (List *list, Oid datum) |
ListCell * | lappend_cell (List *list, ListCell *prev, void *datum) |
ListCell * | lappend_cell_int (List *list, ListCell *prev, int datum) |
ListCell * | lappend_cell_oid (List *list, ListCell *prev, Oid datum) |
List * | lcons (void *datum, List *list) |
List * | lcons_int (int datum, List *list) |
List * | lcons_oid (Oid datum, List *list) |
List * | list_concat (List *list1, List *list2) |
List * | list_truncate (List *list, int new_size) |
void * | list_nth (List *list, int n) |
int | list_nth_int (List *list, int n) |
Oid | list_nth_oid (List *list, int n) |
bool | list_member (List *list, void *datum) |
bool | list_member_ptr (List *list, void *datum) |
bool | list_member_int (List *list, int datum) |
bool | list_member_oid (List *list, Oid datum) |
List * | list_delete (List *list, void *datum) |
List * | list_delete_ptr (List *list, void *datum) |
List * | list_delete_int (List *list, int datum) |
List * | list_delete_oid (List *list, Oid datum) |
List * | list_delete_first (List *list) |
List * | list_delete_cell (List *list, ListCell *cell, ListCell *prev) |
List * | list_union (List *list1, List *list2) |
List * | list_union_ptr (List *list1, List *list2) |
List * | list_union_int (List *list1, List *list2) |
List * | list_union_oid (List *list1, List *list2) |
List * | list_difference (List *list1, List *list2) |
List * | list_difference_ptr (List *list1, List *list2) |
List * | list_difference_int (List *list1, List *list2) |
List * | list_difference_oid (List *list1, List *list2) |
List * | list_append_unique (List *list, void *datum) |
List * | list_append_unique_ptr (List *list, void *datum) |
List * | list_append_unique_int (List *list, int datum) |
List * | list_append_unique_oid (List *list, Oid datum) |
List * | list_concat_unique (List *list1, List *list2) |
List * | list_concat_unique_ptr (List *list1, List *list2) |
List * | list_concat_unique_int (List *list1, List *list2) |
List * | list_concat_unique_oid (List *list1, List *list2) |
void | list_free (List *list) |
void | list_free_deep (List *list) |
List * | list_copy (List *list) |
List * | list_copy_tail (List *list, int nskip) |