From 392098c13c3fb4e879f795170afc35e2e3c0f2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 17 Jul 2014 09:59:55 +0200 Subject: Simplify + add prototypes --- editor.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'editor.h') 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); -- cgit v1.2.3