summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-26 15:44:51 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-26 15:44:51 +0000
commitb7ff5b7b497def7b9863be3bbb843b1ba67dcf0c (patch)
treeb8fb13ef76fc63a39cbce19479e5b345a3696a37 /main.c
parent6e68d3d4aa900bf9e03f073ed1c2369ed77708bf (diff)
downloadmandoc-b7ff5b7b497def7b9863be3bbb843b1ba67dcf0c.tar.gz
Merged patch to allow -fign-escape (thanks Joerg Sonnenberger).
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.c b/main.c
index 9161bb5a..2fa117ff 100644
--- a/main.c
+++ b/main.c
@@ -571,7 +571,7 @@ static int
foptions(int *fflags, char *arg)
{
char *v, *o;
- const char *toks[7];
+ const char *toks[8];
toks[0] = "ign-scope";
toks[1] = "no-ign-escape";
@@ -579,7 +579,8 @@ foptions(int *fflags, char *arg)
toks[3] = "no-ign-chars";
toks[4] = "ign-errors";
toks[5] = "strict";
- toks[6] = NULL;
+ toks[6] = "ign-escape";
+ toks[7] = NULL;
while (*arg) {
o = arg;
@@ -603,6 +604,9 @@ foptions(int *fflags, char *arg)
*fflags |= NO_IGN_ESCAPE |
NO_IGN_MACRO | NO_IGN_CHARS;
break;
+ case (6):
+ *fflags &= ~NO_IGN_ESCAPE;
+ break;
default:
warnx("bad argument: -f%s", o);
return(0);