projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0f0821
)
macro: add macros for initializing memory
author
Lennart Poettering
<lennart@poettering.net>
Thu, 7 May 2009 20:03:04 +0000
(22:03 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 8 May 2009 00:04:33 +0000
(
02:04
+0200)
src/pulsecore/macro.h
patch
|
blob
|
history
diff --git
a/src/pulsecore/macro.h
b/src/pulsecore/macro.h
index 73438e64b8acb364a041557a7040a2a72921116f..e9888c301a00f2bafffa66dd6d08cd3d4e2706b8 100644
(file)
--- a/
src/pulsecore/macro.h
+++ b/
src/pulsecore/macro.h
@@
-261,6
+261,9
@@
typedef int pa_bool_t;
#define PA_DEBUG_TRAP raise(SIGTRAP)
#endif
+#define pa_memzero(x,l) (memset((x), 0, (l)))
+#define pa_zero(x) (pa_memzero(&(x), sizeof(x)))
+
/* We include this at the very last place */
#include <pulsecore/log.h>