summaryrefslogtreecommitdiffstatshomepage
path: root/man_macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-08-21 12:12:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-08-21 12:12:12 +0000
commit3c7b73a2f8774480e0df1984d751f9ead2c8c29d (patch)
tree846bc1f18a8cba7aab6f267663b62f33b0180bd5 /man_macro.c
parenta7382486c8399484becfa0fc2722457091759977 (diff)
downloadmandoc-3c7b73a2f8774480e0df1984d751f9ead2c8c29d.tar.gz
mandoc-3c7b73a2f8774480e0df1984d751f9ead2c8c29d.tar.zst
mandoc-3c7b73a2f8774480e0df1984d751f9ead2c8c29d.zip
Open explicit scope on libman exit now only generates warning.
Consecutive ELINE scopes are now pruned (with a warning).
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c5
1 files changed, 3 insertions, 2 deletions
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 <kristaps@kth.se>
*
@@ -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));