stdio.in.h (bison-3.8.1.tar.xz) | : | stdio.in.h (bison-3.8.2.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 59 | skipping to change at line 59 | |||
/* Get va_list. Needed on many systems, including glibc 2.8. */ | /* Get va_list. Needed on many systems, including glibc 2.8. */ | |||
#include <stdarg.h> | #include <stdarg.h> | |||
#include <stddef.h> | #include <stddef.h> | |||
/* Get off_t and ssize_t. Needed on many systems, including glibc 2.8 | /* Get off_t and ssize_t. Needed on many systems, including glibc 2.8 | |||
and eglibc 2.11.2. | and eglibc 2.11.2. | |||
May also define off_t to a 64-bit type on native Windows. */ | May also define off_t to a 64-bit type on native Windows. */ | |||
#include <sys/types.h> | #include <sys/types.h> | |||
/* Solaris 10 and NetBSD 7.0 declare renameat in <unistd.h>, not in <stdio.h>. | ||||
*/ | ||||
/* But in any case avoid namespace pollution on glibc systems. */ | ||||
#if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && (defined __sun || define | ||||
d __NetBSD__) \ | ||||
&& ! defined __GLIBC__ | ||||
# include <unistd.h> | ||||
#endif | ||||
/* Android 4.3 declares renameat in <sys/stat.h>, not in <stdio.h>. */ | ||||
/* But in any case avoid namespace pollution on glibc systems. */ | ||||
#if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \ | ||||
&& ! defined __GLIBC__ | ||||
# include <sys/stat.h> | ||||
#endif | ||||
/* MSVC declares 'perror' in <stdlib.h>, not in <stdio.h>. We must include | ||||
it before we #define perror rpl_perror. */ | ||||
/* But in any case avoid namespace pollution on glibc systems. */ | ||||
#if (@GNULIB_PERROR@ || defined GNULIB_POSIXCHECK) \ | ||||
&& (defined _WIN32 && ! defined __CYGWIN__) \ | ||||
&& ! defined __GLIBC__ | ||||
# include <stdlib.h> | ||||
#endif | ||||
/* MSVC declares 'remove' in <io.h>, not in <stdio.h>. We must include | ||||
it before we #define remove rpl_remove. */ | ||||
/* MSVC declares 'rename' in <io.h>, not in <stdio.h>. We must include | ||||
it before we #define rename rpl_rename. */ | ||||
/* But in any case avoid namespace pollution on glibc systems. */ | ||||
#if (@GNULIB_REMOVE@ || @GNULIB_RENAME@ || defined GNULIB_POSIXCHECK) \ | ||||
&& (defined _WIN32 && ! defined __CYGWIN__) \ | ||||
&& ! defined __GLIBC__ | ||||
# include <io.h> | ||||
#endif | ||||
/* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers | ||||
that can be freed by passing them as the Ith argument to the | ||||
function F. */ | ||||
#ifndef _GL_ATTRIBUTE_DEALLOC | ||||
# if __GNUC__ >= 11 | ||||
# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) | ||||
# else | ||||
# define _GL_ATTRIBUTE_DEALLOC(f, i) | ||||
# endif | ||||
#endif | ||||
/* The __attribute__ feature is available in gcc versions 2.5 and later. | /* The __attribute__ feature is available in gcc versions 2.5 and later. | |||
The __-protected variants of the attributes 'format' and 'printf' are | The __-protected variants of the attributes 'format' and 'printf' are | |||
accepted by gcc versions 2.6.4 (effectively 2.7) and later. | accepted by gcc versions 2.6.4 (effectively 2.7) and later. | |||
We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because | We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because | |||
gnulib and libintl do '#define printf __printf__' when they override | gnulib and libintl do '#define printf __printf__' when they override | |||
the 'printf' function. */ | the 'printf' function. */ | |||
#ifndef _GL_ATTRIBUTE_FORMAT | #ifndef _GL_ATTRIBUTE_FORMAT | |||
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || defined __clang__ | # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || defined __clang__ | |||
# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) | # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) | |||
# else | # else | |||
skipping to change at line 130 | skipping to change at line 175 | |||
_GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) | _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) | |||
#endif | #endif | |||
/* _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_SCANF, | /* _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_SCANF, | |||
except that it indicates to GCC that the supported format string directives | except that it indicates to GCC that the supported format string directives | |||
are the ones of the system scanf(), rather than the ones standardized by | are the ones of the system scanf(), rather than the ones standardized by | |||
ISO C99 and POSIX. */ | ISO C99 and POSIX. */ | |||
#define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument ) \ | #define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument ) \ | |||
_GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) | _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) | |||
/* Solaris 10 and NetBSD 7.0 declare renameat in <unistd.h>, not in <stdio.h>. | ||||
*/ | ||||
/* But in any case avoid namespace pollution on glibc systems. */ | ||||
#if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && (defined __sun || define | ||||
d __NetBSD__) \ | ||||
&& ! defined __GLIBC__ | ||||
# include <unistd.h> | ||||
#endif | ||||
/* Android 4.3 declares renameat in <sys/stat.h>, not in <stdio.h>. */ | ||||
/* But in any case avoid namespace pollution on glibc systems. */ | ||||
#if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \ | ||||
&& ! defined __GLIBC__ | ||||
# include <sys/stat.h> | ||||
#endif | ||||
/* MSVC declares 'perror' in <stdlib.h>, not in <stdio.h>. We must include | ||||
it before we #define perror rpl_perror. */ | ||||
/* But in any case avoid namespace pollution on glibc systems. */ | ||||
#if (@GNULIB_PERROR@ || defined GNULIB_POSIXCHECK) \ | ||||
&& (defined _WIN32 && ! defined __CYGWIN__) \ | ||||
&& ! defined __GLIBC__ | ||||
# include <stdlib.h> | ||||
#endif | ||||
/* MSVC declares 'remove' in <io.h>, not in <stdio.h>. We must include | ||||
it before we #define remove rpl_remove. */ | ||||
/* MSVC declares 'rename' in <io.h>, not in <stdio.h>. We must include | ||||
it before we #define rename rpl_rename. */ | ||||
/* But in any case avoid namespace pollution on glibc systems. */ | ||||
#if (@GNULIB_REMOVE@ || @GNULIB_RENAME@ || defined GNULIB_POSIXCHECK) \ | ||||
&& (defined _WIN32 && ! defined __CYGWIN__) \ | ||||
&& ! defined __GLIBC__ | ||||
# include <io.h> | ||||
#endif | ||||
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ | |||
/* The definition of _GL_ARG_NONNULL is copied here. */ | /* The definition of _GL_ARG_NONNULL is copied here. */ | |||
/* The definition of _GL_WARN_ON_USE is copied here. */ | /* The definition of _GL_WARN_ON_USE is copied here. */ | |||
/* Macros for stringification. */ | /* Macros for stringification. */ | |||
#define _GL_STDIO_STRINGIZE(token) #token | #define _GL_STDIO_STRINGIZE(token) #token | |||
#define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) | #define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) | |||
End of changes. 2 change blocks. | ||||
36 lines changed or deleted | 47 lines changed or added |