diff options
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 4e369f7..1c10591 100644 --- a/src/config.c +++ b/src/config.c @@ -38,6 +38,8 @@ static const char id[]="$Id$"; #include "rexp.h" #include "util.h" +static const char header_id[]=KBS_CONFIG_H; + /* ---------------------------------------- TYPES */ @@ -66,6 +68,7 @@ typedef enum { TOK_VarTestmode, TOK_VarBlockHTML, TOK_VarVerbose, + TOK_VarShowmatch, TOK_ConstOn, TOK_ConstOff, TOK_ConstBlock, @@ -101,6 +104,7 @@ static int dejunk=FALSE; static int testmode=FALSE; static int blockhtml=FALSE; static int verbose=TRUE; +static int show_match=TRUE; static int no_macro=0; static Macro *macro=NULL; @@ -138,6 +142,7 @@ static const Command cmd_table[]= {"testmode", TOK_VarTestmode}, {"blockhtml", TOK_VarBlockHTML}, {"verbose", TOK_VarVerbose}, + {"showmatch", TOK_VarShowmatch}, /* Constants */ @@ -225,6 +230,7 @@ static int DoSet(FILE *fp) {TOK_VarTestmode, TYPE_ONOFF, (void *)&testmode}, {TOK_VarBlockHTML, TYPE_ONOFF, (void *)&blockhtml}, {TOK_VarVerbose, TYPE_ONOFF, (void *)&verbose}, + {TOK_VarShowmatch, TYPE_ONOFF, (void *)&show_match}, {TOK_EOF,0,NULL} }; @@ -863,6 +869,9 @@ int ConfigInt(ConfigIntVar var) case CONFIG_VERBOSE: return verbose; + case CONFIG_SHOWMATCH: + return show_match; + default: return 0; } |