chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add simple event loop
[elogind.git]
/
macro.h
diff --git
a/macro.h
b/macro.h
index 267da83a0f5b357bbe595d71a10fbf4b3c43d6dd..ed09750f73a9bd359bb1890bc26627e7abf23b6e 100644
(file)
--- a/
macro.h
+++ b/
macro.h
@@
-73,4
+73,7
@@
static inline size_t ALIGN(size_t l) {
#define TO_INT32(p) ((int32_t) ((intptr_t) (p)))
#define INT32_TO_PTR(u) ((void*) ((intptr_t) (u)))
+#define memzero(x,l) (memset((x), 0, (l)))
+#define zero(x) (memzero(&(x), sizeof(x)))
+
#endif