diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-05 01:12:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-05 01:12:20 +0000 |
commit | d6a2384f7d4afffa920faf2c8f8b7801f84669fe (patch) | |
tree | bc65e001c7beac54494b8e0e27825c82d53c094e /mandoc.h | |
parent | 50b8b4d12d3828eef15079704fdc9586de75c7ef (diff) | |
download | mandoc-d6a2384f7d4afffa920faf2c8f8b7801f84669fe.tar.gz mandoc-d6a2384f7d4afffa920faf2c8f8b7801f84669fe.tar.zst mandoc-d6a2384f7d4afffa920faf2c8f8b7801f84669fe.zip |
Cleanup regarding -offset and -width:
* Bugfix: Last one wins, not first one.
* Fix .Bl -width without argument: it means 0n, so do not ignore it.
* Report macro names, argument names and fallbacks in related messages.
* Simplify: Garbage collect auxiliary variables in pre_bd() and pre_bl().
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.134 2014/07/04 16:12:08 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.135 2014/07/05 01:12:20 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -87,6 +87,7 @@ enum mandocerr { MANDOCERR_REQ_EMPTY, /* skipping empty request: request */ MANDOCERR_COND_EMPTY, /* conditional request controls empty scope */ MANDOCERR_MACRO_EMPTY, /* skipping empty macro: macro */ + MANDOCERR_ARG_EMPTY, /* empty argument, using 0n: macro arg */ MANDOCERR_ARGCWARN, /* argument count wrong */ MANDOCERR_BD_NOTYPE, /* missing display type, using -ragged */ MANDOCERR_BL_LATETYPE, /* list type is not the first argument: arg */ @@ -99,7 +100,7 @@ enum mandocerr { /* related to bad macro arguments */ MANDOCERR_IGNARGV, /* skipping argument */ - MANDOCERR_ARGVREP, /* duplicate argument */ + MANDOCERR_ARG_REP, /* duplicate argument: macro arg */ MANDOCERR_DISPREP, /* duplicate display type */ MANDOCERR_LISTREP, /* duplicate list type */ MANDOCERR_BADATT, /* unknown AT&T UNIX version */ |