~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_list.h

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:30 UTC
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063230-4brxsra0qsmsg84q
Added -Wunused-macros.

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 *);
36
35
extern int list_walk(LIST *,list_walk_action action,unsigned char * argument);
37
36
 
38
37
#define list_rest(a) ((a)->next)
39
38
#define list_push(a,b) (a)=list_cons((b),(a))
40
 
#define list_pop(A) {LIST *old=(A); (A)=list_delete(old,old) ; my_free((unsigned char *) old,MYF(MY_FAE)); }
 
39
#define list_pop(A) {LIST *old=(A); (A)=list_delete(old,old) ; free((unsigned char *) old); }
41
40
 
42
41
#ifdef  __cplusplus
43
42
}