summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-06 18:32:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-06 18:32:19 +0000
commitcdd9965f2080354017315270cbc3dc2da6378df9 (patch)
treeabceb46c894355584ad94178001ebb10ff35db04 /man_term.c
parent2c5e2d1085930e82ce52bf9402182a0630e8f39d (diff)
downloadmandoc-cdd9965f2080354017315270cbc3dc2da6378df9.tar.gz
modernize style: "return" is not a function
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/man_term.c b/man_term.c
index 20d35794..655ba414 100644
--- a/man_term.c
+++ b/man_term.c
@@ -212,7 +212,7 @@ static int
pre_ign(DECL_ARGS)
{
- return(0);
+ return 0;
}
static int
@@ -220,7 +220,7 @@ pre_ll(DECL_ARGS)
{
term_setwidth(p, n->nchild ? n->child->string : NULL);
- return(0);
+ return 0;
}
static int
@@ -228,7 +228,7 @@ pre_I(DECL_ARGS)
{
term_fontrepl(p, TERMFONT_UNDER);
- return(1);
+ return 1;
}
static int
@@ -255,7 +255,7 @@ pre_literal(DECL_ARGS)
p->flags |= TERMP_NOSPACE;
}
- return(0);
+ return 0;
}
static int
@@ -266,12 +266,12 @@ pre_PD(DECL_ARGS)
n = n->child;
if (n == NULL) {
mt->pardist = 1;
- return(0);
+ return 0;
}
assert(n->type == ROFFT_TEXT);
if (a2roffsu(n->string, &su, SCALE_VS))
mt->pardist = term_vspan(p, &su);
- return(0);
+ return 0;
}
static int
@@ -325,7 +325,7 @@ pre_alternate(DECL_ARGS)
p->flags |= TERMP_NOSPACE;
}
- return(0);
+ return 0;
}
static int
@@ -333,7 +333,7 @@ pre_B(DECL_ARGS)
{
term_fontrepl(p, TERMFONT_BOLD);
- return(1);
+ return 1;
}
static int
@@ -355,7 +355,7 @@ pre_OP(DECL_ARGS)
term_fontrepl(p, TERMFONT_NONE);
p->flags |= TERMP_NOSPACE;
term_word(p, "]");
- return(0);
+ return 0;
}
static int
@@ -365,7 +365,7 @@ pre_ft(DECL_ARGS)
if (NULL == n->child) {
term_fontlast(p);
- return(0);
+ return 0;
}
cp = n->child->string;
@@ -395,7 +395,7 @@ pre_ft(DECL_ARGS)
default:
break;
}
- return(0);
+ return 0;
}
static int
@@ -410,7 +410,7 @@ pre_in(DECL_ARGS)
if (NULL == n->child) {
p->offset = mt->offset;
- return(0);
+ return 0;
}
cp = n->child->string;
@@ -424,7 +424,7 @@ pre_in(DECL_ARGS)
cp--;
if ( ! a2roffsu(++cp, &su, SCALE_EN))
- return(0);
+ return 0;
v = (term_hspan(p, &su) + 11) / 24;
@@ -437,7 +437,7 @@ pre_in(DECL_ARGS)
if (p->offset > SHRT_MAX)
p->offset = term_len(p, p->defindent);
- return(0);
+ return 0;
}
static int
@@ -458,7 +458,7 @@ pre_sp(DECL_ARGS)
/* FALLTHROUGH */
case MAN_P:
/* FALLTHROUGH */
- return(0);
+ return 0;
default:
break;
}
@@ -493,7 +493,7 @@ pre_sp(DECL_ARGS)
p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND);
}
- return(0);
+ return 0;
}
static int
@@ -506,11 +506,11 @@ pre_HP(DECL_ARGS)
switch (n->type) {
case ROFFT_BLOCK:
print_bvspace(p, n, mt->pardist);
- return(1);
+ return 1;
case ROFFT_BODY:
break;
default:
- return(0);
+ return 0;
}
if ( ! (MANT_LITERAL & mt->fl)) {
@@ -533,7 +533,7 @@ pre_HP(DECL_ARGS)
p->offset = mt->offset;
p->rmargin = mt->offset + len;
- return(1);
+ return 1;
}
static void
@@ -578,7 +578,7 @@ pre_PP(DECL_ARGS)
break;
}
- return(n->type != ROFFT_HEAD);
+ return n->type != ROFFT_HEAD;
}
static int
@@ -600,7 +600,7 @@ pre_IP(DECL_ARGS)
print_bvspace(p, n, mt->pardist);
/* FALLTHROUGH */
default:
- return(1);
+ return 1;
}
/* Calculate the offset from the optional second argument. */
@@ -630,7 +630,7 @@ pre_IP(DECL_ARGS)
if (savelit)
mt->fl |= MANT_LITERAL;
- return(0);
+ return 0;
case ROFFT_BODY:
p->offset = mt->offset + len;
p->rmargin = p->maxrmargin;
@@ -639,7 +639,7 @@ pre_IP(DECL_ARGS)
break;
}
- return(1);
+ return 1;
}
static void
@@ -681,7 +681,7 @@ pre_TP(DECL_ARGS)
print_bvspace(p, n, mt->pardist);
/* FALLTHROUGH */
default:
- return(1);
+ return 1;
}
/* Calculate offset. */
@@ -718,7 +718,7 @@ pre_TP(DECL_ARGS)
if (savelit)
mt->fl |= MANT_LITERAL;
- return(0);
+ return 0;
case ROFFT_BODY:
p->offset = mt->offset + len;
p->rmargin = p->maxrmargin;
@@ -729,7 +729,7 @@ pre_TP(DECL_ARGS)
break;
}
- return(1);
+ return 1;
}
static void
@@ -792,7 +792,7 @@ pre_SS(DECL_ARGS)
break;
}
- return(1);
+ return 1;
}
static void
@@ -853,7 +853,7 @@ pre_SH(DECL_ARGS)
break;
}
- return(1);
+ return 1;
}
static void
@@ -880,9 +880,9 @@ pre_RS(DECL_ARGS)
switch (n->type) {
case ROFFT_BLOCK:
term_newln(p);
- return(1);
+ return 1;
case ROFFT_HEAD:
- return(0);
+ return 0;
default:
break;
}
@@ -906,7 +906,7 @@ pre_RS(DECL_ARGS)
mt->lmargincur = mt->lmarginsz;
mt->lmargin[mt->lmargincur] = term_len(p, p->defindent);
- return(1);
+ return 1;
}
static void
@@ -934,7 +934,7 @@ static int
pre_UR(DECL_ARGS)
{
- return (n->type != ROFFT_HEAD);
+ return n->type != ROFFT_HEAD;
}
static void