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 /src/lisp.h | |
| 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 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lisp.h b/src/lisp.h index f47fb0c2a24..67b26ef91c7 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2654,16 +2654,11 @@ CHECK_NUMBER_CDR (Lisp_Object x) | |||
| 2654 | minargs, maxargs, lname, intspec, 0}; \ | 2654 | minargs, maxargs, lname, intspec, 0}; \ |
| 2655 | Lisp_Object fnname | 2655 | Lisp_Object fnname |
| 2656 | #else /* not _MSC_VER */ | 2656 | #else /* not _MSC_VER */ |
| 2657 | # if __STDC_VERSION__ < 199901 | ||
| 2658 | # define DEFUN_FUNCTION_INIT(fnname, maxargs) (Lisp_Object (*) (void)) fnname | ||
| 2659 | # else | ||
| 2660 | # define DEFUN_FUNCTION_INIT(fnname, maxargs) .a ## maxargs = fnname | ||
| 2661 | # endif | ||
| 2662 | #define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc) \ | 2657 | #define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc) \ |
| 2663 | Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ | 2658 | Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ |
| 2664 | static struct Lisp_Subr alignas (GCALIGNMENT) sname = \ | 2659 | static struct Lisp_Subr alignas (GCALIGNMENT) sname = \ |
| 2665 | { { PVEC_SUBR << PSEUDOVECTOR_AREA_BITS }, \ | 2660 | { { PVEC_SUBR << PSEUDOVECTOR_AREA_BITS }, \ |
| 2666 | { DEFUN_FUNCTION_INIT (fnname, maxargs) }, \ | 2661 | { .a ## maxargs = fnname }, \ |
| 2667 | minargs, maxargs, lname, intspec, 0}; \ | 2662 | minargs, maxargs, lname, intspec, 0}; \ |
| 2668 | Lisp_Object fnname | 2663 | Lisp_Object fnname |
| 2669 | #endif | 2664 | #endif |