~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/str_alloc.cc

  • Committer: Brian Aker
  • Date: 2008-12-01 18:54:12 UTC
  • mfrom: (632.1.10 devel)
  • Revision ID: brian@tangent.org-20081201185412-i0hun3497xa9lg0w
Merging Monty's code

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include <mystrings/m_string.h>
17
17
#include <stdlib.h>
18
18
 
19
 
static void *my_str_malloc_default(size_t size)
 
19
void *my_str_malloc_default(size_t size)
20
20
{
21
21
  void *ret= malloc(size);
22
22
  if (!ret)
24
24
  return ret;
25
25
}
26
26
 
27
 
static void my_str_free_default(void *ptr)
 
27
void my_str_free_default(void *ptr)
28
28
{
29
29
  free(ptr);
30
30
}
31
31
 
32
 
void *(*my_str_malloc)(size_t)= &my_str_malloc_default;
33
 
void (*my_str_free)(void *)= &my_str_free_default;
 
32
str_malloc_func my_str_malloc= &my_str_malloc_default;
 
33
str_free_func my_str_free= &my_str_free_default;