diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-07 09:29:15 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-07 09:29:15 +0000 |
commit | b29fdc329252f18b7e126d0b5bca94e997f64de5 (patch) | |
tree | 997877c720e8be1f0911426986c6dc049804ed7b /mdoc_macro.c | |
parent | 8bb2d440353dfd8ea31fc13961be17f653478d0b (diff) | |
download | mandoc-b29fdc329252f18b7e126d0b5bca94e997f64de5.tar.gz |
Tabularised error-code lookup in mdoc.c.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index 87a0ddfb..9b3eb212 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -660,7 +660,7 @@ blk_exp_close(MACRO_PROT_ARGS) return(0); return(rew_expblock(mdoc, tok, line, ppos)); } - return(mdoc_perr(mdoc, line, ppos, ENOPARMS)); + return(mdoc_perr(mdoc, line, ppos, ENOLINE)); } if ( ! rew_subblock(MDOC_BODY, mdoc, tok, line, ppos)) @@ -1382,7 +1382,7 @@ phrase(struct mdoc *mdoc, int line, int ppos, char *buf) else if ('\\' != buf[i - 1]) break; if (0 == buf[i]) - return(mdoc_perr(mdoc, line, la, EQUOT)); + return(mdoc_perr(mdoc, line, la, EQUOTPHR)); quoted = 1; } else for ( ; buf[i]; i++) |