From e1871b9205c552a70c53e2a75a33b24c7c61a0e3 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 24 Nov 2008 16:39:04 +0000 Subject: =?UTF-8?q?2008-11-24=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * paranoia/paranoia.c: Add missing prototypes. --- testsuites/samples/paranoia/paranoia.c | 46 ++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'testsuites/samples/paranoia') diff --git a/testsuites/samples/paranoia/paranoia.c b/testsuites/samples/paranoia/paranoia.c index da03db6606..e5ad24a28c 100644 --- a/testsuites/samples/paranoia/paranoia.c +++ b/testsuites/samples/paranoia/paranoia.c @@ -153,10 +153,8 @@ #include #include - -#if defined(solaris2) #include -#endif +#include /* * To compile this on host using only libm from newlib (and using host libc) @@ -196,26 +194,29 @@ struct _reent *_impure_ptr = &libm_reent; #endif /* SINGLE_PRECISION */ jmp_buf ovfl_buf; -extern double fabs (), floor (), log (), pow (), sqrt (); -extern void exit (); -typedef void (*Sig_type) (); -FLOAT Sign (), Random (); -extern void BadCond (); -extern void SqXMinX (); -extern void TstCond (); -extern void notify (); +/* extern double fabs (), floor (), log (), pow (), sqrt (); */ +/* extern void exit (); */ +extern void _sigfpe(int); +typedef void (*Sig_type) (int); +FLOAT Sign (FLOAT), Random (void); +extern void BadCond (int, char*); +extern void SqXMinX (int); +extern void TstCond (int, int, char*); +extern void notify (char *); /* extern int read (); */ -extern void Characteristics (); -extern void Heading (); -extern void History (); -extern void Instructions (); -extern void IsYeqX (); -extern void NewD (); -extern void Pause (); -extern void PrintIfNPositive (); -extern void SR3750 (); -extern void SR3980 (); -extern void TstPtUf (); +extern void Characteristics (void); +extern void Heading (void); +extern void History (void); +extern void Instructions (void); +extern void IsYeqX (void); +extern void NewD (void); +extern void Pause (void); +extern void PrintIfNPositive (void); +extern void SR3750 (void); +extern void SR3980 (void); +extern void TstPtUf (void); + +void msglist(char**); Sig_type sigsave; @@ -340,6 +341,7 @@ int x; #ifdef NOMAIN #define main paranoia +int paranoia(int, char**); #endif int -- cgit v1.2.3