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. --- man_macro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man_macro.c') diff --git a/man_macro.c b/man_macro.c index b4e26524..915648b4 100644 --- a/man_macro.c +++ b/man_macro.c @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.61 2011/04/17 09:08:19 kristaps Exp $ */ +/* $Id: man_macro.c,v 1.62 2011/04/19 16:38:48 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -484,6 +484,6 @@ man_args(struct man *m, int line, int *pos, char *buf, char **v) if ('\0' == *start) return(0); - *v = mandoc_getarg(m->parse, v, line, 1, pos); + *v = mandoc_getarg(m->parse, v, line, pos); return(1); } -- cgit v1.2.3