summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 13:06:13 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 13:06:13 -0500
commit4293f5284971473afaa43b83075d4d985b976622 (patch)
tree498243bee09fab77d0a3414c9cc8ad421a7f1136 /buffer.c
parent98c618770f44a2bde4b5ba45c7390971c91a3fc3 (diff)
more documentation
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/buffer.c b/buffer.c
index d34b6da..56afffc 100644
--- a/buffer.c
+++ b/buffer.c
@@ -1,10 +1,11 @@
-#include "ted.h"
-
-
// Text buffers - These store the contents of a file.
// NOTE: All text editing should be done through the two functions
// buffer_insert_text_at_pos and buffer_delete_chars_at_pos
+#include "ted.h"
+
+
+
// this is a macro so we get -Wformat warnings
#define buffer_seterr(buffer, ...) \
snprintf(buffer->error, sizeof buffer->error - 1, __VA_ARGS__)