~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/list.c

  • Committer: Stewart Smith
  • Date: 2008-09-25 10:04:06 UTC
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080925100406-hld92f4dr4nuar3a
Move compression functions (compress, uncompress and compressed_length) out into modules and fix test

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
}
53
53
 
54
54
 
55
 
void list_free(LIST *root, uint32_t free_data)
 
55
void list_free(LIST *root, uint free_data)
56
56
{
57
57
  LIST *next;
58
58
  while (root)
59
59
  {
60
60
    next=root->next;
61
61
    if (free_data)
62
 
      free((unsigned char*) root->data);
63
 
    free((unsigned char*) root);
 
62
      my_free((uchar*) root->data,MYF(0));
 
63
    my_free((uchar*) root,MYF(0));
64
64
    root=next;
65
65
  }
66
66
}
91
91
  return last;
92
92
}
93
93
 
94
 
int list_walk(LIST *list, list_walk_action action, unsigned char* argument)
 
94
int list_walk(LIST *list, list_walk_action action, uchar* argument)
95
95
{
96
96
  while (list)
97
97
  {