~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_list.h

  • Committer: Patrick Galbraith
  • Date: 2008-07-24 16:57:40 UTC
  • mto: (202.2.4 rename-mysql-to-drizzle)
  • mto: This revision was merged to the branch mainline in revision 212.
  • Revision ID: patg@ishvara-20080724165740-x58yw6zs6d9o17lf
Most everything working with client rename
mysqlslap test still fails... can't connect to the server

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
}