diff options
| author | Paul Eggert | 2011-05-29 14:52:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-29 14:52:18 -0700 |
| commit | 6a3e57bb546b094bfc8ec24a3ec63b2bd4496d65 (patch) | |
| tree | 7941b467caf44ec0c4297e4a6afb1b4ab3f0b9a0 /lib | |
| parent | e8cbec34e8ef069f54c1189a7b6109f768047be8 (diff) | |
| download | emacs-6a3e57bb546b094bfc8ec24a3ec63b2bd4496d65.tar.gz emacs-6a3e57bb546b094bfc8ec24a3ec63b2bd4496d65.zip | |
Adjust to recent gnulib change for @GUARD_PREFIX@.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/getopt.in.h | 10 | ||||
| -rw-r--r-- | lib/gnulib.mk | 29 | ||||
| -rw-r--r-- | lib/intprops.h | 7 | ||||
| -rw-r--r-- | lib/makefile.w32-in | 3 | ||||
| -rw-r--r-- | lib/stdarg.in.h | 10 | ||||
| -rw-r--r-- | lib/stddef.in.h | 14 | ||||
| -rw-r--r-- | lib/stdint.in.h | 12 | ||||
| -rw-r--r-- | lib/stdio.in.h | 10 | ||||
| -rw-r--r-- | lib/stdlib.in.h | 10 | ||||
| -rw-r--r-- | lib/sys_stat.in.h | 10 | ||||
| -rw-r--r-- | lib/time.in.h | 4 | ||||
| -rw-r--r-- | lib/unistd.in.h | 14 | ||||
| -rw-r--r-- | lib/verify.h | 11 |
13 files changed, 78 insertions, 66 deletions
diff --git a/lib/getopt.in.h b/lib/getopt.in.h index 82e2937d6d2..0f3918ab771 100644 --- a/lib/getopt.in.h +++ b/lib/getopt.in.h | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 18 | 18 | ||
| 19 | #ifndef _GL_GETOPT_H | 19 | #ifndef _@GUARD_PREFIX@_GETOPT_H |
| 20 | 20 | ||
| 21 | #if __GNUC__ >= 3 | 21 | #if __GNUC__ >= 3 |
| 22 | @PRAGMA_SYSTEM_HEADER@ | 22 | @PRAGMA_SYSTEM_HEADER@ |
| @@ -32,10 +32,10 @@ | |||
| 32 | # undef _GL_SYSTEM_GETOPT | 32 | # undef _GL_SYSTEM_GETOPT |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | #ifndef _GL_GETOPT_H | 35 | #ifndef _@GUARD_PREFIX@_GETOPT_H |
| 36 | 36 | ||
| 37 | #ifndef __need_getopt | 37 | #ifndef __need_getopt |
| 38 | # define _GL_GETOPT_H 1 | 38 | # define _@GUARD_PREFIX@_GETOPT_H 1 |
| 39 | #endif | 39 | #endif |
| 40 | 40 | ||
| 41 | /* Standalone applications should #define __GETOPT_PREFIX to an | 41 | /* Standalone applications should #define __GETOPT_PREFIX to an |
| @@ -249,5 +249,5 @@ extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv, | |||
| 249 | /* Make sure we later can get all the definitions and declarations. */ | 249 | /* Make sure we later can get all the definitions and declarations. */ |
| 250 | #undef __need_getopt | 250 | #undef __need_getopt |
| 251 | 251 | ||
| 252 | #endif /* getopt.h */ | 252 | #endif /* _@GUARD_PREFIX@_GETOPT_H */ |
| 253 | #endif /* getopt.h */ | 253 | #endif /* _@GUARD_PREFIX@_GETOPT_H */ |
diff --git a/lib/gnulib.mk b/lib/gnulib.mk index 2d18a073a49..40fbe663da7 100644 --- a/lib/gnulib.mk +++ b/lib/gnulib.mk | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | # the same distribution terms as the rest of that program. | 9 | # the same distribution terms as the rest of that program. |
| 10 | # | 10 | # |
| 11 | # Generated by gnulib-tool. | 11 | # Generated by gnulib-tool. |
| 12 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files careadlinkat crypto/md5 crypto/sha1 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen stdarg stdio strftime strtoumax symlink sys_stat | 12 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files careadlinkat crypto/md5 crypto/sha1 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen stdarg stdio strftime strtoumax symlink sys_stat |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | MOSTLYCLEANFILES += core *.stackdump | 15 | MOSTLYCLEANFILES += core *.stackdump |
| @@ -149,7 +149,8 @@ BUILT_SOURCES += $(GETOPT_H) | |||
| 149 | getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H) | 149 | getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H) |
| 150 | $(AM_V_GEN)rm -f $@-t $@ && \ | 150 | $(AM_V_GEN)rm -f $@-t $@ && \ |
| 151 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | 151 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
| 152 | sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ | 152 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ |
| 153 | -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ | ||
| 153 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | 154 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
| 154 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 155 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 155 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 156 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
| @@ -278,7 +279,8 @@ if GL_GENERATE_STDARG_H | |||
| 278 | stdarg.h: stdarg.in.h $(top_builddir)/config.status | 279 | stdarg.h: stdarg.in.h $(top_builddir)/config.status |
| 279 | $(AM_V_GEN)rm -f $@-t $@ && \ | 280 | $(AM_V_GEN)rm -f $@-t $@ && \ |
| 280 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | 281 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ |
| 281 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | 282 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ |
| 283 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 282 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 284 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 283 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 285 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
| 284 | -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ | 286 | -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ |
| @@ -328,7 +330,8 @@ if GL_GENERATE_STDDEF_H | |||
| 328 | stddef.h: stddef.in.h $(top_builddir)/config.status | 330 | stddef.h: stddef.in.h $(top_builddir)/config.status |
| 329 | $(AM_V_GEN)rm -f $@-t $@ && \ | 331 | $(AM_V_GEN)rm -f $@-t $@ && \ |
| 330 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | 332 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ |
| 331 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | 333 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ |
| 334 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 332 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 335 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 333 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 336 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
| 334 | -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ | 337 | -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ |
| @@ -357,7 +360,8 @@ if GL_GENERATE_STDINT_H | |||
| 357 | stdint.h: stdint.in.h $(top_builddir)/config.status | 360 | stdint.h: stdint.in.h $(top_builddir)/config.status |
| 358 | $(AM_V_GEN)rm -f $@-t $@ && \ | 361 | $(AM_V_GEN)rm -f $@-t $@ && \ |
| 359 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | 362 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
| 360 | sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ | 363 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ |
| 364 | -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ | ||
| 361 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | 365 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
| 362 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 366 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 363 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 367 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
| @@ -405,7 +409,8 @@ BUILT_SOURCES += stdio.h | |||
| 405 | stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | 409 | stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) |
| 406 | $(AM_V_GEN)rm -f $@-t $@ && \ | 410 | $(AM_V_GEN)rm -f $@-t $@ && \ |
| 407 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | 411 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ |
| 408 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | 412 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ |
| 413 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 409 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 414 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 410 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 415 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
| 411 | -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ | 416 | -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ |
| @@ -528,7 +533,8 @@ BUILT_SOURCES += stdlib.h | |||
| 528 | stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | 533 | stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) |
| 529 | $(AM_V_GEN)rm -f $@-t $@ && \ | 534 | $(AM_V_GEN)rm -f $@-t $@ && \ |
| 530 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | 535 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ |
| 531 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | 536 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ |
| 537 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 532 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 538 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 533 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 539 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
| 534 | -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ | 540 | -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ |
| @@ -656,7 +662,8 @@ sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU | |||
| 656 | $(AM_V_at)$(MKDIR_P) sys | 662 | $(AM_V_at)$(MKDIR_P) sys |
| 657 | $(AM_V_GEN)rm -f $@-t $@ && \ | 663 | $(AM_V_GEN)rm -f $@-t $@ && \ |
| 658 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | 664 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
| 659 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | 665 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ |
| 666 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 660 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 667 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 661 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 668 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
| 662 | -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ | 669 | -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ |
| @@ -714,7 +721,8 @@ BUILT_SOURCES += time.h | |||
| 714 | time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | 721 | time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) |
| 715 | $(AM_V_GEN)rm -f $@-t $@ && \ | 722 | $(AM_V_GEN)rm -f $@-t $@ && \ |
| 716 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | 723 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ |
| 717 | sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | 724 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ |
| 725 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 718 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 726 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 719 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 727 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
| 720 | -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ | 728 | -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ |
| @@ -764,7 +772,8 @@ BUILT_SOURCES += unistd.h | |||
| 764 | unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | 772 | unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) |
| 765 | $(AM_V_GEN)rm -f $@-t $@ && \ | 773 | $(AM_V_GEN)rm -f $@-t $@ && \ |
| 766 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | 774 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
| 767 | sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ | 775 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ |
| 776 | -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ | ||
| 768 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | 777 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
| 769 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 778 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 770 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 779 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
diff --git a/lib/intprops.h b/lib/intprops.h index d722648555b..1f6a539c183 100644 --- a/lib/intprops.h +++ b/lib/intprops.h | |||
| @@ -22,9 +22,8 @@ | |||
| 22 | 22 | ||
| 23 | #include <limits.h> | 23 | #include <limits.h> |
| 24 | 24 | ||
| 25 | /* Return a integer value, converted to the same type as the integer | 25 | /* Return an integer value, converted to the same type as the integer |
| 26 | expression E after integer type promotion. V is the unconverted value. | 26 | expression E after integer type promotion. V is the unconverted value. */ |
| 27 | E should not have side effects. */ | ||
| 28 | #define _GL_INT_CONVERT(e, v) (0 * (e) + (v)) | 27 | #define _GL_INT_CONVERT(e, v) (0 * (e) + (v)) |
| 29 | 28 | ||
| 30 | /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see | 29 | /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see |
| @@ -53,7 +52,7 @@ | |||
| 53 | #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) | 52 | #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) |
| 54 | 53 | ||
| 55 | /* Return 1 if the integer expression E, after integer promotion, has | 54 | /* Return 1 if the integer expression E, after integer promotion, has |
| 56 | a signed type. E should not have side effects. */ | 55 | a signed type. */ |
| 57 | #define _GL_INT_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) | 56 | #define _GL_INT_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) |
| 58 | 57 | ||
| 59 | 58 | ||
diff --git a/lib/makefile.w32-in b/lib/makefile.w32-in index 99eda065568..1f543f1bc21 100644 --- a/lib/makefile.w32-in +++ b/lib/makefile.w32-in | |||
| @@ -197,7 +197,8 @@ ARG_NONNULL_H = ../arg-nonnull.h | |||
| 197 | 197 | ||
| 198 | getopt_h: | 198 | getopt_h: |
| 199 | - $(DEL) getopt_.h-t getopt_.h | 199 | - $(DEL) getopt_.h-t getopt_.h |
| 200 | sed -e "s!@HAVE_GETOPT_H@!$(HAVE_GETOPT_H)!g" \ | 200 | sed -e "s!@GUARD_PREFIX@!GL!g" \ |
| 201 | -e "s!@HAVE_GETOPT_H@!$(HAVE_GETOPT_H)!g" \ | ||
| 201 | -e "s!@INCLUDE_NEXT@!$(INCLUDE_NEXT)!g" \ | 202 | -e "s!@INCLUDE_NEXT@!$(INCLUDE_NEXT)!g" \ |
| 202 | -e "s!@PRAGMA_SYSTEM_HEADER@!$(PRAGMA_SYSTEM_HEADER)!g" \ | 203 | -e "s!@PRAGMA_SYSTEM_HEADER@!$(PRAGMA_SYSTEM_HEADER)!g" \ |
| 203 | -e "s!@PRAGMA_COLUMNS@!$(PRAGMA_COLUMNS)!g" \ | 204 | -e "s!@PRAGMA_COLUMNS@!$(PRAGMA_COLUMNS)!g" \ |
diff --git a/lib/stdarg.in.h b/lib/stdarg.in.h index 4469d54e4f4..43f96070708 100644 --- a/lib/stdarg.in.h +++ b/lib/stdarg.in.h | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | along with this program; if not, write to the Free Software Foundation, | 15 | along with this program; if not, write to the Free Software Foundation, |
| 16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | 16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
| 17 | 17 | ||
| 18 | #ifndef _GL_STDARG_H | 18 | #ifndef _@GUARD_PREFIX@_STDARG_H |
| 19 | 19 | ||
| 20 | #if __GNUC__ >= 3 | 20 | #if __GNUC__ >= 3 |
| 21 | @PRAGMA_SYSTEM_HEADER@ | 21 | @PRAGMA_SYSTEM_HEADER@ |
| @@ -25,12 +25,12 @@ | |||
| 25 | /* The include_next requires a split double-inclusion guard. */ | 25 | /* The include_next requires a split double-inclusion guard. */ |
| 26 | #@INCLUDE_NEXT@ @NEXT_STDARG_H@ | 26 | #@INCLUDE_NEXT@ @NEXT_STDARG_H@ |
| 27 | 27 | ||
| 28 | #ifndef _GL_STDARG_H | 28 | #ifndef _@GUARD_PREFIX@_STDARG_H |
| 29 | #define _GL_STDARG_H | 29 | #define _@GUARD_PREFIX@_STDARG_H |
| 30 | 30 | ||
| 31 | #ifndef va_copy | 31 | #ifndef va_copy |
| 32 | # define va_copy(a,b) ((a) = (b)) | 32 | # define va_copy(a,b) ((a) = (b)) |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | #endif /* _GL_STDARG_H */ | 35 | #endif /* _@GUARD_PREFIX@_STDARG_H */ |
| 36 | #endif /* _GL_STDARG_H */ | 36 | #endif /* _@GUARD_PREFIX@_STDARG_H */ |
diff --git a/lib/stddef.in.h b/lib/stddef.in.h index 62a91a7a6a3..c7b98e7dcc5 100644 --- a/lib/stddef.in.h +++ b/lib/stddef.in.h | |||
| @@ -38,9 +38,9 @@ | |||
| 38 | remember if special invocation has ever been used to obtain wint_t, | 38 | remember if special invocation has ever been used to obtain wint_t, |
| 39 | in which case we need to clean up NULL yet again. */ | 39 | in which case we need to clean up NULL yet again. */ |
| 40 | 40 | ||
| 41 | # if !(defined _GL_STDDEF_H && defined _GL_STDDEF_WINT_T) | 41 | # if !(defined _@GUARD_PREFIX@_STDDEF_H && defined _GL_STDDEF_WINT_T) |
| 42 | # ifdef __need_wint_t | 42 | # ifdef __need_wint_t |
| 43 | # undef _GL_STDDEF_H | 43 | # undef _@GUARD_PREFIX@_STDDEF_H |
| 44 | # define _GL_STDDEF_WINT_T | 44 | # define _GL_STDDEF_WINT_T |
| 45 | # endif | 45 | # endif |
| 46 | # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ | 46 | # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ |
| @@ -49,14 +49,14 @@ | |||
| 49 | #else | 49 | #else |
| 50 | /* Normal invocation convention. */ | 50 | /* Normal invocation convention. */ |
| 51 | 51 | ||
| 52 | # ifndef _GL_STDDEF_H | 52 | # ifndef _@GUARD_PREFIX@_STDDEF_H |
| 53 | 53 | ||
| 54 | /* The include_next requires a split double-inclusion guard. */ | 54 | /* The include_next requires a split double-inclusion guard. */ |
| 55 | 55 | ||
| 56 | # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ | 56 | # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ |
| 57 | 57 | ||
| 58 | # ifndef _GL_STDDEF_H | 58 | # ifndef _@GUARD_PREFIX@_STDDEF_H |
| 59 | # define _GL_STDDEF_H | 59 | # define _@GUARD_PREFIX@_STDDEF_H |
| 60 | 60 | ||
| 61 | /* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */ | 61 | /* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */ |
| 62 | #if @REPLACE_NULL@ | 62 | #if @REPLACE_NULL@ |
| @@ -82,6 +82,6 @@ | |||
| 82 | # define wchar_t int | 82 | # define wchar_t int |
| 83 | #endif | 83 | #endif |
| 84 | 84 | ||
| 85 | # endif /* _GL_STDDEF_H */ | 85 | # endif /* _@GUARD_PREFIX@_STDDEF_H */ |
| 86 | # endif /* _GL_STDDEF_H */ | 86 | # endif /* _@GUARD_PREFIX@_STDDEF_H */ |
| 87 | #endif /* __need_XXX */ | 87 | #endif /* __need_XXX */ |
diff --git a/lib/stdint.in.h b/lib/stdint.in.h index 376b96a785d..09ac138b851 100644 --- a/lib/stdint.in.h +++ b/lib/stdint.in.h | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | * <http://www.opengroup.org/susv3xbd/stdint.h.html> | 21 | * <http://www.opengroup.org/susv3xbd/stdint.h.html> |
| 22 | */ | 22 | */ |
| 23 | 23 | ||
| 24 | #ifndef _GL_STDINT_H | 24 | #ifndef _@GUARD_PREFIX@_STDINT_H |
| 25 | 25 | ||
| 26 | #if __GNUC__ >= 3 | 26 | #if __GNUC__ >= 3 |
| 27 | @PRAGMA_SYSTEM_HEADER@ | 27 | @PRAGMA_SYSTEM_HEADER@ |
| @@ -52,13 +52,13 @@ | |||
| 52 | /* Other systems may have an incomplete or buggy <stdint.h>. | 52 | /* Other systems may have an incomplete or buggy <stdint.h>. |
| 53 | Include it before <inttypes.h>, since any "#include <stdint.h>" | 53 | Include it before <inttypes.h>, since any "#include <stdint.h>" |
| 54 | in <inttypes.h> would reinclude us, skipping our contents because | 54 | in <inttypes.h> would reinclude us, skipping our contents because |
| 55 | _GL_STDINT_H is defined. | 55 | _@GUARD_PREFIX@_STDINT_H is defined. |
| 56 | The include_next requires a split double-inclusion guard. */ | 56 | The include_next requires a split double-inclusion guard. */ |
| 57 | # @INCLUDE_NEXT@ @NEXT_STDINT_H@ | 57 | # @INCLUDE_NEXT@ @NEXT_STDINT_H@ |
| 58 | #endif | 58 | #endif |
| 59 | 59 | ||
| 60 | #if ! defined _GL_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H | 60 | #if ! defined _@GUARD_PREFIX@_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H |
| 61 | #define _GL_STDINT_H | 61 | #define _@GUARD_PREFIX@_STDINT_H |
| 62 | 62 | ||
| 63 | /* <sys/types.h> defines some of the stdint.h types as well, on glibc, | 63 | /* <sys/types.h> defines some of the stdint.h types as well, on glibc, |
| 64 | IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>). | 64 | IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>). |
| @@ -588,5 +588,5 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) | |||
| 588 | 588 | ||
| 589 | #endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */ | 589 | #endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */ |
| 590 | 590 | ||
| 591 | #endif /* _GL_STDINT_H */ | 591 | #endif /* _@GUARD_PREFIX@_STDINT_H */ |
| 592 | #endif /* !defined _GL_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */ | 592 | #endif /* !defined _@GUARD_PREFIX@_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */ |
diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 0b85d0c28cc..81d3d71842c 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | #else | 35 | #else |
| 36 | /* Normal invocation convention. */ | 36 | /* Normal invocation convention. */ |
| 37 | 37 | ||
| 38 | #ifndef _GL_STDIO_H | 38 | #ifndef _@GUARD_PREFIX@_STDIO_H |
| 39 | 39 | ||
| 40 | #define _GL_ALREADY_INCLUDING_STDIO_H | 40 | #define _GL_ALREADY_INCLUDING_STDIO_H |
| 41 | 41 | ||
| @@ -44,8 +44,8 @@ | |||
| 44 | 44 | ||
| 45 | #undef _GL_ALREADY_INCLUDING_STDIO_H | 45 | #undef _GL_ALREADY_INCLUDING_STDIO_H |
| 46 | 46 | ||
| 47 | #ifndef _GL_STDIO_H | 47 | #ifndef _@GUARD_PREFIX@_STDIO_H |
| 48 | #define _GL_STDIO_H | 48 | #define _@GUARD_PREFIX@_STDIO_H |
| 49 | 49 | ||
| 50 | /* Get va_list. Needed on many systems, including glibc 2.8. */ | 50 | /* Get va_list. Needed on many systems, including glibc 2.8. */ |
| 51 | #include <stdarg.h> | 51 | #include <stdarg.h> |
| @@ -1345,6 +1345,6 @@ _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " | |||
| 1345 | #endif | 1345 | #endif |
| 1346 | 1346 | ||
| 1347 | 1347 | ||
| 1348 | #endif /* _GL_STDIO_H */ | 1348 | #endif /* _@GUARD_PREFIX@_STDIO_H */ |
| 1349 | #endif /* _GL_STDIO_H */ | 1349 | #endif /* _@GUARD_PREFIX@_STDIO_H */ |
| 1350 | #endif | 1350 | #endif |
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 7513553b672..62a2ce920e6 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -28,13 +28,13 @@ | |||
| 28 | #else | 28 | #else |
| 29 | /* Normal invocation convention. */ | 29 | /* Normal invocation convention. */ |
| 30 | 30 | ||
| 31 | #ifndef _GL_STDLIB_H | 31 | #ifndef _@GUARD_PREFIX@_STDLIB_H |
| 32 | 32 | ||
| 33 | /* The include_next requires a split double-inclusion guard. */ | 33 | /* The include_next requires a split double-inclusion guard. */ |
| 34 | #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ | 34 | #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ |
| 35 | 35 | ||
| 36 | #ifndef _GL_STDLIB_H | 36 | #ifndef _@GUARD_PREFIX@_STDLIB_H |
| 37 | #define _GL_STDLIB_H | 37 | #define _@GUARD_PREFIX@_STDLIB_H |
| 38 | 38 | ||
| 39 | /* NetBSD 5.0 mis-defines NULL. */ | 39 | /* NetBSD 5.0 mis-defines NULL. */ |
| 40 | #include <stddef.h> | 40 | #include <stddef.h> |
| @@ -761,6 +761,6 @@ _GL_CXXALIASWARN (wctomb); | |||
| 761 | #endif | 761 | #endif |
| 762 | 762 | ||
| 763 | 763 | ||
| 764 | #endif /* _GL_STDLIB_H */ | 764 | #endif /* _@GUARD_PREFIX@_STDLIB_H */ |
| 765 | #endif /* _GL_STDLIB_H */ | 765 | #endif /* _@GUARD_PREFIX@_STDLIB_H */ |
| 766 | #endif | 766 | #endif |
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 13fae7b6703..5acee705f8a 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | #else | 34 | #else |
| 35 | /* Normal invocation convention. */ | 35 | /* Normal invocation convention. */ |
| 36 | 36 | ||
| 37 | #ifndef _GL_SYS_STAT_H | 37 | #ifndef _@GUARD_PREFIX@_SYS_STAT_H |
| 38 | 38 | ||
| 39 | /* Get nlink_t. */ | 39 | /* Get nlink_t. */ |
| 40 | #include <sys/types.h> | 40 | #include <sys/types.h> |
| @@ -45,8 +45,8 @@ | |||
| 45 | /* The include_next requires a split double-inclusion guard. */ | 45 | /* The include_next requires a split double-inclusion guard. */ |
| 46 | #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ | 46 | #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ |
| 47 | 47 | ||
| 48 | #ifndef _GL_SYS_STAT_H | 48 | #ifndef _@GUARD_PREFIX@_SYS_STAT_H |
| 49 | #define _GL_SYS_STAT_H | 49 | #define _@GUARD_PREFIX@_SYS_STAT_H |
| 50 | 50 | ||
| 51 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ | 51 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ |
| 52 | 52 | ||
| @@ -653,6 +653,6 @@ _GL_WARN_ON_USE (utimensat, "utimensat is not portable - " | |||
| 653 | #endif | 653 | #endif |
| 654 | 654 | ||
| 655 | 655 | ||
| 656 | #endif /* _GL_SYS_STAT_H */ | 656 | #endif /* _@GUARD_PREFIX@_SYS_STAT_H */ |
| 657 | #endif /* _GL_SYS_STAT_H */ | 657 | #endif /* _@GUARD_PREFIX@_SYS_STAT_H */ |
| 658 | #endif | 658 | #endif |
diff --git a/lib/time.in.h b/lib/time.in.h index cb533a46e10..1fbebf47beb 100644 --- a/lib/time.in.h +++ b/lib/time.in.h | |||
| @@ -28,13 +28,13 @@ | |||
| 28 | without adding our own declarations. */ | 28 | without adding our own declarations. */ |
| 29 | #if (defined __need_time_t || defined __need_clock_t \ | 29 | #if (defined __need_time_t || defined __need_clock_t \ |
| 30 | || defined __need_timespec \ | 30 | || defined __need_timespec \ |
| 31 | || defined _GL_TIME_H) | 31 | || defined _@GUARD_PREFIX@_TIME_H) |
| 32 | 32 | ||
| 33 | # @INCLUDE_NEXT@ @NEXT_TIME_H@ | 33 | # @INCLUDE_NEXT@ @NEXT_TIME_H@ |
| 34 | 34 | ||
| 35 | #else | 35 | #else |
| 36 | 36 | ||
| 37 | # define _GL_TIME_H | 37 | # define _@GUARD_PREFIX@_TIME_H |
| 38 | 38 | ||
| 39 | # @INCLUDE_NEXT@ @NEXT_TIME_H@ | 39 | # @INCLUDE_NEXT@ @NEXT_TIME_H@ |
| 40 | 40 | ||
diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 59dd5709877..261659bc167 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | # define _GL_WINSOCK2_H_WITNESS | 36 | # define _GL_WINSOCK2_H_WITNESS |
| 37 | 37 | ||
| 38 | /* Normal invocation. */ | 38 | /* Normal invocation. */ |
| 39 | #elif !defined _GL_UNISTD_H | 39 | #elif !defined _@GUARD_PREFIX@_UNISTD_H |
| 40 | 40 | ||
| 41 | /* The include_next requires a split double-inclusion guard. */ | 41 | /* The include_next requires a split double-inclusion guard. */ |
| 42 | #if @HAVE_UNISTD_H@ | 42 | #if @HAVE_UNISTD_H@ |
| @@ -51,8 +51,8 @@ | |||
| 51 | # undef _GL_INCLUDING_WINSOCK2_H | 51 | # undef _GL_INCLUDING_WINSOCK2_H |
| 52 | #endif | 52 | #endif |
| 53 | 53 | ||
| 54 | #if !defined _GL_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H | 54 | #if !defined _@GUARD_PREFIX@_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H |
| 55 | #define _GL_UNISTD_H | 55 | #define _@GUARD_PREFIX@_UNISTD_H |
| 56 | 56 | ||
| 57 | /* NetBSD 5.0 mis-defines NULL. Also get size_t. */ | 57 | /* NetBSD 5.0 mis-defines NULL. Also get size_t. */ |
| 58 | #include <stddef.h> | 58 | #include <stddef.h> |
| @@ -120,7 +120,7 @@ | |||
| 120 | #if @GNULIB_GETHOSTNAME@ | 120 | #if @GNULIB_GETHOSTNAME@ |
| 121 | /* Get all possible declarations of gethostname(). */ | 121 | /* Get all possible declarations of gethostname(). */ |
| 122 | # if @UNISTD_H_HAVE_WINSOCK2_H@ | 122 | # if @UNISTD_H_HAVE_WINSOCK2_H@ |
| 123 | # if !defined _GL_SYS_SOCKET_H | 123 | # if !defined _@GUARD_PREFIX@_SYS_SOCKET_H |
| 124 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 124 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 125 | # undef socket | 125 | # undef socket |
| 126 | # define socket socket_used_without_including_sys_socket_h | 126 | # define socket socket_used_without_including_sys_socket_h |
| @@ -181,7 +181,7 @@ | |||
| 181 | "shutdown() used without including <sys/socket.h>"); | 181 | "shutdown() used without including <sys/socket.h>"); |
| 182 | # endif | 182 | # endif |
| 183 | # endif | 183 | # endif |
| 184 | # if !defined _GL_SYS_SELECT_H | 184 | # if !defined _@GUARD_PREFIX@_SYS_SELECT_H |
| 185 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 185 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 186 | # undef select | 186 | # undef select |
| 187 | # define select select_used_without_including_sys_select_h | 187 | # define select select_used_without_including_sys_select_h |
| @@ -1416,5 +1416,5 @@ _GL_CXXALIASWARN (write); | |||
| 1416 | #endif | 1416 | #endif |
| 1417 | 1417 | ||
| 1418 | 1418 | ||
| 1419 | #endif /* _GL_UNISTD_H */ | 1419 | #endif /* _@GUARD_PREFIX@_UNISTD_H */ |
| 1420 | #endif /* _GL_UNISTD_H */ | 1420 | #endif /* _@GUARD_PREFIX@_UNISTD_H */ |
diff --git a/lib/verify.h b/lib/verify.h index 3294b303505..c6d30a35af9 100644 --- a/lib/verify.h +++ b/lib/verify.h | |||
| @@ -164,10 +164,13 @@ | |||
| 164 | (!!sizeof (_GL_VERIFY_TYPE (R, DIAGNOSTIC))) | 164 | (!!sizeof (_GL_VERIFY_TYPE (R, DIAGNOSTIC))) |
| 165 | 165 | ||
| 166 | # ifdef __cplusplus | 166 | # ifdef __cplusplus |
| 167 | # if !GNULIB_defined_struct__gl_verify_type | ||
| 167 | template <int w> | 168 | template <int w> |
| 168 | struct _gl_verify_type { | 169 | struct _gl_verify_type { |
| 169 | unsigned int _gl_verify_error_if_negative: w; | 170 | unsigned int _gl_verify_error_if_negative: w; |
| 170 | }; | 171 | }; |
| 172 | # define GNULIB_defined_struct__gl_verify_type 1 | ||
| 173 | # endif | ||
| 171 | # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ | 174 | # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ |
| 172 | _gl_verify_type<(R) ? 1 : -1> | 175 | _gl_verify_type<(R) ? 1 : -1> |
| 173 | # elif defined _GL_HAVE__STATIC_ASSERT | 176 | # elif defined _GL_HAVE__STATIC_ASSERT |
| @@ -206,7 +209,7 @@ template <int w> | |||
| 206 | # endif | 209 | # endif |
| 207 | # endif | 210 | # endif |
| 208 | 211 | ||
| 209 | # ifdef _GL_VERIFY_H | 212 | /* @assert.h omit start@ */ |
| 210 | 213 | ||
| 211 | /* Each of these macros verifies that its argument R is nonzero. To | 214 | /* Each of these macros verifies that its argument R is nonzero. To |
| 212 | be portable, R should be an integer constant expression. Unlike | 215 | be portable, R should be an integer constant expression. Unlike |
| @@ -220,13 +223,13 @@ template <int w> | |||
| 220 | /* Verify requirement R at compile-time, as an integer constant expression. | 223 | /* Verify requirement R at compile-time, as an integer constant expression. |
| 221 | Return 1. */ | 224 | Return 1. */ |
| 222 | 225 | ||
| 223 | # define verify_true(R) _GL_VERIFY_TRUE (R, "verify_true (" #R ")") | 226 | # define verify_true(R) _GL_VERIFY_TRUE (R, "verify_true (" #R ")") |
| 224 | 227 | ||
| 225 | /* Verify requirement R at compile-time, as a declaration without a | 228 | /* Verify requirement R at compile-time, as a declaration without a |
| 226 | trailing ';'. */ | 229 | trailing ';'. */ |
| 227 | 230 | ||
| 228 | # define verify(R) _GL_VERIFY (R, "verify (" #R ")") | 231 | # define verify(R) _GL_VERIFY (R, "verify (" #R ")") |
| 229 | 232 | ||
| 230 | # endif | 233 | /* @assert.h omit end@ */ |
| 231 | 234 | ||
| 232 | #endif | 235 | #endif |