~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/memory/root.h

  • Committer: Brian Aker
  • Date: 2011-02-12 10:06:03 UTC
  • mfrom: (2154.2.16 drizzle-build)
  • Revision ID: brian@tangent.org-20110212100603-i5ww0s02p8l4a8q7
Merge in solaris tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
  void (*error_handler)(void);
124
124
  void reset_root_defaults(size_t block_size, size_t prealloc_size);
125
125
  void *alloc_root(size_t Size);
 
126
  inline void *allocate(size_t Size)
 
127
  {
 
128
    return alloc_root(Size);
 
129
  }
126
130
  void mark_blocks_free();
127
131
  void *memdup_root(const void *str, size_t len);
128
132
  char *strdup_root(const char *str);
 
133
 
129
134
  char *strmake_root(const char *str,size_t len);
130
135
  void init_alloc_root(size_t block_size= ROOT_MIN_BLOCK_SIZE);
131
136
 
 
137
  inline void *duplicate(const void *str, size_t len)
 
138
  {
 
139
    return memdup_root(str, len);
 
140
  }
 
141
 
132
142
  inline bool alloc_root_inited()
133
143
  {
134
144
    return min_malloc != 0;