summaryrefslogtreecommitdiffstats
path: root/man_macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-19 16:38:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-19 16:38:48 +0000
commit28f9fee25bc0d8859b0400d14433644687182bfb (patch)
tree5dc36e4ffc02fad26843da2c5000a69caab6f42f /man_macro.c
parent0d4d66664cc5e466a53a90e48693b01d4f071cbc (diff)
downloadmandoc-28f9fee25bc0d8859b0400d14433644687182bfb.tar.gz
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.
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/man_macro.c b/man_macro.c
index cab56cf1..aff3fb00 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -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);
}