Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

my_list.h File Reference

Go to the source code of this file.

Defines

#define rest(a)   ((a)->next)
#define list_push(a, b)   (a)=list_cons((b),(a))
#define list_pop(A)   {LIST *old=(A); (A)=list_delete(old,old) ; my_free((gptr) old,MYF(MY_FAE)); }

Typedefs

typedef st_list LIST
typedef int(* list_walk_action )(void *, void *)

Functions

LIST * list_add (LIST *root, LIST *element)
LIST * list_delete (LIST *root, LIST *element)
LIST * list_cons (void *data, LIST *root)
LIST * list_reverse (LIST *root)
void list_free (LIST *root, unsigned int free_data)
unsigned int list_length (LIST *)
int list_walk (LIST *, list_walk_action action, gptr argument)


Define Documentation

#define list_pop (  A   )     {LIST *old=(A); (A)=list_delete(old,old) ; my_free((gptr) old,MYF(MY_FAE)); }
 

Definition at line 41 of file my_list.h.

#define list_push (  a,
b   )     (a)=list_cons((b),(a))
 

Definition at line 40 of file my_list.h.

#define rest (  a   )     ((a)->next)
 

Definition at line 39 of file my_list.h.


Typedef Documentation

typedef struct st_list LIST
 

typedef int(* list_walk_action)(void *, void *)
 

Definition at line 29 of file my_list.h.


Function Documentation

LIST* list_add (  LIST *  root,
LIST *  element
) 
 

LIST* list_cons (  void *  data,
LIST *  root
) 
 

LIST* list_delete (  LIST *  root,
LIST *  element
) 
 

void list_free (  LIST *  root,
unsigned int  free_data
) 
 

unsigned int list_length (  LIST *   ) 
 

LIST* list_reverse (  LIST *  root  ) 
 

int list_walk (  LIST *  ,
list_walk_action  action,
gptr  argument
) 
 


Generated on Sun May 14 14:51:28 2006 by  doxygen 1.4.2