projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
foreach() semantic for arrays, improves configuration post-processing.
[apps/pfixtools.git]
/
common
/
buffer.h
diff --git
a/common/buffer.h
b/common/buffer.h
index
24bc590
..
a1a96ec
100644
(file)
--- a/
common/buffer.h
+++ b/
common/buffer.h
@@
-39,12
+39,9
@@
#include <stdarg.h>
#include "mem.h"
#include "str.h"
#include <stdarg.h>
#include "mem.h"
#include "str.h"
+#include "array.h"
-typedef struct buffer_t {
- char *data;
- ssize_t len;
- ssize_t size;
-} buffer_t;
+typedef A(char) buffer_t;
#define BUFFER_INIT {NULL, 0, 0}
#define BUFFER_INIT {NULL, 0, 0}