From 8989a282f935eb563b274d90863d0b73ddb0a1f5 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 6 Apr 2010 17:01:27 +0000 Subject: Removed warning for `Er' when not used in certain sections (pointed out by Joerg Sonnenberger). --- mdoc.7 | 4 ++-- mdoc_validate.c | 13 ++----------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/mdoc.7 b/mdoc.7 index e3245300..1087e001 100644 --- a/mdoc.7 +++ b/mdoc.7 @@ -1,4 +1,4 @@ -.\" $Id: mdoc.7,v 1.89 2010/04/06 11:19:57 kristaps Exp $ +.\" $Id: mdoc.7,v 1.90 2010/04/06 17:01:27 kristaps Exp $ .\" .\" Copyright (c) 2009 Kristaps Dzonsons .\" @@ -1635,7 +1635,7 @@ Examples: .Ss \&En .Ss \&Eo .Ss \&Er -Error constants (suggested for use only in section two manuals). +Display error constants. .Pp Examples: .Bd -literal -offset indent diff --git a/mdoc_validate.c b/mdoc_validate.c index 0f28fa3c..03486978 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.66 2010/04/06 16:27:53 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.67 2010/04/06 17:01:27 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -102,7 +102,6 @@ static int pre_cd(PRE_ARGS); static int pre_dd(PRE_ARGS); static int pre_display(PRE_ARGS); static int pre_dt(PRE_ARGS); -static int pre_er(PRE_ARGS); static int pre_ex(PRE_ARGS); static int pre_fd(PRE_ARGS); static int pre_it(PRE_ARGS); @@ -142,7 +141,7 @@ static v_pre pres_cd[] = { pre_cd, NULL }; static v_pre pres_d1[] = { pre_display, NULL }; static v_pre pres_dd[] = { pre_dd, NULL }; static v_pre pres_dt[] = { pre_dt, NULL }; -static v_pre pres_er[] = { pre_er, NULL }; +static v_pre pres_er[] = { NULL, NULL }; static v_pre pres_ex[] = { pre_ex, NULL }; static v_pre pres_fd[] = { pre_fd, NULL }; static v_pre pres_it[] = { pre_it, NULL }; @@ -803,14 +802,6 @@ pre_ex(PRE_ARGS) } -static int -pre_er(PRE_ARGS) -{ - - return(check_msec(mdoc, n, 2, 3, 9, 0)); -} - - static int pre_cd(PRE_ARGS) { -- cgit v1.2.3