aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-07 19:18:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-07 19:18:15 +0000
commite58e4d36d9b8a3ec3a09c28936eb9627f5f39485 (patch)
treebd6d771de91546dcfb85967eb7356decf3fde66b /man.c
parenta70595124021b19985ca649bfe1c53c913a5e414 (diff)
downloadmandoc-e58e4d36d9b8a3ec3a09c28936eb9627f5f39485.tar.gz
mandoc-e58e4d36d9b8a3ec3a09c28936eb9627f5f39485.tar.zst
mandoc-e58e4d36d9b8a3ec3a09c28936eb9627f5f39485.zip
Simplify man_unscope(), removing 18 lines of code, that is,
removing one function argument, one function definition, three function invocations and two pointless assert()s. No functional change.
Diffstat (limited to 'man.c')
-rw-r--r--man.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/man.c b/man.c
index 9f671a66..a2c99fe8 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.131 2014/07/06 19:09:00 schwarze Exp $ */
+/* $Id: man.c,v 1.132 2014/07/07 19:18:15 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -392,7 +392,7 @@ man_descope(struct man *man, int line, int offs)
if (MAN_ELINE & man->flags) {
man->flags &= ~MAN_ELINE;
- if ( ! man_unscope(man, man->last->parent, MANDOCERR_MAX))
+ if ( ! man_unscope(man, man->last->parent))
return(0);
}
@@ -400,7 +400,7 @@ man_descope(struct man *man, int line, int offs)
return(1);
man->flags &= ~MAN_BLINE;
- if ( ! man_unscope(man, man->last->parent, MANDOCERR_MAX))
+ if ( ! man_unscope(man, man->last->parent))
return(0);
return(man_body_alloc(man, line, offs, man->last->tok));
}
@@ -639,7 +639,7 @@ man_pmacro(struct man *man, int ln, char *buf, int offs)
assert(MAN_BLINE & man->flags);
man->flags &= ~MAN_BLINE;
- if ( ! man_unscope(man, man->last->parent, MANDOCERR_MAX))
+ if ( ! man_unscope(man, man->last->parent))
return(0);
return(man_body_alloc(man, ln, ppos, man->last->tok));