diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-03 23:54:48 -0600 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 11:47:29 -0600 |
commit | 70ee6b17df9b055a05cdcc4d3fe1813d7b57e2d8 (patch) | |
tree | dca0744ad66ae0e81c8535303f58fca114b80f63 /newlib/libm/test | |
parent | 77f16db546d9c214f639d1ea84c58d99f9e4d282 (diff) | |
download | newlib-70ee6b17df9b055a05cdcc4d3fe1813d7b57e2d8.zip newlib-70ee6b17df9b055a05cdcc4d3fe1813d7b57e2d8.tar.gz newlib-70ee6b17df9b055a05cdcc4d3fe1813d7b57e2d8.tar.bz2 |
ansification: remove _EXFUN, _EXFUN_NOTHROW
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libm/test')
-rw-r--r-- | newlib/libm/test/convert.c | 2 | ||||
-rw-r--r-- | newlib/libm/test/math.c | 12 | ||||
-rw-r--r-- | newlib/libm/test/test.h | 28 |
3 files changed, 21 insertions, 21 deletions
diff --git a/newlib/libm/test/convert.c b/newlib/libm/test/convert.c index fe5bc0a..026bd27 100644 --- a/newlib/libm/test/convert.c +++ b/newlib/libm/test/convert.c @@ -49,7 +49,7 @@ test_atoff (void) static void -iterate (void _EXFUN((*func),(void)), +iterate (void (*func) (void), char *name) { diff --git a/newlib/libm/test/math.c b/newlib/libm/test/math.c index dda587a..0a6389a 100644 --- a/newlib/libm/test/math.c +++ b/newlib/libm/test/math.c @@ -263,7 +263,7 @@ run_vector_1 (int vector, if (strcmp(args,"dd")==0) { - typedef double _EXFUN((*pdblfunc),(double)); + typedef double (*pdblfunc) (double); /* Double function returning a double */ @@ -276,7 +276,7 @@ run_vector_1 (int vector, float arga; double a; - typedef float _EXFUN((*pdblfunc),(float)); + typedef float (*pdblfunc) (float); /* Double function returning a double */ @@ -289,7 +289,7 @@ run_vector_1 (int vector, } else if (strcmp(args,"ddd")==0) { - typedef double _EXFUN((*pdblfunc),(double,double)); + typedef double (*pdblfunc) (double,double); result = ((pdblfunc)(func))(arg1,arg2); finish(f, vector, result, p,args, name); @@ -301,7 +301,7 @@ run_vector_1 (int vector, float arga; float argb; - typedef float _EXFUN((*pdblfunc),(float,float)); + typedef float (*pdblfunc) (float,float); if (arg1 < FLT_MAX && arg2 < FLT_MAX) @@ -314,7 +314,7 @@ run_vector_1 (int vector, } else if (strcmp(args,"did")==0) { - typedef double _EXFUN((*pdblfunc),(int,double)); + typedef double (*pdblfunc) (int,double); result = ((pdblfunc)(func))((int)arg1,arg2); finish(f, vector, result, p,args, name); @@ -326,7 +326,7 @@ run_vector_1 (int vector, float arga; float argb; - typedef float _EXFUN((*pdblfunc),(int,float)); + typedef float (*pdblfunc) (int,float); if (arg1 < FLT_MAX && arg2 < FLT_MAX) diff --git a/newlib/libm/test/test.h b/newlib/libm/test/test.h index 440c385..e95c6b4 100644 --- a/newlib/libm/test/test.h +++ b/newlib/libm/test/test.h @@ -34,7 +34,7 @@ typedef struct #define MVEC_END 0,}; -int _EXFUN(mag_of_error,(double, double)); +int mag_of_error (double, double); #define ERROR_PERFECT 20 @@ -128,18 +128,18 @@ typedef struct } sprint_int_type; -void _EXFUN(test_ieee,(void)); -void _EXFUN(test_math2,(void)); -void _EXFUN(test_math,(void)); -void _EXFUN(test_string,(void)); -void _EXFUN(test_is,(void)); -void _EXFUN(test_cvt,(void)); +void test_ieee (void); +void test_math2 (void); +void test_math (void); +void test_string (void); +void test_is (void); +void test_cvt (void); -void _EXFUN(line,(int)); +void line (int); -void _EXFUN(test_mok, (double, double, int)); -void _EXFUN(test_iok, (int, int)); -void _EXFUN(test_eok, (int, int)); -void _EXFUN(test_sok, (char *, char*)); -void _EXFUN(test_scok, (char *, char*, int)); -void _EXFUN(newfunc,(const char *)); +void test_mok (double, double, int); +void test_iok (int, int); +void test_eok (int, int); +void test_sok (char *, char*); +void test_scok (char *, char*, int); +void newfunc (const char *); |