diff options
| author | Paul Eggert | 2014-05-17 01:11:31 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-05-17 01:11:31 -0700 |
| commit | 8208d2bf95f924ed810dc06e84fc4c7d5ac004a5 (patch) | |
| tree | b66944645e971c516adfef8f8bc74517bda8dfa1 /nt | |
| parent | f63fc858c3d4a7d91ccac850025e407cc57b77fc (diff) | |
| download | emacs-8208d2bf95f924ed810dc06e84fc4c7d5ac004a5.tar.gz emacs-8208d2bf95f924ed810dc06e84fc4c7d5ac004a5.zip | |
Assume C99 or later.
* lib/stdarg.in.h, lib/stdbool.in.h, m4/stdarg.m4, m4/stdbool.m4:
Remove.
* configure.ac (_AC_PROG_CC_C89): Define a dummy, to keep 'configure'
smaller.
(gl_PROG_CC_C99): Use this to get C99 or later.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Remove stdarg, stdbool.
(GNULIB_TOOL_FLAGS): Avoid stdarg, stdbool.
* doc/lispref/internals.texi (C Dialect): Document this.
* etc/NEWS: Document this.
* nt/gnulib.mk: Remove stdarg and stdbool modules.
* src/bytecode.c (B__dummy__): Remove.
* src/conf_post.h (bool_bf) [!NS_IMPL_GNUSTEP]: Use bool.
(FLEXIBLE_ARRAY_MEMBER): Now always empty.
* src/dbusbind.c (XD_DEBUG_MESSAGE) [!DBUS_DEBUG]:
* src/regex.c (DEBUG_PRINT): Assume varargs macros.
* src/lisp.h (DEFUN_FUNCTION_INIT): Remove. All uses now assume C99.
Fixes: debbugs:17487
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/ChangeLog | 5 | ||||
| -rw-r--r-- | nt/gnulib.mk | 51 |
2 files changed, 5 insertions, 51 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index fc1b0a09102..a3cb5e62dac 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-05-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Assume C99 or later (Bug#17487). | ||
| 4 | * gnulib.mk: Remove stdarg and stdbool modules. | ||
| 5 | |||
| 1 | 2014-05-16 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2014-05-16 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Don't require pkg-config when building from repository. | 8 | Don't require pkg-config when building from repository. |
diff --git a/nt/gnulib.mk b/nt/gnulib.mk index 7877c154b96..7c2cceb959f 100644 --- a/nt/gnulib.mk +++ b/nt/gnulib.mk | |||
| @@ -671,57 +671,6 @@ EXTRA_DIST += stdalign.in.h | |||
| 671 | 671 | ||
| 672 | ## end gnulib module stdalign | 672 | ## end gnulib module stdalign |
| 673 | 673 | ||
| 674 | ## begin gnulib module stdarg | ||
| 675 | |||
| 676 | BUILT_SOURCES += $(STDARG_H) | ||
| 677 | |||
| 678 | # We need the following in order to create <stdarg.h> when the system | ||
| 679 | # doesn't have one that works with the given compiler. | ||
| 680 | if GL_GENERATE_STDARG_H | ||
| 681 | stdarg.h: stdarg.in.h $(top_builddir)/config.status | ||
| 682 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 683 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
| 684 | sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
| 685 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
| 686 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
| 687 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
| 688 | -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ | ||
| 689 | < $(srcdir)/stdarg.in.h; \ | ||
| 690 | } > $@-t && \ | ||
| 691 | mv $@-t $@ | ||
| 692 | else | ||
| 693 | stdarg.h: $(top_builddir)/config.status | ||
| 694 | rm -f $@ | ||
| 695 | endif | ||
| 696 | MOSTLYCLEANFILES += stdarg.h stdarg.h-t | ||
| 697 | |||
| 698 | EXTRA_DIST += stdarg.in.h | ||
| 699 | |||
| 700 | ## end gnulib module stdarg | ||
| 701 | |||
| 702 | ## begin gnulib module stdbool | ||
| 703 | |||
| 704 | BUILT_SOURCES += $(STDBOOL_H) | ||
| 705 | |||
| 706 | # We need the following in order to create <stdbool.h> when the system | ||
| 707 | # doesn't have one that works. | ||
| 708 | if GL_GENERATE_STDBOOL_H | ||
| 709 | stdbool.h: stdbool.in.h $(top_builddir)/config.status | ||
| 710 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
| 711 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
| 712 | sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ | ||
| 713 | } > $@-t && \ | ||
| 714 | mv $@-t $@ | ||
| 715 | else | ||
| 716 | stdbool.h: $(top_builddir)/config.status | ||
| 717 | rm -f $@ | ||
| 718 | endif | ||
| 719 | MOSTLYCLEANFILES += stdbool.h stdbool.h-t | ||
| 720 | |||
| 721 | EXTRA_DIST += stdbool.in.h | ||
| 722 | |||
| 723 | ## end gnulib module stdbool | ||
| 724 | |||
| 725 | ## begin gnulib module stddef | 674 | ## begin gnulib module stddef |
| 726 | 675 | ||
| 727 | BUILT_SOURCES += $(STDDEF_H) | 676 | BUILT_SOURCES += $(STDDEF_H) |