Logo Search packages:      
Sourcecode: pulseaudio version File versions

xmalloc.h File Reference


Detailed Description

Memory allocation functions.

Definition in file xmalloc.h.

#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>

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)))

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
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


Generated by  Doxygen 1.6.0   Back to index