diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2003-02-11 20:43:41 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2003-02-11 20:43:41 +0000 |
commit | 2026dcf90abe91054e63d3556e0f33e098e08324 (patch) | |
tree | d97c9190e1ce019f9425f945169b3fc28892990f /gcc/fixinc/tests | |
parent | 22fd5743d9a6c0e283a69250011685e58dcc2993 (diff) | |
download | gcc-2026dcf90abe91054e63d3556e0f33e098e08324.zip gcc-2026dcf90abe91054e63d3556e0f33e098e08324.tar.gz gcc-2026dcf90abe91054e63d3556e0f33e098e08324.tar.bz2 |
inclhack.def (hpux_long_double, [...]): New hacks.
* inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
* fixincl.x: Rebuilt.
* tests/base/stdlib.h: Update.
* tests/base/ctype.h: New file.
From-SVN: r62718
Diffstat (limited to 'gcc/fixinc/tests')
-rw-r--r-- | gcc/fixinc/tests/base/ctype.h | 65 | ||||
-rw-r--r-- | gcc/fixinc/tests/base/stdlib.h | 6 |
2 files changed, 71 insertions, 0 deletions
diff --git a/gcc/fixinc/tests/base/ctype.h b/gcc/fixinc/tests/base/ctype.h new file mode 100644 index 0000000..deabd5e --- /dev/null +++ b/gcc/fixinc/tests/base/ctype.h @@ -0,0 +1,65 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/ctype.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( HPUX10_CTYPE_DECLARATIONS1_CHECK ) +#ifdef _PROTOTYPES +extern int __tolower(int); +extern int __toupper(int); +#else /* NOT _PROTOTYPES */ +extern int __tolower(); +extern int __toupper(); +#endif /* _PROTOTYPES */ + +# define _toupper(__c) __toupper(__c) + + +#endif /* HPUX10_CTYPE_DECLARATIONS1_CHECK */ + + +#if defined( HPUX10_CTYPE_DECLARATIONS2_CHECK ) +# if defined(_SB_CTYPE_MACROS) && !defined(__lint) + +#ifdef _PROTOTYPES + extern int _isalnum(int); + extern int _isalpha(int); + extern int _iscntrl(int); + extern int _isdigit(int); + extern int _isgraph(int); + extern int _islower(int); + extern int _isprint(int); + extern int _ispunct(int); + extern int _isspace(int); + extern int _isupper(int); + extern int _isxdigit(int); +# else /* not _PROTOTYPES */ + extern int _isalnum(); + extern int _isalpha(); + extern int _iscntrl(); + extern int _isdigit(); + extern int _isgraph(); + extern int _islower(); + extern int _isprint(); + extern int _ispunct(); + extern int _isspace(); + extern int _isupper(); + extern int _isxdigit(); +#endif /* _PROTOTYPES */ + + extern unsigned int *__SB_masks; + +#endif /* HPUX10_CTYPE_DECLARATIONS2_CHECK */ + + +#if defined( HPUX_CTYPE_MACROS_CHECK ) +: __SB_masks ? (int)__SB_masks[__alnum] & _ISCNTRL +# define isalpha(__c) (__SB_masks ? (int)__SB_masks[__c] & _IS + +#endif /* HPUX_CTYPE_MACROS_CHECK */ diff --git a/gcc/fixinc/tests/base/stdlib.h b/gcc/fixinc/tests/base/stdlib.h index 48f0043..7297a3a 100644 --- a/gcc/fixinc/tests/base/stdlib.h +++ b/gcc/fixinc/tests/base/stdlib.h @@ -14,6 +14,12 @@ #endif /* HPUX11_ABS_CHECK */ +#if defined( HPUX_LONG_DOUBLE_CHECK ) +extern long double strtold(const char *, char **); + +#endif /* HPUX_LONG_DOUBLE_CHECK */ + + #if defined( INT_ABORT_FREE_AND_EXIT_CHECK ) extern void abort(int); extern void free(void*); |