Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

Defines | Functions

xmalloc.h File Reference

#include <sys/types.h>
#include <stdlib.h>
#include <limits.h>
#include <assert.h>
#include <pulse/cdecl.h>
#include <pulse/gccmacro.h>
#include <pulse/version.h>
Include dependency graph for xmalloc.h:

Go to the source code of this file.

Defines

#define pa_xnew(type, n)   ((type*) _pa_xnew_internal((n), sizeof(type)))
#define pa_xnew0(type, n)   ((type*) _pa_xnew0_internal((n), sizeof(type)))
#define pa_xnewdup(type, p, n)   ((type*) _pa_xnewdup_internal((p), (n), sizeof(type)))
#define pa_xrenew(type, p, n)   ((type*) _pa_xrenew_internal(p, (n), sizeof(type)))

Functions

static void * _pa_xnew0_internal (size_t n, size_t k) PA_GCC_MALLOC PA_GCC_ALLOC_SIZE2(1
static void * _pa_xnew_internal (size_t n, size_t k) PA_GCC_MALLOC PA_GCC_ALLOC_SIZE2(1
static void * _pa_xnewdup_internal (const void *p, size_t n, size_t k) PA_GCC_MALLOC PA_GCC_ALLOC_SIZE2(2
static void * _pa_xrenew_internal (void *p, size_t n, size_t k) PA_GCC_MALLOC PA_GCC_ALLOC_SIZE2(2
void pa_xfree (void *p)
PA_C_DECL_BEGIN void * pa_xmalloc (size_t l) PA_GCC_MALLOC PA_GCC_ALLOC_SIZE(1)
void * pa_xmalloc0 (size_t l) PA_GCC_MALLOC PA_GCC_ALLOC_SIZE(1)
void * pa_xmemdup (const void *p, size_t l) PA_GCC_MALLOC PA_GCC_ALLOC_SIZE(2)
void * pa_xrealloc (void *ptr, size_t size) PA_GCC_ALLOC_SIZE(2)
char * pa_xstrdup (const char *s) PA_GCC_MALLOC
char * pa_xstrndup (const char *s, size_t l) PA_GCC_MALLOC

Detailed Description

Memory allocation functions.

Definition in file xmalloc.h.


Generated by  Doxygen 1.6.0   Back to index