summaryrefslogtreecommitdiffstats
path: root/mdoc_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 /mdoc_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 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index a6c1d91d..5fc88916 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -618,7 +618,7 @@ append_delims(struct mdoc *m, int line, int *pos, char *buf)
for (;;) {
la = *pos;
- ac = mdoc_zargs(m, line, pos, buf, ARGS_NOWARN, &p);
+ ac = mdoc_zargs(m, line, pos, buf, &p);
if (ARGS_ERROR == ac)
return(0);
@@ -1717,7 +1717,7 @@ phrase(struct mdoc *m, int line, int ppos, char *buf)
for (pos = ppos; ; ) {
la = pos;
- ac = mdoc_zargs(m, line, &pos, buf, 0, &p);
+ ac = mdoc_zargs(m, line, &pos, buf, &p);
if (ARGS_ERROR == ac)
return(0);
@@ -1762,7 +1762,7 @@ phrase_ta(MACRO_PROT_ARGS)
for (;;) {
la = *pos;
- ac = mdoc_zargs(m, line, pos, buf, 0, &p);
+ ac = mdoc_zargs(m, line, pos, buf, &p);
if (ARGS_ERROR == ac)
return(0);