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 /doc | |
| 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 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/internals.texi | 13 |
2 files changed, 11 insertions, 7 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 7d85e4059c9..d892e1307a0 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-05-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Assume C99 or later (Bug#17487). | ||
| 4 | * internals.texi (C Dialect): Document this. | ||
| 5 | |||
| 1 | 2014-05-15 Dmitry Antipov <dmantipov@yandex.ru> | 6 | 2014-05-15 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 7 | ||
| 3 | * lists.texi (Building Cons Cells and Lists): Remove | 8 | * lists.texi (Building Cons Cells and Lists): Remove |
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi index bfc9d491c5e..3a5bd4aea7e 100644 --- a/doc/lispref/internals.texi +++ b/doc/lispref/internals.texi | |||
| @@ -580,15 +580,14 @@ Emacs session. | |||
| 580 | @section C Dialect | 580 | @section C Dialect |
| 581 | @cindex C programming language | 581 | @cindex C programming language |
| 582 | 582 | ||
| 583 | The C part of Emacs is portable to C89: C99-specific features such as | 583 | The C part of Emacs is portable to C99 or later: C11-specific features such |
| 584 | @samp{<stdbool.h>} and @samp{inline} are not used without a check, | 584 | as @samp{<stdalign.h>} and @samp{_Noreturn} are not used without a check, |
| 585 | typically at configuration time, and the Emacs build procedure | 585 | typically at configuration time, and the Emacs build procedure |
| 586 | provides a substitute implementation if necessary. Some C99 features, | 586 | provides a substitute implementation if necessary. Some C11 features, |
| 587 | such as declarations after statements, are too difficult to provide | 587 | such as anonymous structures and unions, are too difficult to emulate, |
| 588 | substitutes for, so they are avoided entirely. | 588 | so they are avoided entirely. |
| 589 | 589 | ||
| 590 | At some point in the not-too-distant future the base C dialect will | 590 | At some point in the future the base C dialect will no doubt change to C11. |
| 591 | change from C89 to C99, and eventually it will no doubt change to C11. | ||
| 592 | 591 | ||
| 593 | @node Writing Emacs Primitives | 592 | @node Writing Emacs Primitives |
| 594 | @section Writing Emacs Primitives | 593 | @section Writing Emacs Primitives |