~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/list.c

Much closer toward UTF8 being around all the time...

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
  {