diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 21:36:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 21:36:20 +0000 |
commit | 60f3ca299cfdd742129822cb1c94240fd2b245d8 (patch) | |
tree | c87cfb7758748e910eeccf93d630b027ed45bac0 /man.c | |
parent | e58e4d36d9b8a3ec3a09c28936eb9627f5f39485 (diff) | |
download | mandoc-60f3ca299cfdd742129822cb1c94240fd2b245d8.tar.gz mandoc-60f3ca299cfdd742129822cb1c94240fd2b245d8.tar.zst mandoc-60f3ca299cfdd742129822cb1c94240fd2b245d8.zip |
Clean up ERROR messages related to document structure and macros:
Hierarchical naming and mention macro names in messages.
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.132 2014/07/07 19:18:15 schwarze Exp $ */ +/* $Id: man.c,v 1.133 2014/07/07 21:36:20 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -542,7 +542,7 @@ man_pmacro(struct man *man, int ln, char *buf, int offs) if (MAN_NSCOPED & man_macros[n->tok].flags) n = n->parent; - mandoc_vmsg(MANDOCERR_LINESCOPE, man->parse, n->line, + mandoc_vmsg(MANDOCERR_BLK_LINE, man->parse, n->line, n->pos, "%s breaks %s", man_macronames[tok], man_macronames[n->tok]); @@ -573,7 +573,7 @@ man_pmacro(struct man *man, int ln, char *buf, int offs) assert(MAN_BLOCK == n->type); assert(MAN_SCOPED & man_macros[n->tok].flags); - mandoc_vmsg(MANDOCERR_LINESCOPE, man->parse, n->line, + mandoc_vmsg(MANDOCERR_BLK_LINE, man->parse, n->line, n->pos, "%s breaks %s", man_macronames[tok], man_macronames[n->tok]); |