prmem.h File Reference

#include "prtypes.h"
#include <stdlib.h>
Include dependency graph for prmem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PR_Malloc   malloc
#define PR_Calloc   calloc
#define PR_Realloc   realloc
#define PR_Free   free
#define PR_MALLOC(_bytes)   (PR_Malloc((_bytes)))
#define PR_NEW(_struct)   ((_struct *) PR_MALLOC(sizeof(_struct)))
#define PR_REALLOC(_ptr, _size)   (PR_Realloc((_ptr), (_size)))
#define PR_CALLOC(_size)   (PR_Calloc(1, (_size)))
#define PR_NEWZAP(_struct)   ((_struct*)PR_Calloc(1, sizeof(_struct)))
#define PR_DELETE(_ptr)   { PR_Free(_ptr); (_ptr) = NULL; }
#define PR_FREEIF(_ptr)   if (_ptr) PR_DELETE(_ptr)

Define Documentation

#define PR_CALLOC ( _size   )     (PR_Calloc(1, (_size)))

Definition at line 122 of file prmem.h.

#define PR_Calloc   calloc

Definition at line 67 of file prmem.h.

#define PR_DELETE ( _ptr   )     { PR_Free(_ptr); (_ptr) = NULL; }

Definition at line 144 of file prmem.h.

#define PR_Free   free

Definition at line 69 of file prmem.h.

#define PR_FREEIF ( _ptr   )     if (_ptr) PR_DELETE(_ptr)
#define PR_MALLOC ( _bytes   )     (PR_Malloc((_bytes)))

Definition at line 89 of file prmem.h.

#define PR_Malloc   malloc
#define PR_NEW ( _struct   )     ((_struct *) PR_MALLOC(sizeof(_struct)))

Definition at line 99 of file prmem.h.

#define PR_NEWZAP ( _struct   )     ((_struct*)PR_Calloc(1, sizeof(_struct)))

Definition at line 133 of file prmem.h.

#define PR_REALLOC ( _ptr,
_size   )     (PR_Realloc((_ptr), (_size)))

Definition at line 111 of file prmem.h.

#define PR_Realloc   realloc

Definition at line 68 of file prmem.h.

Generated by  doxygen 1.6.2-20100208