Edinburgh Speech Tools  2.1-release
EST_walloc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define wcalloc(TYPE, SIZE)   ((TYPE *)safe_wcalloc(sizeof(TYPE),(SIZE)))
 
#define walloc(TYPE, SIZE)   wcalloc(TYPE,SIZE)
 
#define wrealloc(PTR, TYPE, SIZE)   ((TYPE *)safe_wrealloc((void *)(PTR), sizeof(TYPE)*(SIZE)))
 

Functions

void * safe_walloc (size_t size)
 
void * safe_wcalloc (size_t num, size_t size)
 
void * safe_wrealloc (void *ptr, size_t size)
 
char * wstrdup (const char *s)
 
void wfree (void *p)
 
void debug_memory_summary ()
 

Macro Definition Documentation

#define wcalloc (   TYPE,
  SIZE 
)    ((TYPE *)safe_wcalloc(sizeof(TYPE),(SIZE)))

Definition at line 51 of file EST_walloc.h.

#define walloc (   TYPE,
  SIZE 
)    wcalloc(TYPE,SIZE)

Definition at line 52 of file EST_walloc.h.

#define wrealloc (   PTR,
  TYPE,
  SIZE 
)    ((TYPE *)safe_wrealloc((void *)(PTR), sizeof(TYPE)*(SIZE)))

Definition at line 53 of file EST_walloc.h.

Function Documentation

void* safe_walloc ( size_t  size)

Definition at line 50 of file walloc.c.

void* safe_wcalloc ( size_t  num,
size_t  size 
)

Definition at line 96 of file walloc.c.

void* safe_wrealloc ( void *  ptr,
size_t  size 
)

Definition at line 72 of file walloc.c.

char* wstrdup ( const char *  s)

Definition at line 117 of file walloc.c.

void wfree ( void *  p)

Definition at line 131 of file walloc.c.

void debug_memory_summary ( )