From ae987b923e5341422bdc3048079ce2c5a2b8dd2f Mon Sep 17 00:00:00 2001 From: Patrick Winnertz Date: Thu, 5 Feb 2009 23:46:07 +0100 Subject: [PATCH] Reverted the use of bool in favour of gboolean Signed-off-by: Patrick Winnertz --- edit/usermap.c | 14 +++++++------- edit/usermap.h | 4 +--- src/ecs-test.c | 6 ++---- src/ecs.c | 28 +++++++++++++-------------- src/ecs.h | 30 ++++++++++++++--------------- src/file.c | 3 +-- src/find.c | 2 +- src/key.c | 2 +- src/logging.c | 6 +++--- src/treestore.c | 2 +- src/tty.c | 6 ++---- src/tty.h | 4 +--- src/utilunix.c | 2 +- src/view.c | 50 ++++++++++++++++++++++++------------------------- src/view.h | 2 +- src/widget.c | 8 ++++---- src/widget.h | 4 +--- src/x11conn.c | 10 ++++------ vfs/smbfs.c | 10 +++++----- vfs/utilvfs.c | 8 ++++---- vfs/utilvfs.h | 10 ++++------ 21 files changed, 97 insertions(+), 114 deletions(-) diff --git a/edit/usermap.c b/edit/usermap.c index bbc0dd700..e30c011ba 100644 --- a/edit/usermap.c +++ b/edit/usermap.c @@ -59,7 +59,7 @@ typedef struct Config { typedef struct Command { const char *name; - bool (*handler) (config_t *cfg, int argc, char *argv[]); + int (*handler) (config_t *cfg, int argc, char *argv[]); } command_t; static char error_msg[200] = "Nobody see this"; @@ -255,7 +255,7 @@ cfg_free_maps(config_t *cfg) static GPtrArray * split_line(char *str) { - bool inside_quote = FALSE; + gboolean inside_quote = FALSE; int move = 0; GPtrArray *args; @@ -345,7 +345,7 @@ keymap_add(GArray *keymap, int key, int cmd) } /* bind */ -static bool +static gboolean cmd_bind(config_t *cfg, int argc, char *argv[]) { char *keyname, *command; @@ -471,7 +471,7 @@ static void edit_my_define (Dlg_head * h, int idx, const char *text, #endif /* label