From 33c39adb2b4cab7469a2d975f4437c5ea1906a51 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 19 Apr 2011 16:38:48 +0000 Subject: Clean up parsing of delimiters in -mdoc. First, remove the "dowarn" variable from mandoc_getarg() so that it prints the warning every time. Then, remove the warning from args_checkpunct(). This way, warnings are being posted at the correct time. This makes the flag argument to mdoc_zargs() superfluous, so make it be zero when it's invoked. Finally, move the args() flags into mdoc_argv.c and make them enums. --- roff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index 548e2f94..2029bd48 100644 --- a/roff.c +++ b/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.135 2011/04/17 09:08:19 kristaps Exp $ */ +/* $Id: roff.c,v 1.136 2011/04/19 16:38:48 kristaps Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -1238,7 +1238,7 @@ roff_userdef(ROFF_ARGS) cp = *bufp + pos; for (i = 0; i < 9; i++) arg[i] = '\0' == *cp ? "" : - mandoc_getarg(r->parse, &cp, ln, 1, &pos); + mandoc_getarg(r->parse, &cp, ln, &pos); /* * Expand macro arguments. -- cgit v1.2.3