From: Pierre Habouzit Date: Wed, 29 Aug 2007 16:51:02 +0000 (+0200) Subject: Special buffer initializer X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=8f9347bce988e34c59ab1b4cf9a4a087b81d4959;p=apps%2Fpfixtools.git Special buffer initializer --- diff --git a/buffer.h b/buffer.h index d58ab17..60c6f29 100644 --- a/buffer.h +++ b/buffer.h @@ -45,6 +45,8 @@ typedef struct buffer_t { ssize_t size; } buffer_t; +#define BUFFER_INIT {NULL, 0, 0} + DO_INIT(buffer_t, buffer); static inline void buffer_wipe(buffer_t *buf) { p_delete(&buf->data);