From 8e9114bbad5558ab9897a821bb84be85523126f5 Mon Sep 17 00:00:00 2001 From: Bruce Korb Date: Thu, 13 Jul 2000 14:51:14 +0000 Subject: [PATCH] fixinc test result changes From-SVN: r35013 --- gcc/fixinc/tests/base/arpa/inet.h | 4 ++++ gcc/fixinc/tests/base/math.h | 8 ++++++++ gcc/fixinc/tests/base/stdio.h | 5 +++++ gcc/fixinc/tests/base/sys/limits.h | 7 +++++++ gcc/fixinc/tests/base/sys/types.h | 25 +++++++++++++++++++++---- gcc/fixinc/tests/base/testing.h | 16 ++++++++++++++++ 6 files changed, 61 insertions(+), 4 deletions(-) create mode 100644 gcc/fixinc/tests/base/arpa/inet.h diff --git a/gcc/fixinc/tests/base/arpa/inet.h b/gcc/fixinc/tests/base/arpa/inet.h new file mode 100644 index 00000000000..28fb5827d3e --- /dev/null +++ b/gcc/fixinc/tests/base/arpa/inet.h @@ -0,0 +1,4 @@ + + +#if defined( UW7_BYTEORDER_FIX_CHECK ) +#endif /* UW7_BYTEORDER_FIX_CHECK */ diff --git a/gcc/fixinc/tests/base/math.h b/gcc/fixinc/tests/base/math.h index f71259b2404..5ab8602986f 100644 --- a/gcc/fixinc/tests/base/math.h +++ b/gcc/fixinc/tests/base/math.h @@ -68,6 +68,14 @@ typedef struct exception t_math_exception; #endif /* MATH_EXCEPTION_CHECK */ +#if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK ) + +#ifndef HUGE_VAL +#define HUGE_VAL 3.1415e+9 /* really big */ +#endif +#endif /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */ + + #if defined( MATH_HUGE_VAL_IFNDEF_CHECK ) #ifndef HUGE_VAL # define HUGE_VAL 3.4e+40 diff --git a/gcc/fixinc/tests/base/stdio.h b/gcc/fixinc/tests/base/stdio.h index 999ff4d92f3..799825ae050 100644 --- a/gcc/fixinc/tests/base/stdio.h +++ b/gcc/fixinc/tests/base/stdio.h @@ -33,6 +33,11 @@ extern int rename(const char *_old, const char *_new); #endif /* STDIO_STDARG_H_CHECK */ +#if defined( STDIO_DUMMY_VA_LIST_CHECK ) +extern void mumble( __gnuc_va_list); +#endif /* STDIO_DUMMY_VA_LIST_CHECK */ + + #if defined( ULTRIX_CONST_CHECK ) extern void perror( const char *__s ); extern int fputs( const char *__s, FILE *); diff --git a/gcc/fixinc/tests/base/sys/limits.h b/gcc/fixinc/tests/base/sys/limits.h index b9288baef03..af0c8409174 100644 --- a/gcc/fixinc/tests/base/sys/limits.h +++ b/gcc/fixinc/tests/base/sys/limits.h @@ -7,6 +7,13 @@ #endif /* LIMITS_IFNDEFS_CHECK */ +#if defined( NESTED_MOTOROLA_CHECK ) +#undef PIPE_BUF /* max # bytes atomic in write to a */ + /* PIPE */ +/*#define HUGE_VAL 3.9e+9 */ /*error value returned by Math lib*/ +#endif /* NESTED_MOTOROLA_CHECK */ + + #if defined( NESTED_SYS_LIMITS_CHECK ) /* #define CHILD_MAX 20 Max, Max, ... */ /* diff --git a/gcc/fixinc/tests/base/sys/types.h b/gcc/fixinc/tests/base/sys/types.h index fba880a49bf..bcbea5653cf 100644 --- a/gcc/fixinc/tests/base/sys/types.h +++ b/gcc/fixinc/tests/base/sys/types.h @@ -1,11 +1,28 @@ -#if defined( SYSTYPES_STDLIB_SIZE_T_CHECK ) +#if defined( GNU_TYPES_CHECK ) +#ifndef __PTRDIFF_TYPE__ +#define __PTRDIFF_TYPE__ long int +#endif +#if !defined(_GCC_PTRDIFF_T) +#define _GCC_PTRDIFF_T +typedef __PTRDIFF_TYPE__ ptrdiff_t; +#endif + /* long int */ #ifndef __SIZE_TYPE__ #define __SIZE_TYPE__ long unsigned int #endif -#ifndef _GCC_SIZE_T +#if !defined(_GCC_SIZE_T) #define _GCC_SIZE_T -typedef __SIZE_TYPE__ size_t; /* size of something */ +typedef __SIZE_TYPE__ size_t; #endif -#endif /* SYSTYPES_STDLIB_SIZE_T_CHECK */ + /* uint_t */ +#ifndef __WCHAR_TYPE__ +#define __WCHAR_TYPE__ int +#endif +#if !defined(_GCC_WCHAR_T) && !defined(__cplusplus) +#define _GCC_WCHAR_T +typedef __WCHAR_TYPE__ wchar_t; +#endif + /* ushort_t */ +#endif /* GNU_TYPES_CHECK */ diff --git a/gcc/fixinc/tests/base/testing.h b/gcc/fixinc/tests/base/testing.h index 29be91c2ab2..58bd7c649d2 100644 --- a/gcc/fixinc/tests/base/testing.h +++ b/gcc/fixinc/tests/base/testing.h @@ -43,6 +43,22 @@ int foo; #endif /* SCO_STRICT_ANSI_CHECK */ +#if defined( SYSV68_STRING_CHECK ) +extern unsigned int strlen(); +extern int ffs(int); +extern void + *memccpy(), + memcpy(); +extern int + strncmp(); +extern unsigned int + strlen(), + strspn(); +extern size_t + strlen(), strspn(); +#endif /* SYSV68_STRING_CHECK */ + + #if defined( UNDEFINE_NULL_CHECK ) #ifndef NULL #define NULL 0UL