aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-07-17 09:59:55 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-07-17 09:59:55 +0200
commit392098c13c3fb4e879f795170afc35e2e3c0f2d8 (patch)
tree64a8842f6220b7d12fbb8647fa6382fca0ad3430 /editor.h
parent77ec77be79010624da2ae698d2d93ffe3bcf1b51 (diff)
downloadvis-392098c13c3fb4e879f795170afc35e2e3c0f2d8.tar.gz
vis-392098c13c3fb4e879f795170afc35e2e3c0f2d8.tar.xz
Simplify + add prototypes
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/editor.h b/editor.h
index 8b1ef13..ae504f0 100644
--- a/editor.h
+++ b/editor.h
@@ -2,12 +2,7 @@
typedef struct Editor Editor;
-typedef enum {
- CONTINUE,
- BREAK,
-} Iterate;
-
-typedef Iterate (*iterator_callback_t)(void *, size_t pos, const char *content, size_t len);
+typedef bool (*iterator_callback_t)(void *, size_t pos, const char *content, size_t len);
bool editor_insert(Editor*, size_t pos, char *c);
bool editor_replace(Editor*, size_t pos, char *c);