OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [format/] [format.h] - Diff between revs 298 and 384

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 384
/* Format checking tests: common header.  */
/* Format checking tests: common header.  */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
 
 
/* DONT_GNU_PROTOTYPE */
/* DONT_GNU_PROTOTYPE */
#if defined (_WIN32) && !defined (__CYGWIN__)
#if defined (_WIN32) && !defined (__CYGWIN__)
#if !defined (USE_SYSTEM_FORMATS)
#if !defined (USE_SYSTEM_FORMATS)
#define gnu_attr_printf gnu_printf
#define gnu_attr_printf gnu_printf
#define gnu_attr___printf__ __gnu_printf__
#define gnu_attr___printf__ __gnu_printf__
#define gnu_attr_scanf  gnu_scanf
#define gnu_attr_scanf  gnu_scanf
#define gnu_attr___scanf__ __gnu_scanf__
#define gnu_attr___scanf__ __gnu_scanf__
#define gnu_attr_strftime gnu_strftime
#define gnu_attr_strftime gnu_strftime
#define gnu_attr___strftime__ __gnu_strftime__
#define gnu_attr___strftime__ __gnu_strftime__
#endif
#endif
#endif
#endif
 
 
#ifndef gnu_attr_printf
#ifndef gnu_attr_printf
#define gnu_attr_printf printf
#define gnu_attr_printf printf
#define gnu_attr___printf__ __printf__
#define gnu_attr___printf__ __printf__
#define gnu_attr_scanf  scanf
#define gnu_attr_scanf  scanf
#define gnu_attr___scanf__ __scanf__
#define gnu_attr___scanf__ __scanf__
#define gnu_attr_strftime strftime
#define gnu_attr_strftime strftime
#define gnu_attr___strftime__ __strftime__
#define gnu_attr___strftime__ __strftime__
#endif
#endif
 
 
#if !defined (USE_SYSTEM_FORMATS)
#if !defined (USE_SYSTEM_FORMATS)
#define USE_PRINTF(FMTPOS, WILDARG) __attribute__((format(gnu_printf, FMTPOS, WILDARG))) __attribute__((nonnull (FMTPOS)))
#define USE_PRINTF(FMTPOS, WILDARG) __attribute__((format(gnu_printf, FMTPOS, WILDARG))) __attribute__((nonnull (FMTPOS)))
#define USE_SCANF(FMTPOS, WILDARG) __attribute__((format(gnu_scanf, FMTPOS, WILDARG))) __attribute__((nonnull (FMTPOS)))
#define USE_SCANF(FMTPOS, WILDARG) __attribute__((format(gnu_scanf, FMTPOS, WILDARG))) __attribute__((nonnull (FMTPOS)))
#define USE_STRFTIME(FMTPOS) __attribute__((__format__(gnu_strftime, FMTPOS, 0))) __attribute__((nonnull (FMTPOS)))
#define USE_STRFTIME(FMTPOS) __attribute__((__format__(gnu_strftime, FMTPOS, 0))) __attribute__((nonnull (FMTPOS)))
#else
#else
#define USE_PRINTF(FMTPOS, WILDARG)
#define USE_PRINTF(FMTPOS, WILDARG)
#define USE_SCANF(FMTPOS, WILDARG)
#define USE_SCANF(FMTPOS, WILDARG)
#define USE_STRFTIME(FMTPOS)
#define USE_STRFTIME(FMTPOS)
#endif
#endif
 
 
#include <stdarg.h>
#include <stdarg.h>
#include <stddef.h>
#include <stddef.h>
 
 
#ifndef _WINT_T
#ifndef _WINT_T
#ifndef __WINT_TYPE__
#ifndef __WINT_TYPE__
#define __WINT_TYPE__ unsigned int
#define __WINT_TYPE__ unsigned int
#endif
#endif
typedef __WINT_TYPE__ wint_t;
typedef __WINT_TYPE__ wint_t;
#endif
#endif
 
 
#ifdef _WIN64
#ifdef _WIN64
/* Kludges to get types corresponding to size_t and ptrdiff_t.  */
/* Kludges to get types corresponding to size_t and ptrdiff_t.  */
#define unsigned signed
#define unsigned signed
typedef signed int signed_size_t __attribute__ ((mode (DI)));
typedef signed int signed_size_t __attribute__ ((mode (DI)));
/* We also use this type to approximate ssize_t.  */
/* We also use this type to approximate ssize_t.  */
typedef signed int ssize_t __attribute__ ((mode (DI)));
typedef signed int ssize_t __attribute__ ((mode (DI)));
#undef unsigned
#undef unsigned
#define signed /* Type might or might not have explicit 'signed'.  */
#define signed /* Type might or might not have explicit 'signed'.  */
typedef unsigned int unsigned_ptrdiff_t __attribute__ ((mode (DI)));
typedef unsigned int unsigned_ptrdiff_t __attribute__ ((mode (DI)));
#undef signed
#undef signed
 
 
__extension__ typedef int llong  __attribute__ ((mode (DI)));
__extension__ typedef int llong  __attribute__ ((mode (DI)));
__extension__ typedef unsigned int ullong  __attribute__ ((mode (DI)));
__extension__ typedef unsigned int ullong  __attribute__ ((mode (DI)));
#else
#else
/* Kludges to get types corresponding to size_t and ptrdiff_t.  */
/* Kludges to get types corresponding to size_t and ptrdiff_t.  */
#define unsigned signed
#define unsigned signed
typedef __SIZE_TYPE__ signed_size_t;
typedef __SIZE_TYPE__ signed_size_t;
/* We also use this type to approximate ssize_t.  */
/* We also use this type to approximate ssize_t.  */
typedef __SIZE_TYPE__ ssize_t;
typedef __SIZE_TYPE__ ssize_t;
#undef unsigned
#undef unsigned
#define signed /* Type might or might not have explicit 'signed'.  */
#define signed /* Type might or might not have explicit 'signed'.  */
typedef unsigned __PTRDIFF_TYPE__ unsigned_ptrdiff_t;
typedef unsigned __PTRDIFF_TYPE__ unsigned_ptrdiff_t;
#undef signed
#undef signed
 
 
__extension__ typedef long long int llong;
__extension__ typedef long long int llong;
__extension__ typedef unsigned long long int ullong;
__extension__ typedef unsigned long long int ullong;
#endif
#endif
 
 
/* %q formats want a "quad"; GCC considers this to be a long long.  */
/* %q formats want a "quad"; GCC considers this to be a long long.  */
typedef llong quad_t;
typedef llong quad_t;
typedef ullong u_quad_t;
typedef ullong u_quad_t;
 
 
__extension__ typedef __INTMAX_TYPE__ intmax_t;
__extension__ typedef __INTMAX_TYPE__ intmax_t;
__extension__ typedef __UINTMAX_TYPE__ uintmax_t;
__extension__ typedef __UINTMAX_TYPE__ uintmax_t;
 
 
#if __STDC_VERSION__ < 199901L && !defined(restrict)
#if __STDC_VERSION__ < 199901L && !defined(restrict)
#define restrict /* "restrict" not in old C standard.  */
#define restrict /* "restrict" not in old C standard.  */
#endif
#endif
 
 
/* This may not be correct in the particular case, but allows the
/* This may not be correct in the particular case, but allows the
   prototypes to be declared, and we don't try to link.
   prototypes to be declared, and we don't try to link.
*/
*/
typedef struct _FILE FILE;
typedef struct _FILE FILE;
extern FILE *stdin;
extern FILE *stdin;
extern FILE *stdout;
extern FILE *stdout;
 
 
extern int fprintf (FILE *restrict, const char *restrict, ...);
extern int fprintf (FILE *restrict, const char *restrict, ...);
extern int printf (const char *restrict, ...);
extern int printf (const char *restrict, ...);
extern int fprintf_unlocked (FILE *restrict, const char *restrict, ...);
extern int fprintf_unlocked (FILE *restrict, const char *restrict, ...);
extern int printf_unlocked (const char *restrict, ...);
extern int printf_unlocked (const char *restrict, ...);
extern int sprintf (char *restrict, const char *restrict, ...);
extern int sprintf (char *restrict, const char *restrict, ...);
extern int vfprintf (FILE *restrict, const char *restrict, va_list);
extern int vfprintf (FILE *restrict, const char *restrict, va_list);
extern int vprintf (const char *restrict, va_list);
extern int vprintf (const char *restrict, va_list);
extern int vsprintf (char *restrict, const char *restrict, va_list);
extern int vsprintf (char *restrict, const char *restrict, va_list);
extern int snprintf (char *restrict, size_t, const char *restrict, ...);
extern int snprintf (char *restrict, size_t, const char *restrict, ...);
extern int vsnprintf (char *restrict, size_t, const char *restrict, va_list);
extern int vsnprintf (char *restrict, size_t, const char *restrict, va_list);
 
 
extern int fscanf (FILE *restrict, const char *restrict, ...);
extern int fscanf (FILE *restrict, const char *restrict, ...);
extern int scanf (const char *restrict, ...);
extern int scanf (const char *restrict, ...);
extern int sscanf (const char *restrict, const char *restrict, ...);
extern int sscanf (const char *restrict, const char *restrict, ...);
extern int vfscanf (FILE *restrict, const char *restrict, va_list);
extern int vfscanf (FILE *restrict, const char *restrict, va_list);
extern int vscanf (const char *restrict, va_list);
extern int vscanf (const char *restrict, va_list);
extern int vsscanf (const char *restrict, const char *restrict, va_list);
extern int vsscanf (const char *restrict, const char *restrict, va_list);
 
 
extern char *gettext (const char *);
extern char *gettext (const char *);
extern char *dgettext (const char *, const char *);
extern char *dgettext (const char *, const char *);
extern char *dcgettext (const char *, const char *, int);
extern char *dcgettext (const char *, const char *, int);
 
 
struct tm;
struct tm;
 
 
extern size_t strftime (char *restrict, size_t, const char *restrict,
extern size_t strftime (char *restrict, size_t, const char *restrict,
                        const struct tm *restrict);
                        const struct tm *restrict);
 
 
extern ssize_t strfmon (char *restrict, size_t, const char *restrict, ...);
extern ssize_t strfmon (char *restrict, size_t, const char *restrict, ...);
 
 
/* Mingw specific part.  */
/* Mingw specific part.  */
#if !defined (USE_SYSTEM_FORMATS) && defined(_WIN32) && !defined(DONT_GNU_PROTOTYPE)
#if !defined (USE_SYSTEM_FORMATS) && defined(_WIN32) && !defined(DONT_GNU_PROTOTYPE)
 
 
extern USE_PRINTF(2,3) int fprintf_gnu (FILE *restrict, const char *restrict, ...);
extern USE_PRINTF(2,3) int fprintf_gnu (FILE *restrict, const char *restrict, ...);
#undef fprintf
#undef fprintf
#define fprintf fprintf_gnu
#define fprintf fprintf_gnu
 
 
extern USE_PRINTF(1,2) int printf_gnu (const char *restrict, ...);
extern USE_PRINTF(1,2) int printf_gnu (const char *restrict, ...);
#undef printf
#undef printf
#define printf printf_gnu
#define printf printf_gnu
 
 
extern USE_PRINTF(2,3) int fprintf_unlocked_gnu (FILE *restrict, const char *restrict, ...);
extern USE_PRINTF(2,3) int fprintf_unlocked_gnu (FILE *restrict, const char *restrict, ...);
#undef fprintf_unlocked
#undef fprintf_unlocked
#define fprintf_unlocked fprintf_unlocked_gnu
#define fprintf_unlocked fprintf_unlocked_gnu
 
 
extern USE_PRINTF(1,2)int printf_unlocked_gnu (const char *restrict, ...);
extern USE_PRINTF(1,2)int printf_unlocked_gnu (const char *restrict, ...);
#undef printf_unlocked
#undef printf_unlocked
#define printf_unlocked printf_unlocked_gnu
#define printf_unlocked printf_unlocked_gnu
 
 
extern USE_PRINTF(2,3) int sprintf_gnu (char *restrict, const char *restrict, ...);
extern USE_PRINTF(2,3) int sprintf_gnu (char *restrict, const char *restrict, ...);
#undef sprintf
#undef sprintf
#define sprintf sprintf_gnu
#define sprintf sprintf_gnu
 
 
extern USE_PRINTF(2,0) int vfprintf_gnu (FILE *restrict, const char *restrict, va_list);
extern USE_PRINTF(2,0) int vfprintf_gnu (FILE *restrict, const char *restrict, va_list);
#undef vsprintf
#undef vsprintf
#define vsprintf vsprintf_gnu
#define vsprintf vsprintf_gnu
 
 
extern USE_PRINTF(1,0) int vprintf_gnu (const char *restrict, va_list);
extern USE_PRINTF(1,0) int vprintf_gnu (const char *restrict, va_list);
#undef vprintf
#undef vprintf
#define vprintf vprintf_gnu
#define vprintf vprintf_gnu
 
 
extern USE_PRINTF(2,0) int vsprintf_gnu (char *restrict, const char *restrict, va_list);
extern USE_PRINTF(2,0) int vsprintf_gnu (char *restrict, const char *restrict, va_list);
#undef vsprintf
#undef vsprintf
#define vsprintf vsprintf_gnu
#define vsprintf vsprintf_gnu
 
 
extern USE_PRINTF(3,4) int snprintf_gnu (char *restrict, size_t, const char *restrict, ...);
extern USE_PRINTF(3,4) int snprintf_gnu (char *restrict, size_t, const char *restrict, ...);
#undef snprintf
#undef snprintf
#define snprintf snprintf_gnu
#define snprintf snprintf_gnu
 
 
extern USE_PRINTF(3,0) int vsnprintf_gnu (char *restrict, size_t, const char *restrict, va_list);
extern USE_PRINTF(3,0) int vsnprintf_gnu (char *restrict, size_t, const char *restrict, va_list);
#undef vsnprintf
#undef vsnprintf
#define vsnprintf vsnprintf_gnu
#define vsnprintf vsnprintf_gnu
 
 
extern USE_SCANF(2,3) int fscanf_gnu (FILE *restrict, const char *restrict, ...);
extern USE_SCANF(2,3) int fscanf_gnu (FILE *restrict, const char *restrict, ...);
#undef fscanf
#undef fscanf
#define fscanf fscanf_gnu
#define fscanf fscanf_gnu
 
 
extern USE_SCANF(1,2) int scanf_gnu (const char *restrict, ...);
extern USE_SCANF(1,2) int scanf_gnu (const char *restrict, ...);
#undef scanf
#undef scanf
#define scanf scanf_gnu
#define scanf scanf_gnu
 
 
extern USE_SCANF(2,3) int sscanf_gnu (const char *restrict, const char *restrict, ...);
extern USE_SCANF(2,3) int sscanf_gnu (const char *restrict, const char *restrict, ...);
#undef sscanf
#undef sscanf
#define sscanf sscanf_gnu
#define sscanf sscanf_gnu
 
 
extern USE_SCANF(2,0) int vfscanf_gnu (FILE *restrict, const char *restrict, va_list);
extern USE_SCANF(2,0) int vfscanf_gnu (FILE *restrict, const char *restrict, va_list);
#undef vfscanf
#undef vfscanf
#define vfscanf vfscanf_gnu
#define vfscanf vfscanf_gnu
 
 
extern USE_SCANF(1,0) int vscanf_gnu (const char *restrict, va_list);
extern USE_SCANF(1,0) int vscanf_gnu (const char *restrict, va_list);
#undef vscanf
#undef vscanf
#define vscanf vscanf_gnu
#define vscanf vscanf_gnu
 
 
extern USE_SCANF(2,0) int vsscanf_gnu (const char *restrict, const char *restrict, va_list);
extern USE_SCANF(2,0) int vsscanf_gnu (const char *restrict, const char *restrict, va_list);
#undef vsscanf
#undef vsscanf
#define vsscanf vsscanf_gnu
#define vsscanf vsscanf_gnu
 
 
extern USE_STRFTIME(3) size_t strftime_gnu (char *restrict, size_t, const char *restrict,
extern USE_STRFTIME(3) size_t strftime_gnu (char *restrict, size_t, const char *restrict,
                        const struct tm *restrict);
                        const struct tm *restrict);
#undef strftime
#undef strftime
#define strftime strftime_gnu
#define strftime strftime_gnu
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.