aboutsummaryrefslogtreecommitdiff
path: root/macro.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-05-16 15:28:09 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-05-16 22:33:26 +0200
commitff0fb0e5a5ef0da28d74d423e2c8ca534e549a4a (patch)
tree2abe0ab01534dc148a2ff7c7e1a58af7ba07dc43 /macro.h
parentb58c9169bb5986cd87a2f98fb8854c86638b70f6 (diff)
downloadvis-ff0fb0e5a5ef0da28d74d423e2c8ca534e549a4a.tar.gz
vis-ff0fb0e5a5ef0da28d74d423e2c8ca534e549a4a.tar.xz
Cleanup general purpose buffer API
Introduce buffer_init to initialize a stack allocated buffer. Rename buffer_{alloc,free} functions because they do something different than the usual convention. They operate on the underlying buffer data but do not allocate/free an actual Buffer struct.
Diffstat (limited to 'macro.h')
-rw-r--r--macro.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/macro.h b/macro.h
index c605cdf..c91fcca 100644
--- a/macro.h
+++ b/macro.h
@@ -4,7 +4,7 @@
#include "buffer.h"
typedef Buffer Macro;
-#define macro_free buffer_free
+#define macro_release buffer_release
#define macro_reset buffer_truncate
#define macro_append buffer_append