From 4fcf4e9685d9b2e4b49bfa3f7d3709dbe48073b6 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT service" Date: Mon, 2 Feb 2009 21:12:46 +0100 Subject: [PATCH] replaced TRUE/FALSE by true/false --- edit/usermap.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/edit/usermap.c b/edit/usermap.c index 229d30288..271658c92 100644 --- a/edit/usermap.c +++ b/edit/usermap.c @@ -254,7 +254,7 @@ cfg_free_maps(config_t *cfg) static GPtrArray * split_line(char *str) { - bool inside_quote = FALSE; + bool inside_quote = false; int move = 0; GPtrArray *args; @@ -355,7 +355,7 @@ cmd_bind(config_t *cfg, int argc, char *argv[]) if (argc != 3) { snprintf(error_msg, sizeof(error_msg), _("bind: Wrong argument number, bind ")); - return FALSE; + return false; } keyname = argv[1]; @@ -377,7 +377,7 @@ cmd_bind(config_t *cfg, int argc, char *argv[]) if (!m) { /* incorrect key */ snprintf(error_msg, sizeof(error_msg), _("bind: Bad key value `%s'"), keyname); - return FALSE; + return false; } mod |= m; m = 0; @@ -390,7 +390,7 @@ cmd_bind(config_t *cfg, int argc, char *argv[]) /* no key */ if (keyname[0] == '\0') { snprintf(error_msg, sizeof(error_msg), _("bind: Ehh...no key?")); - return FALSE; + return false; } /* ordinary key */ @@ -404,7 +404,7 @@ cmd_bind(config_t *cfg, int argc, char *argv[]) if (k < 0 && !key->name) { snprintf(error_msg, sizeof(error_msg), _("bind: Unknown key: `%s'"), keyname); - return FALSE; + return false; } while (cmd->name && strcasecmp(cmd->name, command) != 0) @@ -413,7 +413,7 @@ cmd_bind(config_t *cfg, int argc, char *argv[]) if (!cmd->name) { snprintf(error_msg, sizeof(error_msg), _("bind: Unknown command: `%s'"), command); - return FALSE; + return false; } if (mod & KEY_M_CTRL) { @@ -434,7 +434,7 @@ cmd_bind(config_t *cfg, int argc, char *argv[]) else keymap_add(cfg->keymap, k, cmd->val); - return TRUE; + return true; } #if 0 @@ -481,7 +481,7 @@ cmd_label(config_t *cfg, int argc, char *argv[]) snprintf(error_msg, sizeof(error_msg), _("%s: Syntax: %s