From 3c7b73a2f8774480e0df1984d751f9ead2c8c29d Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 21 Aug 2009 12:12:12 +0000 Subject: Open explicit scope on libman exit now only generates warning. Consecutive ELINE scopes are now pruned (with a warning). --- man_macro.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'man_macro.c') diff --git a/man_macro.c b/man_macro.c index 0622d255..867e3e70 100644 --- a/man_macro.c +++ b/man_macro.c @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.25 2009/08/20 13:55:19 kristaps Exp $ */ +/* $Id: man_macro.c,v 1.26 2009/08/21 12:12:12 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -357,7 +357,8 @@ man_macroend(struct man *m) continue; if ( ! (MAN_EXPLICIT & man_macros[n->tok].flags)) continue; - return(man_nerr(m, n, WEXITSCOPE)); + if ( ! man_nwarn(m, n, WEXITSCOPE)) + return(0); } return(man_unscope(m, m->first)); -- cgit v1.2.3-56-ge451