diff of diff does not work well, so use expected test result files
From-SVN: r34270
This commit is contained in:
parent
54ae96de89
commit
26e903eefb
@ -1,3 +1,7 @@
|
||||
2000-05-30 Bruce Korb <bkorb@gnu.org>
|
||||
|
||||
* fixinc/tests/*: Added expected result files for fixinc's make check
|
||||
|
||||
2000-05-30 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* config/alpha/alpha.md (*setne_internal): Use match_operator
|
||||
|
5
gcc/fixinc/tests/base/X11/Intrinsic.h
Normal file
5
gcc/fixinc/tests/base/X11/Intrinsic.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( ARM_NORCROFT_HINT_CHECK )
|
||||
p_type mumble;
|
||||
#endif /* ARM_NORCROFT_HINT_CHECK */
|
12
gcc/fixinc/tests/base/X11/ShellP.h
Normal file
12
gcc/fixinc/tests/base/X11/ShellP.h
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
#if defined( X11_CLASS_CHECK )
|
||||
struct {
|
||||
#ifdef __cplusplus
|
||||
char *c_class;
|
||||
#else
|
||||
char *class;
|
||||
#endif
|
||||
} mumble;
|
||||
|
||||
#endif /* X11_CLASS_CHECK */
|
7
gcc/fixinc/tests/base/X11/Xmu.h
Normal file
7
gcc/fixinc/tests/base/X11/Xmu.h
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
#if defined( X11_SPRINTF_CHECK )
|
||||
#ifndef __STDC__
|
||||
extern char * sprintf();
|
||||
#endif /* !defined __STDC__ */
|
||||
#endif /* X11_SPRINTF_CHECK */
|
6
gcc/fixinc/tests/base/Xm/BaseClassI.h
Normal file
6
gcc/fixinc/tests/base/Xm/BaseClassI.h
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
#if defined( X11_CLASS_USAGE_CHECK )
|
||||
extern mumble (int c_class);
|
||||
|
||||
#endif /* X11_CLASS_USAGE_CHECK */
|
12
gcc/fixinc/tests/base/Xm/Traversal.h
Normal file
12
gcc/fixinc/tests/base/Xm/Traversal.h
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
#if defined( X11_NEW_CHECK )
|
||||
struct wedge {
|
||||
#ifdef __cplusplus
|
||||
Widget old, c_new;
|
||||
#else
|
||||
Widget old, new; /* fix the new */
|
||||
#endif
|
||||
};
|
||||
extern Wedged( Widget c_new, Widget old );
|
||||
#endif /* X11_NEW_CHECK */
|
5
gcc/fixinc/tests/base/ansi/math.h
Normal file
5
gcc/fixinc/tests/base/ansi/math.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( NEXT_MATH_PREFIX_CHECK )
|
||||
extern double mumble();
|
||||
#endif /* NEXT_MATH_PREFIX_CHECK */
|
5
gcc/fixinc/tests/base/ansi/stdlib.h
Normal file
5
gcc/fixinc/tests/base/ansi/stdlib.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( NEXT_VOLITILE_CHECK )
|
||||
extern void abort();
|
||||
#endif /* NEXT_VOLITILE_CHECK */
|
24
gcc/fixinc/tests/base/assert.h
Normal file
24
gcc/fixinc/tests/base/assert.h
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef FIXINC_BROKEN_ASSERT_STDLIB_CHECK
|
||||
#define FIXINC_BROKEN_ASSERT_STDLIB_CHECK 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#ifndef FIXINC_BROKEN_ASSERT_STDIO_CHECK
|
||||
#define FIXINC_BROKEN_ASSERT_STDIO_CHECK 1
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
#if defined( BROKEN_ASSERT_STDIO_CHECK )
|
||||
extern FILE* stderr;
|
||||
#endif /* BROKEN_ASSERT_STDIO_CHECK */
|
||||
|
||||
|
||||
#if defined( BROKEN_ASSERT_STDLIB_CHECK )
|
||||
extern void exit ( int );
|
||||
#endif /* BROKEN_ASSERT_STDLIB_CHECK */
|
||||
|
||||
#endif /* FIXINC_BROKEN_ASSERT_STDIO_CHECK */
|
||||
|
||||
#endif /* FIXINC_BROKEN_ASSERT_STDLIB_CHECK */
|
5
gcc/fixinc/tests/base/bsd/libc.h
Normal file
5
gcc/fixinc/tests/base/bsd/libc.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( NEXT_TEMPLATE_CHECK )
|
||||
extern mumble( char *); /* fix */
|
||||
#endif /* NEXT_TEMPLATE_CHECK */
|
11
gcc/fixinc/tests/base/c_asm.h
Normal file
11
gcc/fixinc/tests/base/c_asm.h
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
#if defined( DEC_INTERN_ASM_CHECK )
|
||||
#ifdef __DECC
|
||||
float fasm {
|
||||
... asm stuff ...
|
||||
};
|
||||
#pragma intrinsic( dasm )
|
||||
#endif
|
||||
/* END ASM TEST*/
|
||||
#endif /* DEC_INTERN_ASM_CHECK */
|
25
gcc/fixinc/tests/base/curses.h
Normal file
25
gcc/fixinc/tests/base/curses.h
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
#if defined( AVOID_BOOL_DEFINE_CHECK )
|
||||
#ifndef __cplusplus
|
||||
# define bool char
|
||||
#endif
|
||||
|
||||
#endif /* AVOID_BOOL_DEFINE_CHECK */
|
||||
|
||||
|
||||
#if defined( AVOID_BOOL_TYPE_CHECK )
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned int bool ; /* bool type */
|
||||
#endif
|
||||
#endif /* AVOID_BOOL_TYPE_CHECK */
|
||||
|
||||
|
||||
#if defined( BAD_STRUCT_TERM_CHECK )
|
||||
struct term;
|
||||
#endif /* BAD_STRUCT_TERM_CHECK */
|
||||
|
||||
|
||||
#if defined( LYNX_VOID_INT_CHECK )
|
||||
/* curses foiled again */
|
||||
#endif /* LYNX_VOID_INT_CHECK */
|
5
gcc/fixinc/tests/base/fcntl.h
Normal file
5
gcc/fixinc/tests/base/fcntl.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( LYNXOS_FCNTL_PROTO_CHECK )
|
||||
extern int fcntl(int, int, ...);
|
||||
#endif /* LYNXOS_FCNTL_PROTO_CHECK */
|
5
gcc/fixinc/tests/base/hsfs/hsfs_spec.h
Normal file
5
gcc/fixinc/tests/base/hsfs/hsfs_spec.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( SUN_BOGUS_IFDEF_CHECK )
|
||||
#if __i386__ || __vax__ || __sun4c__
|
||||
#endif /* SUN_BOGUS_IFDEF_CHECK */
|
6
gcc/fixinc/tests/base/inttypes.h
Normal file
6
gcc/fixinc/tests/base/inttypes.h
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
#if defined( HPUX11_UINT32_C_CHECK )
|
||||
#define CONCAT_U__(__c) __CONCAT__(__c,u)
|
||||
#define UINT32_C(__c) __CONCAT__(__c,ul)
|
||||
#endif /* HPUX11_UINT32_C_CHECK */
|
7
gcc/fixinc/tests/base/libgen.h
Normal file
7
gcc/fixinc/tests/base/libgen.h
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
#if defined( BAD_LVAL_CHECK )
|
||||
#pragma extern_prefix "_FOO"
|
||||
#define something _FOOsomething
|
||||
#define mumble _FOOmumble
|
||||
#endif /* BAD_LVAL_CHECK */
|
7
gcc/fixinc/tests/base/limits.h
Normal file
7
gcc/fixinc/tests/base/limits.h
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
#if defined( LIMITS_IFNDEFS_CHECK )
|
||||
#ifndef DBL_DIG
|
||||
# define DBL_DIG 0 /* somthin' */
|
||||
#endif
|
||||
#endif /* LIMITS_IFNDEFS_CHECK */
|
5
gcc/fixinc/tests/base/machine/ansi.h
Normal file
5
gcc/fixinc/tests/base/machine/ansi.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( MACHINE_ANSI_H_VA_LIST_CHECK )
|
||||
# define _BSD_VA_LIST_ __builtin_va_list
|
||||
#endif /* MACHINE_ANSI_H_VA_LIST_CHECK */
|
9
gcc/fixinc/tests/base/malloc.h
Normal file
9
gcc/fixinc/tests/base/malloc.h
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
#if defined( SUN_MALLOC_CHECK )
|
||||
typedef void * malloc_t;
|
||||
void free();
|
||||
void* malloc();
|
||||
void* calloc();
|
||||
void* realloc();
|
||||
#endif /* SUN_MALLOC_CHECK */
|
101
gcc/fixinc/tests/base/math.h
Normal file
101
gcc/fixinc/tests/base/math.h
Normal file
@ -0,0 +1,101 @@
|
||||
#ifndef FIXINC_SUNOS_MATHERR_DECL_CHECK
|
||||
#define FIXINC_SUNOS_MATHERR_DECL_CHECK 1
|
||||
|
||||
struct exception;
|
||||
#ifndef FIXINC_MATH_EXCEPTION_CHECK
|
||||
#define FIXINC_MATH_EXCEPTION_CHECK 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define exception __math_exception
|
||||
#endif
|
||||
|
||||
|
||||
#if defined( BROKEN_CABS_CHECK )
|
||||
#ifdef __STDC__
|
||||
|
||||
#else
|
||||
|
||||
#endif
|
||||
/* This is a comment
|
||||
and it ends here. */
|
||||
#endif /* BROKEN_CABS_CHECK */
|
||||
|
||||
|
||||
#if defined( FIX_HEADER_BREAKAGE_CHECK )
|
||||
extern double floor(), ceil(), fmod(), fabs _PARAMS((double));
|
||||
#endif /* FIX_HEADER_BREAKAGE_CHECK */
|
||||
|
||||
|
||||
#if defined( HPUX11_FABSF_CHECK )
|
||||
#ifdef _PA_RISC
|
||||
#ifndef __cplusplus
|
||||
# define fabsf(x) ((float)fabs((double)(float)(x)))
|
||||
#endif
|
||||
#endif
|
||||
#endif /* HPUX11_FABSF_CHECK */
|
||||
|
||||
|
||||
#if defined( HPUX8_BOGUS_INLINES_CHECK )
|
||||
extern "C" int abs(int);
|
||||
|
||||
#endif /* HPUX8_BOGUS_INLINES_CHECK */
|
||||
|
||||
|
||||
#if defined( ISC_FMOD_CHECK )
|
||||
extern double fmod(double, double);
|
||||
#endif /* ISC_FMOD_CHECK */
|
||||
|
||||
|
||||
#if defined( M88K_BAD_HYPOT_OPT_CHECK )
|
||||
extern double hypot();
|
||||
/* Workaround a stupid Motorola optimization if one
|
||||
of x or y is 0.0 and the other is negative! */
|
||||
#ifdef __STDC__
|
||||
static __inline__ double fake_hypot (double x, double y)
|
||||
#else
|
||||
static __inline__ double fake_hypot (x, y)
|
||||
double x, y;
|
||||
#endif
|
||||
{
|
||||
return fabs (hypot (x, y));
|
||||
}
|
||||
#define hypot fake_hypot
|
||||
#endif /* M88K_BAD_HYPOT_OPT_CHECK */
|
||||
|
||||
|
||||
#if defined( MATH_EXCEPTION_CHECK )
|
||||
typedef struct exception t_math_exception;
|
||||
#endif /* MATH_EXCEPTION_CHECK */
|
||||
|
||||
|
||||
#if defined( MATH_HUGE_VAL_IFNDEF_CHECK )
|
||||
#ifndef HUGE_VAL
|
||||
# define HUGE_VAL 3.4e+40
|
||||
#endif
|
||||
#endif /* MATH_HUGE_VAL_IFNDEF_CHECK */
|
||||
|
||||
|
||||
#if defined( RS6000_DOUBLE_CHECK )
|
||||
#ifndef __cplusplus
|
||||
extern int class();
|
||||
#endif
|
||||
#endif /* RS6000_DOUBLE_CHECK */
|
||||
|
||||
|
||||
#if defined( SUNOS_MATHERR_DECL_CHECK )
|
||||
extern int matherr();
|
||||
#endif /* SUNOS_MATHERR_DECL_CHECK */
|
||||
|
||||
|
||||
#if defined( SVR4__P_CHECK )
|
||||
#ifndef __P
|
||||
#define __P(a) a
|
||||
#endif
|
||||
#endif /* SVR4__P_CHECK */
|
||||
#ifdef __cplusplus
|
||||
#undef exception
|
||||
#endif
|
||||
|
||||
#endif /* FIXINC_MATH_EXCEPTION_CHECK */
|
||||
|
||||
#endif /* FIXINC_SUNOS_MATHERR_DECL_CHECK */
|
5
gcc/fixinc/tests/base/netdnet/dnetdb.h
Normal file
5
gcc/fixinc/tests/base/netdnet/dnetdb.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( NODEENT_SYNTAX_CHECK )
|
||||
char *na_addr ;
|
||||
#endif /* NODEENT_SYNTAX_CHECK */
|
10
gcc/fixinc/tests/base/netinet/ip.h
Normal file
10
gcc/fixinc/tests/base/netinet/ip.h
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
#if defined( IP_MISSING_SEMI_CHECK )
|
||||
struct mumble {
|
||||
union {
|
||||
int x;
|
||||
};
|
||||
}; /* mumbled struct */
|
||||
|
||||
#endif /* IP_MISSING_SEMI_CHECK */
|
9
gcc/fixinc/tests/base/pixrect/memvar.h
Normal file
9
gcc/fixinc/tests/base/pixrect/memvar.h
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
#if defined( SUN_CATMACRO_CHECK )
|
||||
#ifdef __STDC__
|
||||
# define CAT(a,b) a##b
|
||||
#else
|
||||
#define CAT(a,b) a/**/b
|
||||
#endif
|
||||
#endif /* SUN_CATMACRO_CHECK */
|
5
gcc/fixinc/tests/base/pthread.h
Normal file
5
gcc/fixinc/tests/base/pthread.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( PTHREAD_PAGE_SIZE_CHECK )
|
||||
extern int __page_size;
|
||||
#endif /* PTHREAD_PAGE_SIZE_CHECK */
|
11
gcc/fixinc/tests/base/reg_types.h
Normal file
11
gcc/fixinc/tests/base/reg_types.h
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
#if defined( OSF_NAMESPACE_A_CHECK )
|
||||
typedef struct {
|
||||
int stuff, mo_suff;
|
||||
} regex_t;
|
||||
extern __regex_t re;
|
||||
extern __regoff_t ro;
|
||||
extern __regmatch_t rm;
|
||||
|
||||
#endif /* OSF_NAMESPACE_A_CHECK */
|
8
gcc/fixinc/tests/base/regex.h
Normal file
8
gcc/fixinc/tests/base/regex.h
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
#if defined( OSF_NAMESPACE_C_CHECK )
|
||||
#include <reg_types.h>
|
||||
typedef __regex_t regex_t;
|
||||
typedef __regoff_t regoff_t;
|
||||
typedef __regmatch_t regmatch_t;
|
||||
#endif /* OSF_NAMESPACE_C_CHECK */
|
17
gcc/fixinc/tests/base/rpc/auth.h
Normal file
17
gcc/fixinc/tests/base/rpc/auth.h
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
#if defined( STRUCT_SOCKADDR_CHECK )
|
||||
struct sockaddr;
|
||||
extern AUTH* authdes_create( struct sockaddr* );
|
||||
#endif /* STRUCT_SOCKADDR_CHECK */
|
||||
|
||||
|
||||
#if defined( SUN_AUTH_PROTO_CHECK )
|
||||
struct auth_t {
|
||||
#ifdef __cplusplus
|
||||
int (*name)(...); /* C++ bad */
|
||||
#else
|
||||
int (*name)(); /* C++ bad */
|
||||
#endif
|
||||
};
|
||||
#endif /* SUN_AUTH_PROTO_CHECK */
|
5
gcc/fixinc/tests/base/rpc/rpc.h
Normal file
5
gcc/fixinc/tests/base/rpc/rpc.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( NESTED_AUTH_DES_CHECK )
|
||||
/*#include <rpc/auth_des.h> */ /* skip this */
|
||||
#endif /* NESTED_AUTH_DES_CHECK */
|
6
gcc/fixinc/tests/base/rpc/xdr.h
Normal file
6
gcc/fixinc/tests/base/rpc/xdr.h
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
#if defined( STRUCT_FILE_CHECK )
|
||||
struct __file_s;
|
||||
extern void xdrstdio_create( struct __file_s* );
|
||||
#endif /* STRUCT_FILE_CHECK */
|
7
gcc/fixinc/tests/base/rpcsvc/rstat.h
Normal file
7
gcc/fixinc/tests/base/rpcsvc/rstat.h
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
#if defined( STATSSWTCH_CHECK )
|
||||
struct statswtch {
|
||||
int boottime;
|
||||
};
|
||||
#endif /* STATSSWTCH_CHECK */
|
7
gcc/fixinc/tests/base/rpcsvc/rusers.h
Normal file
7
gcc/fixinc/tests/base/rpcsvc/rusers.h
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
#if defined( SUN_RUSERS_SEMI_CHECK )
|
||||
struct mumble
|
||||
int _cnt;
|
||||
};
|
||||
#endif /* SUN_RUSERS_SEMI_CHECK */
|
5
gcc/fixinc/tests/base/sparc/asm_linkage.h
Normal file
5
gcc/fixinc/tests/base/sparc/asm_linkage.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( KANDR_CONCAT_CHECK )
|
||||
#define __CONCAT__(a,b) a##b
|
||||
#endif /* KANDR_CONCAT_CHECK */
|
35
gcc/fixinc/tests/base/stdio.h
Normal file
35
gcc/fixinc/tests/base/stdio.h
Normal file
@ -0,0 +1,35 @@
|
||||
#ifndef FIXINC_STDIO_STDARG_H_CHECK
|
||||
#define FIXINC_STDIO_STDARG_H_CHECK 1
|
||||
|
||||
#define __need___va_list
|
||||
#include <stdarg.h>
|
||||
|
||||
|
||||
#if defined( ALPHA_GETOPT_CHECK )
|
||||
extern int getopt(int, char *const[], const char *);
|
||||
#endif /* ALPHA_GETOPT_CHECK */
|
||||
|
||||
|
||||
#if defined( ISC_OMITS_WITH_STDC_CHECK )
|
||||
#if !defined(_POSIX_SOURCE) /* ? ! */
|
||||
int foo;
|
||||
#endif
|
||||
#endif /* ISC_OMITS_WITH_STDC_CHECK */
|
||||
|
||||
|
||||
#if defined( READ_RET_TYPE_CHECK )
|
||||
extern unsigned int fread(), fwrite();
|
||||
extern int fclose(), fflush(), foo();
|
||||
#endif /* READ_RET_TYPE_CHECK */
|
||||
|
||||
|
||||
#if defined( RS6000_PARAM_CHECK )
|
||||
extern int rename(const char *_old, const char *_new);
|
||||
#endif /* RS6000_PARAM_CHECK */
|
||||
|
||||
|
||||
#if defined( STDIO_STDARG_H_CHECK )
|
||||
|
||||
#endif /* STDIO_STDARG_H_CHECK */
|
||||
|
||||
#endif /* FIXINC_STDIO_STDARG_H_CHECK */
|
40
gcc/fixinc/tests/base/stdlib.h
Normal file
40
gcc/fixinc/tests/base/stdlib.h
Normal file
@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
#if defined( ARM_WCHAR_CHECK )
|
||||
# ifndef _GCC_WCHAR_T /* we don't have wchar_t yet, ... */
|
||||
# define _GCC_WCHAR_T short
|
||||
# endif /* __wchar_t */
|
||||
#endif /* ARM_WCHAR_CHECK */
|
||||
|
||||
|
||||
#if defined( INT_ABORT_FREE_AND_EXIT_CHECK )
|
||||
extern void abort(int);
|
||||
extern void free(void*);
|
||||
extern void exit(void*);
|
||||
#endif /* INT_ABORT_FREE_AND_EXIT_CHECK */
|
||||
|
||||
|
||||
#if defined( NEWS_OS_RECURSION_CHECK )
|
||||
#ifdef BOGUS_RECURSION
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#endif /* NEWS_OS_RECURSION_CHECK */
|
||||
|
||||
|
||||
#if defined( SVR4_GETCWD_CHECK )
|
||||
extern char* getcwd(char *, size_t);
|
||||
#endif /* SVR4_GETCWD_CHECK */
|
||||
|
||||
|
||||
#if defined( SVR4_PROFIL_CHECK )
|
||||
profil(unsigned short *, size_t, int, unsigned int);
|
||||
#endif /* SVR4_PROFIL_CHECK */
|
||||
|
||||
|
||||
#if defined( SYSZ_STDLIB_FOR_SUN_CHECK )
|
||||
extern void * calloc(size_t);
|
||||
extern void * malloc(size_t);
|
||||
extern void * realloc(void*,size_t);
|
||||
extern void * bsearch(void*,size_t,size_t);
|
||||
|
||||
#endif /* SYSZ_STDLIB_FOR_SUN_CHECK */
|
5
gcc/fixinc/tests/base/strings.h
Normal file
5
gcc/fixinc/tests/base/strings.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( SUNOS_STRLEN_CHECK )
|
||||
__SIZE_TYPE__ strlen(); /* string length */
|
||||
#endif /* SUNOS_STRLEN_CHECK */
|
5
gcc/fixinc/tests/base/sundev/vuid_event.h
Normal file
5
gcc/fixinc/tests/base/sundev/vuid_event.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( BADQUOTE_CHECK )
|
||||
/* does not have matched single quotes */
|
||||
#endif /* BADQUOTE_CHECK */
|
7
gcc/fixinc/tests/base/sunwindow/win_lock.h
Normal file
7
gcc/fixinc/tests/base/sunwindow/win_lock.h
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
#if defined( ECD_CURSOR_CHECK )
|
||||
#ifdef ecd_cursor
|
||||
#error bogus
|
||||
#endif /* ecd+cursor */
|
||||
#endif /* ECD_CURSOR_CHECK */
|
7
gcc/fixinc/tests/base/sym.h
Normal file
7
gcc/fixinc/tests/base/sym.h
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
#if defined( ALPHA_PARENS_CHECK )
|
||||
#ifndef __mips64 /* bogus */
|
||||
extern int foo;
|
||||
#endif
|
||||
#endif /* ALPHA_PARENS_CHECK */
|
5
gcc/fixinc/tests/base/sys/asm.h
Normal file
5
gcc/fixinc/tests/base/sys/asm.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( IRIX_ASM_APOSTROPHE_CHECK )
|
||||
# and we are on vacation
|
||||
#endif /* IRIX_ASM_APOSTROPHE_CHECK */
|
5
gcc/fixinc/tests/base/sys/file.h
Normal file
5
gcc/fixinc/tests/base/sys/file.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( HP_SYSFILE_CHECK )
|
||||
extern void foo(struct file *, ...); /* HPUX_SOURCE - bad varargs */
|
||||
#endif /* HP_SYSFILE_CHECK */
|
8
gcc/fixinc/tests/base/sys/limits.h
Normal file
8
gcc/fixinc/tests/base/sys/limits.h
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
#if defined( NESTED_SYS_LIMITS_CHECK )
|
||||
/*
|
||||
#define CHILD_MAX 20 Max, Max, ... */ /*
|
||||
#define OPEN_MAX 20 Max, Max, ... */
|
||||
|
||||
#endif /* NESTED_SYS_LIMITS_CHECK */
|
16
gcc/fixinc/tests/base/sys/mman.h
Normal file
16
gcc/fixinc/tests/base/sys/mman.h
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef FIXINC_CXX_UNREADY_CHECK
|
||||
#define FIXINC_CXX_UNREADY_CHECK 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
#if defined( CXX_UNREADY_CHECK )
|
||||
extern void* malloc( size_t );
|
||||
#endif /* CXX_UNREADY_CHECK */
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* FIXINC_CXX_UNREADY_CHECK */
|
13
gcc/fixinc/tests/base/sys/param.h
Normal file
13
gcc/fixinc/tests/base/sys/param.h
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
#if defined( AUX_ASM_CHECK )
|
||||
#if !defined(NOINLINE) && !defined(__GNUC__) /* ain't got no inline, so we got it */
|
||||
#endif /* NOINLINE */
|
||||
#endif /* AUX_ASM_CHECK */
|
||||
|
||||
|
||||
#if defined( HPUX_MAXINT_CHECK )
|
||||
#ifndef MAXINT
|
||||
#define MAXINT 0x7FFFFFFF
|
||||
#endif
|
||||
#endif /* HPUX_MAXINT_CHECK */
|
14
gcc/fixinc/tests/base/sys/signal.h
Normal file
14
gcc/fixinc/tests/base/sys/signal.h
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
#if defined( AIX_VOLATILE_CHECK )
|
||||
typedef int sig_atomic_t;
|
||||
#endif /* AIX_VOLATILE_CHECK */
|
||||
|
||||
|
||||
#if defined( SUN_SIGNAL_CHECK )
|
||||
#ifdef __cplusplus
|
||||
void (*signal(...))(...);
|
||||
#else
|
||||
void (*signal())();
|
||||
#endif
|
||||
#endif /* SUN_SIGNAL_CHECK */
|
5
gcc/fixinc/tests/base/sys/spinlock.h
Normal file
5
gcc/fixinc/tests/base/sys/spinlock.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( HP_INLINE_CHECK )
|
||||
# include <machine/mumble.h>
|
||||
#endif /* HP_INLINE_CHECK */
|
39
gcc/fixinc/tests/base/sys/stat.h
Normal file
39
gcc/fixinc/tests/base/sys/stat.h
Normal file
@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
#if defined( M88K_BAD_S_IF_CHECK )
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) /* is regular? */
|
||||
#endif /* M88K_BAD_S_IF_CHECK */
|
||||
|
||||
|
||||
#if defined( RS6000_FCHMOD_CHECK )
|
||||
extern int fchmod(int, mode_t);
|
||||
#endif /* RS6000_FCHMOD_CHECK */
|
||||
|
||||
|
||||
#if defined( SCO_STATIC_FUNC_CHECK )
|
||||
#ifdef __STDC__
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
static int stat(const char *__f, struct stat *__p) {
|
||||
return __stat32(__f, __p);
|
||||
}
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
# else /* !__STDC__ */
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
static int stat(__f, __p)
|
||||
char *__f;
|
||||
struct stat *__p;
|
||||
{
|
||||
return __stat32(__f, __p);
|
||||
}
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif
|
||||
#endif /* SCO_STATIC_FUNC_CHECK */
|
28
gcc/fixinc/tests/base/sys/stdtypes.h
Normal file
28
gcc/fixinc/tests/base/sys/stdtypes.h
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
#if defined( SYSZ_STDTYPES_FOR_SUN_CHECK )
|
||||
#ifndef __SIZE_TYPE__
|
||||
#define __SIZE_TYPE__ long unsigned int
|
||||
#endif
|
||||
#ifndef _GCC_SIZE_T
|
||||
#define _GCC_SIZE_T
|
||||
typedef __SIZE_TYPE__ size_t; /* ??? */
|
||||
#endif
|
||||
#ifndef __PTRDIFF_TYPE__
|
||||
#define __PTRDIFF_TYPE__ long int
|
||||
#endif
|
||||
#ifndef _GCC_PTRDIFF_T
|
||||
#define _GCC_PTRDIFF_T
|
||||
typedef __PTRDIFF_TYPE__ ptrdiff_t; /* result of subtracting two pointers */
|
||||
#endif
|
||||
#ifndef __WCHAR_TYPE__
|
||||
#define __WCHAR_TYPE__ int
|
||||
#endif
|
||||
#ifndef __cplusplus
|
||||
#ifndef _GCC_WCHAR_T
|
||||
#define _GCC_WCHAR_T
|
||||
typedef __WCHAR_TYPE__ wchar_t; /* big enough for biggest char set */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* SYSZ_STDTYPES_FOR_SUN_CHECK */
|
5
gcc/fixinc/tests/base/sys/time.h
Normal file
5
gcc/fixinc/tests/base/sys/time.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( HPUX_SYSTIME_CHECK )
|
||||
struct sigevent;
|
||||
#endif /* HPUX_SYSTIME_CHECK */
|
5
gcc/fixinc/tests/base/sys/times.h
Normal file
5
gcc/fixinc/tests/base/sys/times.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( SCO_UTIME_CHECK )
|
||||
extern int utime(const char *, const struct utimbuf *);
|
||||
#endif /* SCO_UTIME_CHECK */
|
17
gcc/fixinc/tests/base/sys/types.h
Normal file
17
gcc/fixinc/tests/base/sys/types.h
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
#if defined( IRIX_MULTILINE_CMNT_CHECK )
|
||||
/* we check the type of the result */
|
||||
// /* of the sizeof something. This is a bad test :-( */
|
||||
#endif /* IRIX_MULTILINE_CMNT_CHECK */
|
||||
|
||||
|
||||
#if defined( SYSTYPES_STDLIB_SIZE_T_CHECK )
|
||||
#ifndef __SIZE_TYPE__
|
||||
#define __SIZE_TYPE__ long unsigned int
|
||||
#endif
|
||||
#ifndef _GCC_SIZE_T
|
||||
#define _GCC_SIZE_T
|
||||
typedef __SIZE_TYPE__ size_t; /* size of something */
|
||||
#endif
|
||||
#endif /* SYSTYPES_STDLIB_SIZE_T_CHECK */
|
13
gcc/fixinc/tests/base/sys/wait.h
Normal file
13
gcc/fixinc/tests/base/sys/wait.h
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
#if defined( AIX_SYSWAIT_CHECK )
|
||||
/* bos325, */
|
||||
struct rusage;
|
||||
extern pid_t wait3();
|
||||
/* pid_t wait3(int *, int, struct rusage *); */
|
||||
#endif /* AIX_SYSWAIT_CHECK */
|
||||
|
||||
|
||||
#if defined( NEXT_WAIT_UNION_CHECK )
|
||||
extern pid_d wait(void*);
|
||||
#endif /* NEXT_WAIT_UNION_CHECK */
|
50
gcc/fixinc/tests/base/testing.h
Normal file
50
gcc/fixinc/tests/base/testing.h
Normal file
@ -0,0 +1,50 @@
|
||||
|
||||
|
||||
#if defined( CTRL_QUOTES_DEF_CHECK )
|
||||
#define BSD43_CTRL(n, x) ((n<<8)+x)
|
||||
#define _CTRL(c) (c&037)
|
||||
#endif /* CTRL_QUOTES_DEF_CHECK */
|
||||
|
||||
|
||||
#if defined( CTRL_QUOTES_USE_CHECK )
|
||||
#define TCTRLFOO BSD43_CTRL('T', 1)
|
||||
#endif /* CTRL_QUOTES_USE_CHECK */
|
||||
|
||||
|
||||
#if defined( IO_QUOTES_DEF_CHECK )
|
||||
#define BSD43__IOWR(n, x) ((n<<8)+x)
|
||||
#define _IOWN(x,y,t) (_IOC_IN|(((t)&_IOCPARM_MASK)<<16)|(x<<8)|y)
|
||||
#define _IO(x,y) (x<<8|y)
|
||||
#endif /* IO_QUOTES_DEF_CHECK */
|
||||
|
||||
|
||||
#if defined( IO_QUOTES_USE_CHECK )
|
||||
#define TIOCFOO BSD43__IOWR('T', 1)
|
||||
#define TIOCFOO \
|
||||
BSD43__IOWR('T', 1) /* Some are multi-line */
|
||||
#endif /* IO_QUOTES_USE_CHECK */
|
||||
|
||||
|
||||
#if defined( MACHINE_NAME_CHECK )
|
||||
/* MACH_DIFF: */
|
||||
#if defined( __i386__ ) || defined( sparc ) || defined( vax )
|
||||
/* no uniform test, so be careful :-) */
|
||||
#endif /* MACHINE_NAME_CHECK */
|
||||
|
||||
|
||||
#if defined( SCO_STRICT_ANSI_CHECK )
|
||||
#if !defined(__STRICT_ANSI__) /* not standard C */
|
||||
int foo;
|
||||
#endif
|
||||
#endif /* SCO_STRICT_ANSI_CHECK */
|
||||
|
||||
|
||||
#if defined( UNDEFINE_NULL_CHECK )
|
||||
#ifndef NULL
|
||||
#define NULL 0UL
|
||||
#endif
|
||||
#ifndef NULL
|
||||
#define NULL ((void*)0)
|
||||
#endif
|
||||
|
||||
#endif /* UNDEFINE_NULL_CHECK */
|
15
gcc/fixinc/tests/base/time.h
Normal file
15
gcc/fixinc/tests/base/time.h
Normal file
@ -0,0 +1,15 @@
|
||||
#ifndef FIXINC_M88K_MULTI_INCL_CHECK
|
||||
#define FIXINC_M88K_MULTI_INCL_CHECK 1
|
||||
|
||||
|
||||
|
||||
#if defined( M88K_MULTI_INCL_CHECK )
|
||||
|
||||
#endif /* M88K_MULTI_INCL_CHECK */
|
||||
|
||||
|
||||
#if defined( VXWORKS_NEEDS_VXTYPES_CHECK )
|
||||
unsigned int _clocks_per_sec;
|
||||
#endif /* VXWORKS_NEEDS_VXTYPES_CHECK */
|
||||
|
||||
#endif /* FIXINC_M88K_MULTI_INCL_CHECK */
|
5
gcc/fixinc/tests/base/unistd.h
Normal file
5
gcc/fixinc/tests/base/unistd.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
#if defined( ALPHA_SBRK_CHECK )
|
||||
extern void *sbrk(ptrdiff_t increment);
|
||||
#endif /* ALPHA_SBRK_CHECK */
|
Loading…
Reference in New Issue
Block a user