Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-12-04 06:00:43 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2018-01-17 20:47:19 +0300
commitfff27f84298c8ae64879e143b068c3b2e6a11ba4 (patch)
treeea8c19d26a3d39f1ccafc98098d45fae1897ec4c /newlib/libm
parent670b01da7f04f785df5bed9cd8e22076aa6166d5 (diff)
ansification: remove _DEFUN_VOID
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libm')
-rw-r--r--newlib/libm/test/convert.c32
-rw-r--r--newlib/libm/test/math.c2
-rw-r--r--newlib/libm/test/math2.c14
-rw-r--r--newlib/libm/test/test_ieee.c12
-rw-r--r--newlib/libm/test/test_is.c2
5 files changed, 31 insertions, 31 deletions
diff --git a/newlib/libm/test/convert.c b/newlib/libm/test/convert.c
index 8420cdec7..24188fa8b 100644
--- a/newlib/libm/test/convert.c
+++ b/newlib/libm/test/convert.c
@@ -13,7 +13,7 @@ extern double_type doubles[];
double_type *pd = doubles;
void
-_DEFUN_VOID(test_strtod)
+test_strtod (void)
{
char *tail;
double v;
@@ -24,7 +24,7 @@ _DEFUN_VOID(test_strtod)
}
void
-_DEFUN_VOID(test_strtof)
+test_strtof (void)
{
char *tail;
double v;
@@ -35,13 +35,13 @@ _DEFUN_VOID(test_strtof)
}
void
-_DEFUN_VOID(test_atof)
+test_atof (void)
{
test_mok(atof(pd->string), pd->value, 64);
}
void
-_DEFUN_VOID(test_atoff)
+test_atoff (void)
{
test_mok(atoff(pd->string), pd->value, 32);
}
@@ -101,7 +101,7 @@ _DEFUN(test_strtol_base,(base, pi, string),
}
void
-_DEFUN_VOID(test_strtol)
+test_strtol (void)
{
test_strtol_base(8,&(p->octal), p->string);
test_strtol_base(10,&(p->decimal), p->string);
@@ -111,14 +111,14 @@ _DEFUN_VOID(test_strtol)
}
void
-_DEFUN_VOID(test_atoi)
+test_atoi (void)
{
test_iok(atoi(p->string), p->decimal.value);
test_eok(errno, p->decimal.errno_val);
}
void
-_DEFUN_VOID(test_atol)
+test_atol (void)
{
test_iok(atol(p->string), p->decimal.value);
test_eok(errno, p->decimal.errno_val);
@@ -128,7 +128,7 @@ _DEFUN_VOID(test_atol)
extern ddouble_type ddoubles[];
ddouble_type *pdd;
void
-_DEFUN_VOID(test_ecvtbuf)
+test_ecvtbuf (void)
{
int a2,a3;
char *s;
@@ -140,7 +140,7 @@ _DEFUN_VOID(test_ecvtbuf)
}
void
-_DEFUN_VOID(test_ecvt)
+test_ecvt (void)
{
int a2,a3;
char *s;
@@ -158,7 +158,7 @@ _DEFUN_VOID(test_ecvt)
}
void
-_DEFUN_VOID(test_fcvtbuf)
+test_fcvtbuf (void)
{
int a2,a3;
char *s;
@@ -170,7 +170,7 @@ _DEFUN_VOID(test_fcvtbuf)
}
void
-_DEFUN_VOID(test_gcvt)
+test_gcvt (void)
{
char *s = gcvt(pdd->value, pdd->g1, buffer);
test_scok(s, pdd->gstring, 9);
@@ -181,7 +181,7 @@ _DEFUN_VOID(test_gcvt)
}
void
-_DEFUN_VOID(test_fcvt)
+test_fcvt (void)
{
int a2,a3;
char *sd;
@@ -223,7 +223,7 @@ _DEFUN(diterate,(func, name),
void
-_DEFUN_VOID(deltest)
+deltest (void)
{
newfunc("rounding");
line(1);
@@ -255,7 +255,7 @@ _DEFUN_VOID(deltest)
/* Most of what sprint does is tested with the tests of
fcvt/ecvt/gcvt, but here are some more */
void
-_DEFUN_VOID(test_sprint)
+test_sprint (void)
{
extern sprint_double_type sprint_doubles[];
sprint_double_type *s = sprint_doubles;
@@ -286,7 +286,7 @@ _DEFUN_VOID(test_sprint)
/* Scanf calls strtod etc tested elsewhere, but also has some pattern matching skills */
void
-_DEFUN_VOID(test_scan)
+test_scan (void)
{
int i,j;
extern sprint_double_type sprint_doubles[];
@@ -340,7 +340,7 @@ _DEFUN_VOID(test_scan)
}
void
-_DEFUN_VOID(test_cvt)
+test_cvt (void)
{
deltest();
diff --git a/newlib/libm/test/math.c b/newlib/libm/test/math.c
index 50b22223a..f58f64f79 100644
--- a/newlib/libm/test/math.c
+++ b/newlib/libm/test/math.c
@@ -354,7 +354,7 @@ _DEFUN(run_vector_1,(vector, p, func, name, args),
}
void
-_DEFUN_VOID(test_math)
+test_math (void)
{
test_acos(0);
test_acosf(0);
diff --git a/newlib/libm/test/math2.c b/newlib/libm/test/math2.c
index 50b537646..b7108de4a 100644
--- a/newlib/libm/test/math2.c
+++ b/newlib/libm/test/math2.c
@@ -4,14 +4,14 @@
int
-_DEFUN_VOID(randi)
+randi (void)
{
static int next;
next = (next * 1103515245) + 12345;
return ((next >> 16) & 0xffff);
}
-double _DEFUN_VOID(randx)
+double randx (void)
{
double res;
@@ -34,7 +34,7 @@ double _DEFUN_VOID(randx)
}
/* Return a random double, but bias for numbers closer to 0 */
-double _DEFUN_VOID(randy)
+double randy (void)
{
int pow;
double r= randx();
@@ -43,7 +43,7 @@ double _DEFUN_VOID(randy)
}
void
-_DEFUN_VOID(test_frexp)
+test_frexp (void)
{
int i;
double r;
@@ -131,7 +131,7 @@ _DEFUN_VOID(test_frexp)
*/
void
-_DEFUN_VOID(test_mod)
+test_mod (void)
{
int i;
@@ -176,7 +176,7 @@ _DEFUN_VOID(test_mod)
Test pow by multiplying logs
*/
void
-_DEFUN_VOID(test_pow)
+test_pow (void)
{
unsigned int i;
newfunc("pow");
@@ -224,7 +224,7 @@ _DEFUN_VOID(test_pow)
void
-_DEFUN_VOID(test_math2)
+test_math2 (void)
{
test_mod();
test_frexp();
diff --git a/newlib/libm/test/test_ieee.c b/newlib/libm/test/test_ieee.c
index 07c49418d..167a40c87 100644
--- a/newlib/libm/test/test_ieee.c
+++ b/newlib/libm/test/test_ieee.c
@@ -6,7 +6,7 @@
/* Test fp getround and fp setround */
void
-_DEFUN_VOID(test_getround)
+test_getround (void)
{
newfunc("fpgetround/fpsetround");
@@ -26,7 +26,7 @@ _DEFUN_VOID(test_getround)
/* And fpset/fpgetmask */
void
-_DEFUN_VOID(test_getmask)
+test_getmask (void)
{
newfunc("fpsetmask/fpgetmask");
line(1);
@@ -47,7 +47,7 @@ _DEFUN_VOID(test_getmask)
}
void
-_DEFUN_VOID(test_getsticky)
+test_getsticky (void)
{
newfunc("fpsetsticky/fpgetsticky");
line(1);
@@ -68,7 +68,7 @@ _DEFUN_VOID(test_getsticky)
}
void
-_DEFUN_VOID(test_getroundtoi)
+test_getroundtoi (void)
{
newfunc("fpsetroundtoi/fpgetroundtoi");
line(1);
@@ -105,7 +105,7 @@ double sub_rounded_down ;
double sub_rounded_up ;
double r1,r2,r3,r4;
void
-_DEFUN_VOID(test_round)
+test_round (void)
{
n = dnumber(0x40000000, 0x00000008); /* near 2 */
m = dnumber(0x40400000, 0x00000003); /* near 3.4 */
@@ -163,7 +163,7 @@ _DEFUN_VOID(test_round)
void
-_DEFUN_VOID(test_ieee)
+test_ieee (void)
{
fp_rnd old = fpgetround();
test_getround();
diff --git a/newlib/libm/test/test_is.c b/newlib/libm/test/test_is.c
index 39c15c10e..c4c8e2fdb 100644
--- a/newlib/libm/test/test_is.c
+++ b/newlib/libm/test/test_is.c
@@ -1993,7 +1993,7 @@ _DEFUN(test_to_set,(func, name, p, low, high),
#undef _toupper
void
-_DEFUN_VOID(test_is)
+test_is (void)
{
test_is_set(def_isalnum, "isalnum define", &myalnum);
test_is_set(def_isalpha, "isalpha define", &myalpha);