summaryrefslogtreecommitdiffstats
path: root/term_ascii.c
diff options
context:
space:
mode:
Diffstat (limited to 'term_ascii.c')
-rw-r--r--term_ascii.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/term_ascii.c b/term_ascii.c
index b715c17f..58969f03 100644
--- a/term_ascii.c
+++ b/term_ascii.c
@@ -115,28 +115,28 @@ ascii_init(enum termenc enc, const struct mchars *mchars,
if (outopts->synopsisonly)
p->synopsisonly = 1;
- return(p);
+ return p;
}
void *
ascii_alloc(const struct mchars *mchars, const struct manoutput *outopts)
{
- return(ascii_init(TERMENC_ASCII, mchars, outopts));
+ return ascii_init(TERMENC_ASCII, mchars, outopts);
}
void *
utf8_alloc(const struct mchars *mchars, const struct manoutput *outopts)
{
- return(ascii_init(TERMENC_UTF8, mchars, outopts));
+ return ascii_init(TERMENC_UTF8, mchars, outopts);
}
void *
locale_alloc(const struct mchars *mchars, const struct manoutput *outopts)
{
- return(ascii_init(TERMENC_LOCALE, mchars, outopts));
+ return ascii_init(TERMENC_LOCALE, mchars, outopts);
}
static void
@@ -176,7 +176,7 @@ static size_t
ascii_width(const struct termp *p, int c)
{
- return(1);
+ return 1;
}
void
@@ -261,7 +261,7 @@ ascii_hspan(const struct termp *p, const struct roffsu *su)
default:
abort();
}
- return(r > 0.0 ? r + 0.01 : r - 0.01);
+ return r > 0.0 ? r + 0.01 : r - 0.01;
}
const char *
@@ -336,8 +336,8 @@ ascii_uc2str(int uc)
assert(uc >= 0);
if ((size_t)uc < sizeof(tab)/sizeof(tab[0]))
- return(tab[uc]);
- return(mchars_uc2str(uc));
+ return tab[uc];
+ return mchars_uc2str(uc);
}
#if HAVE_WCHAR
@@ -351,7 +351,7 @@ locale_width(const struct termp *p, int c)
rc = wcwidth(c);
if (rc < 0)
rc = 0;
- return(rc);
+ return rc;
}
static void