~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_list.h

  • Committer: Toru Maesaka
  • Date: 2008-07-17 05:59:20 UTC
  • mto: (202.1.1 toru)
  • mto: This revision was merged to the branch mainline in revision 204.
  • Revision ID: dev@torum.net-20080717055920-10okif50x6nh7b1d
forgot to bzr-add new files in the previous push

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
extern LIST *list_cons(void *data,LIST *root);
33
33
extern LIST *list_reverse(LIST *root);
34
34
extern void list_free(LIST *root,unsigned int free_data);
 
35
extern unsigned int list_length(LIST *);
35
36
extern int list_walk(LIST *,list_walk_action action,unsigned char * argument);
36
37
 
37
38
#define list_rest(a) ((a)->next)
38
39
#define list_push(a,b) (a)=list_cons((b),(a))
39
 
#define list_pop(A) {LIST *old=(A); (A)=list_delete(old,old) ; free((unsigned char *) old); }
 
40
#define list_pop(A) {LIST *old=(A); (A)=list_delete(old,old) ; my_free((unsigned char *) old,MYF(MY_FAE)); }
40
41
 
41
42
#ifdef  __cplusplus
42
43
}