diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 19:18:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 19:18:15 +0000 |
commit | 71a6145d9952e8d6805013e811b83ccbbd56b508 (patch) | |
tree | 54e5d9da3e22415f2fc6e00c7f2f3ac1a939aaac /man.c | |
parent | c18d0f9e2a163f2a731c362f2e48833cbf72885d (diff) | |
download | mandoc-71a6145d9952e8d6805013e811b83ccbbd56b508.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); |