[polypaudio-commits] r921 - /trunk/src/polyp/xmalloc.h
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Wed May 17 13:43:50 PDT 2006
Author: lennart
Date: Wed May 17 22:43:49 2006
New Revision: 921
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=921&root=polypaudio&view=rev
Log:
add C++ macros to xmalloc.h
Modified:
trunk/src/polyp/xmalloc.h
Modified: trunk/src/polyp/xmalloc.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/xmalloc.h?rev=921&root=polypaudio&r1=920&r2=921&view=diff
==============================================================================
--- trunk/src/polyp/xmalloc.h (original)
+++ trunk/src/polyp/xmalloc.h Wed May 17 22:43:49 2006
@@ -26,10 +26,13 @@
#include <stdlib.h>
#include <limits.h>
#include <assert.h>
+#include <polyp/cdecl.h>
/** \file
* Memory allocation functions.
*/
+
+PA_C_DECL_BEGIN
/** Allocate the specified number of bytes, just like malloc() does. However, in case of OOM, terminate */
void* pa_xmalloc(size_t l);
@@ -70,4 +73,6 @@
/** Same as pa_xnew() but set the memory to zero */
#define pa_xnew0(type, n) ((type*) pa_xnew0_internal((n), sizeof(type)))
+PA_C_DECL_END
+
#endif
More information about the pulseaudio-commits
mailing list