aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorPaul Eggert2014-05-17 01:11:31 -0700
committerPaul Eggert2014-05-17 01:11:31 -0700
commit8208d2bf95f924ed810dc06e84fc4c7d5ac004a5 (patch)
treeb66944645e971c516adfef8f8bc74517bda8dfa1 /nt
parentf63fc858c3d4a7d91ccac850025e407cc57b77fc (diff)
downloademacs-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/ChangeLog5
-rw-r--r--nt/gnulib.mk51
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 @@
12014-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
12014-05-16 Paul Eggert <eggert@cs.ucla.edu> 62014-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
676BUILT_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.
680if GL_GENERATE_STDARG_H
681stdarg.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 $@
692else
693stdarg.h: $(top_builddir)/config.status
694 rm -f $@
695endif
696MOSTLYCLEANFILES += stdarg.h stdarg.h-t
697
698EXTRA_DIST += stdarg.in.h
699
700## end gnulib module stdarg
701
702## begin gnulib module stdbool
703
704BUILT_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.
708if GL_GENERATE_STDBOOL_H
709stdbool.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 $@
715else
716stdbool.h: $(top_builddir)/config.status
717 rm -f $@
718endif
719MOSTLYCLEANFILES += stdbool.h stdbool.h-t
720
721EXTRA_DIST += stdbool.in.h
722
723## end gnulib module stdbool
724
725## begin gnulib module stddef 674## begin gnulib module stddef
726 675
727BUILT_SOURCES += $(STDDEF_H) 676BUILT_SOURCES += $(STDDEF_H)