aboutsummaryrefslogtreecommitdiff
path: root/contrib/less/cvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/cvt.c')
-rw-r--r--contrib/less/cvt.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/contrib/less/cvt.c b/contrib/less/cvt.c
index 9cf44b894e7d..b9997ffbc7cb 100644
--- a/contrib/less/cvt.c
+++ b/contrib/less/cvt.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2021 Mark Nudelman
+ * Copyright (C) 1984-2023 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -19,10 +19,7 @@ extern int utf_mode;
/*
* Get the length of a buffer needed to convert a string.
*/
- public int
-cvt_length(len, ops)
- int len;
- int ops;
+public int cvt_length(int len, int ops)
{
if (utf_mode)
/*
@@ -37,9 +34,7 @@ cvt_length(len, ops)
/*
* Allocate a chpos array for use by cvt_text.
*/
- public int *
-cvt_alloc_chpos(len)
- int len;
+public int * cvt_alloc_chpos(int len)
{
int i;
int *chpos = (int *) ecalloc(sizeof(int), len);
@@ -54,13 +49,7 @@ cvt_alloc_chpos(len)
* Returns converted text in odst. The original offset of each
* odst character (when it was in osrc) is returned in the chpos array.
*/
- public void
-cvt_text(odst, osrc, chpos, lenp, ops)
- char *odst;
- char *osrc;
- int *chpos;
- int *lenp;
- int ops;
+public void cvt_text(char *odst, char *osrc, int *chpos, int *lenp, int ops)
{
char *dst;
char *edst = odst;