]> git.eshelyaron.com Git - emacs.git/commit
Support const and noreturn DEFUN attributes.
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 13 Jan 2015 03:39:45 +0000 (06:39 +0300)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 13 Jan 2015 03:39:45 +0000 (06:39 +0300)
commitad9c4a4091df19064a7f7f53bfdb687931e141f6
tree203ded274a9f90bff594e91c1c261ff843807e8e
parent329b902141c68190a2d8a5d6fd9312b6a816471c
Support const and noreturn DEFUN attributes.

* lib-src/make-docfile.c (struct global): New field 'flags'.
(DEFUN_noreturn, DEFUN_const): New enum bitfields.
(add_global): Now return pointer to global.
(write_globals): Add _Noreturn and ATTRIBUTE_CONST attributes
if requested by global's flags.
(stream_match): New function.
(scan_c_stream): Recognize 'attributes:' of DEFUN.

* src/callint.c (Finteractive):
* src/character.c (Fcharacterp, Fmax_char):
* src.data.c (Feq, Fnull, Fconsp, Fatom, Flistp, Fnlistp, Fsymbolp)
(Fstringp, Fchar_or_string_p, Fintegerp, Fnatnump, Fnumberp)
(Ffloatp, Fbyteorder):
* src/decompress.c (Fzlib_available_p):
* src/fns.c (Fidentity):
* src/frame.c (Fframe_windows_min_size):
* src/gnutls.c (Fgnutls_error_p, Fgnutls_available_p):
* src/window.c (Fwindow__sanitize_window_sizes):
* src/xdisp.c (Ftool_bar_height):
* src/xfaces.c (Fface_attribute_relative_p): Add const attribute.
* src/emacs.c (Fkill_emacs):
* src/eval.c (Fthrow):
* src/keyboard.c (Ftop_level, Fexit_recursive_edit)
(Fabor_recursive_edit): Add noreturn attribute.
16 files changed:
lib-src/ChangeLog
lib-src/make-docfile.c
src/ChangeLog
src/callint.c
src/character.c
src/data.c
src/decompress.c
src/emacs.c
src/eval.c
src/fns.c
src/frame.c
src/gnutls.c
src/keyboard.c
src/window.c
src/xdisp.c
src/xfaces.c