Defines | Functions

mozalloc.h File Reference

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

Defines

#define MOZALLOC_HAVE_XMALLOC
#define MOZALLOC_EXPORT
#define MOZALLOC_INLINE   inline

Functions

void moz_free (void *ptr)
void * moz_xmalloc (size_t size) NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT
void * moz_malloc (size_t size) NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT
void * moz_xcalloc (size_t nmemb, size_t size) NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT
void * moz_calloc (size_t nmemb, size_t size) NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT
void * moz_xrealloc (void *ptr, size_t size) NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT
void * moz_realloc (void *ptr, size_t size) NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT
char * moz_xstrdup (const char *str) NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT
char * moz_strdup (const char *str) NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT
size_t moz_malloc_usable_size (void *ptr)

Define Documentation

#define MOZALLOC_EXPORT
#define MOZALLOC_HAVE_XMALLOC
#define MOZALLOC_INLINE   inline

Function Documentation

void* moz_calloc ( size_t  nmemb,
size_t  size 
)
void moz_free ( void *  ptr  ) 
void* moz_malloc ( size_t  size  ) 
size_t moz_malloc_usable_size ( void *  ptr  ) 
void* moz_realloc ( void *  ptr,
size_t  size 
)
char* moz_strdup ( const char *  str  ) 
void* moz_xcalloc ( size_t  nmemb,
size_t  size 
)
void* moz_xmalloc ( size_t  size  ) 
void* moz_xrealloc ( void *  ptr,
size_t  size 
)
char* moz_xstrdup ( const char *  str  )