From 45964f373bedc439e71f1fdea70f67dabec994d8 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT service" Date: Mon, 2 Feb 2009 05:07:56 +0100 Subject: [PATCH] replaced gboolean by bool (from mhl/types.h) --- ChangeLog | 1 + edit/usermap.c | 15 ++++++++------- edit/usermap.h | 4 +++- src/ecs-test.c | 6 ++++-- src/ecs.c | 30 ++++++++++++++++-------------- src/ecs.h | 30 ++++++++++++++++-------------- src/file.c | 3 ++- src/find.c | 3 ++- src/key.c | 4 +++- src/logging.c | 8 +++++--- src/treestore.c | 3 ++- src/tty.c | 6 ++++-- src/tty.h | 4 +++- src/utilunix.c | 3 ++- src/view.c | 53 +++++++++++++++++++++++++++-------------------------- src/view.h | 2 +- src/widget.c | 9 +++++---- src/widget.h | 4 +++- src/x11conn.c | 10 ++++++---- vfs/smbfs.c | 12 +++++++----- vfs/utilvfs.c | 10 ++++++---- vfs/utilvfs.h | 10 ++++++---- 22 files changed, 132 insertions(+), 98 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c393609e..9e53731a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * src/util.c: fixed name_trunc() on NULL or empty parameters * src/achown.c: fixed unitialized var in init_chown_advanced() (patch from andrew_b) + * replaced gboolean by bool (from mhl/types.h) 2009-01-31 Enrico Weigelt, metux ITS , Patrick Winnertz , Slava Zanko , Sergei Trofimovich diff --git a/edit/usermap.c b/edit/usermap.c index ebb6880cc..229d30288 100644 --- a/edit/usermap.c +++ b/edit/usermap.c @@ -30,6 +30,7 @@ #include #include +#include #include #include "../src/global.h" @@ -57,7 +58,7 @@ typedef struct Config { typedef struct Command { const char *name; - int (*handler) (config_t *cfg, int argc, char *argv[]); + bool (*handler) (config_t *cfg, int argc, char *argv[]); } command_t; static char error_msg[200] = "Nobody see this"; @@ -253,7 +254,7 @@ cfg_free_maps(config_t *cfg) static GPtrArray * split_line(char *str) { - gboolean inside_quote = FALSE; + bool inside_quote = FALSE; int move = 0; GPtrArray *args; @@ -343,7 +344,7 @@ keymap_add(GArray *keymap, int key, int cmd) } /* bind */ -static gboolean +static bool cmd_bind(config_t *cfg, int argc, char *argv[]) { char *keyname, *command; @@ -469,7 +470,7 @@ static void edit_my_define (Dlg_head * h, int idx, const char *text, #endif /* label