~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_once.c

  • Committer: Brian Aker
  • Date: 2008-07-18 20:10:26 UTC
  • mfrom: (51.3.29 remove-dbug)
  • Revision ID: brian@tangent.org-20080718201026-tto5golt0xhwqe4a
Merging in Jay's final patch on dbug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    my_once_alloc()
28
28
      Size
29
29
      MyFlags
30
 
 
31
 
  NOTES
32
 
    No DBUG_ENTER... here to get smaller dbug-startup 
33
30
*/
34
31
 
35
32
void* my_once_alloc(size_t Size, myf MyFlags)
61
58
        my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_WAITTANG),get_size);
62
59
      return((uchar*) 0);
63
60
    }
64
 
    DBUG_PRINT("test",("my_once_malloc %lu byte malloced", (ulong) get_size));
65
61
    next->next= 0;
66
62
    next->size= get_size;
67
63
    next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM));
105
101
void my_once_free(void)
106
102
{
107
103
  register USED_MEM *next,*old;
108
 
  DBUG_ENTER("my_once_free");
109
104
 
110
105
  for (next=my_once_root_block ; next ; )
111
106
  {
114
109
  }
115
110
  my_once_root_block=0;
116
111
 
117
 
  DBUG_VOID_RETURN;
 
112
  return;
118
113
} /* my_once_free */