From f3a485b283141787667ea98b8e0a8687f07d9062 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 1 Jan 2004 01:25:04 +0000 Subject: A few tweaks and added an extra variable (showmatch) --- src/config.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/config.c') 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; } -- cgit v1.2.3