diff options
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 66ea944..cf1a751 100644 --- a/src/config.c +++ b/src/config.c @@ -71,6 +71,7 @@ typedef enum { TOK_VarBlockHTML, TOK_VarVerbose, TOK_VarShowmatch, + TOK_VarDumpHeaders, TOK_ConstOn, TOK_ConstOff, TOK_ConstBlock, @@ -107,6 +108,7 @@ static int testmode=FALSE; static int blockhtml=FALSE; static int verbose=TRUE; static int show_match=TRUE; +static int dump_headers=FALSE; static int no_macro=0; static Macro *macro=NULL; @@ -147,6 +149,7 @@ static const Command cmd_table[]= {"blockhtml", TOK_VarBlockHTML}, {"verbose", TOK_VarVerbose}, {"showmatch", TOK_VarShowmatch}, + {"dumpheaders", TOK_VarDumpHeaders}, /* Constants */ @@ -236,6 +239,7 @@ static int DoSet(FILE *fp) {TOK_VarBlockHTML, TYPE_ONOFF, (void *)&blockhtml}, {TOK_VarVerbose, TYPE_ONOFF, (void *)&verbose}, {TOK_VarShowmatch, TYPE_ONOFF, (void *)&show_match}, + {TOK_VarDumpHeaders, TYPE_ONOFF, (void *)&dump_headers}, {TOK_EOF,0,NULL} }; @@ -939,6 +943,9 @@ int ConfigInt(ConfigIntVar var) case CONFIG_SHOWMATCH: return show_match; + case CONFIG_DUMPHEADERS: + return dump_headers; + default: return 0; } |