astmm.h File Reference

#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

Include dependency graph for astmm.h:

Go to the source code of this file.

Defines

#define __AST_DEBUG_MALLOC
#define calloc(a, b)   __ast_calloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define malloc(a)   __ast_malloc(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define free(a)   __ast_free(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define realloc(a, b)   __ast_realloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define strdup(a)   __ast_strdup(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define strndup(a, b)   __ast_strndup(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define vasprintf(a, b, c)   __ast_vasprintf(a,b,c,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Functions

void * __ast_calloc (size_t nmemb, size_t size, const char *file, int lineno, const char *func)
void * __ast_malloc (size_t size, const char *file, int lineno, const char *func)
void __ast_free (void *ptr, const char *file, int lineno, const char *func)
void * __ast_realloc (void *ptr, size_t size, const char *file, int lineno, const char *func)
char * __ast_strdup (const char *s, const char *file, int lineno, const char *func)
char * __ast_strndup (const char *s, size_t n, const char *file, int lineno, const char *func)
int __ast_vasprintf (char **strp, const char *format, va_list ap, const char *file, int lineno, const char *func)
void __ast_mm_init (void)


Define Documentation

#define __AST_DEBUG_MALLOC

Definition at line 18 of file astmm.h.

#define calloc ( a,
 )     __ast_calloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Definition at line 46 of file astmm.h.

#define free (  )     __ast_free(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Definition at line 52 of file astmm.h.

#define malloc (  )     __ast_malloc(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Definition at line 49 of file astmm.h.

#define realloc ( a,
 )     __ast_realloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Definition at line 55 of file astmm.h.

#define strdup (  )     __ast_strdup(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Definition at line 58 of file astmm.h.

#define strndup ( a,
 )     __ast_strndup(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Definition at line 61 of file astmm.h.

#define vasprintf ( a,
b,
 )     __ast_vasprintf(a,b,c,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Definition at line 64 of file astmm.h.


Function Documentation

void* __ast_calloc ( size_t  nmemb,
size_t  size,
const char *  file,
int  lineno,
const char *  func 
)

void __ast_free ( void *  ptr,
const char *  file,
int  lineno,
const char *  func 
)

void* __ast_malloc ( size_t  size,
const char *  file,
int  lineno,
const char *  func 
)

void __ast_mm_init ( void   ) 

void* __ast_realloc ( void *  ptr,
size_t  size,
const char *  file,
int  lineno,
const char *  func 
)

char* __ast_strdup ( const char *  s,
const char *  file,
int  lineno,
const char *  func 
)

char* __ast_strndup ( const char *  s,
size_t  n,
const char *  file,
int  lineno,
const char *  func 
)

int __ast_vasprintf ( char **  strp,
const char *  format,
va_list  ap,
const char *  file,
int  lineno,
const char *  func 
)


Generated on Wed Oct 28 17:00:49 2009 for Asterisk by  doxygen 1.5.6