summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2677b74)
raw | patch | inline | side by side (parent: 2677b74)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 7 Feb 2009 14:19:19 +0000 (15:19 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 7 Feb 2009 20:23:55 +0000 (21:23 +0100) |
tig.c | patch | blob | history |
index 97794b0e6e0d85793b678537aff32e65902c5fe7..38daacee531fdc4eabd4f1e4a5d59e1291ef35ff 100644 (file)
--- a/tig.c
+++ b/tig.c
* User config file handling.
*/
+static int config_lineno;
+static bool config_errors;
+static const char *config_msg;
+
static struct enum_map color_map[] = {
#define COLOR_MAP(name) ENUM_MAP(#name, COLOR_##name)
COLOR_MAP(DEFAULT),
{
int value = atoi(arg);
- if (min <= value && value <= max)
+ if (min <= value && value <= max) {
*opt = value;
- return OK;
+ return OK;
+ }
+
+ config_msg = "Integer value out of bound";
+ return ERR;
}
static bool
return FALSE;
}
-static int config_lineno;
-static bool config_errors;
-static const char *config_msg;
-
/* Wants: object fgcolor bgcolor [attribute] */
static int
option_color_command(int argc, const char *argv[])