diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-21 12:12:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-21 12:12:12 +0000 |
commit | 3c7b73a2f8774480e0df1984d751f9ead2c8c29d (patch) | |
tree | 846bc1f18a8cba7aab6f267663b62f33b0180bd5 /man_macro.c | |
parent | a7382486c8399484becfa0fc2722457091759977 (diff) | |
download | mandoc-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.c | 5 |
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)); |