summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-01-01 01:25:04 +0000
committerIan C <ianc@noddybox.co.uk>2004-01-01 01:25:04 +0000
commitf3a485b283141787667ea98b8e0a8687f07d9062 (patch)
tree2c5234cb3408979109e987737a6197ec2085ec7e /src/config.c
parent9d6402a5215920987fb10e5b35f35b93f1c6f725 (diff)
A few tweaks and added an extra variable (showmatch)
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c9
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;
}