From d6a2384f7d4afffa920faf2c8f8b7801f84669fe Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 5 Jul 2014 01:12:20 +0000 Subject: 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(). --- mandoc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mandoc.h') diff --git a/mandoc.h b/mandoc.h index 869c1e93..6ddb6b7f 100644 --- a/mandoc.h +++ b/mandoc.h @@ -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 * Copyright (c) 2010-2014 Ingo Schwarze @@ -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 */ -- cgit v1.2.3