From e58e4d36d9b8a3ec3a09c28936eb9627f5f39485 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 7 Jul 2014 19:18:15 +0000 Subject: 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. --- man.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'man.c') 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 * Copyright (c) 2013, 2014 Ingo Schwarze @@ -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)); -- cgit v1.2.3