]> git.eshelyaron.com Git - emacs.git/commit
Revert attempt to use 'noexcept' in typedef
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Jan 2016 05:39:55 +0000 (21:39 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Jan 2016 05:46:37 +0000 (21:46 -0800)
commit552694a2653b4f9cde515139d01793a5a0e964b7
tree376d54729b446816a23953313d63a0d54ab1d3b7
parent6ad0d39680cc82e660e3016b11c9f29d2666c79f
Revert attempt to use 'noexcept' in typedef

This use of 'noexcept' runs afoul of the C++11 standard.
Problem reported by Philipp Stephani in:
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00706.html
* src/emacs-module.c (emacs_finalizer_function):
Move this typedef here ...
* src/emacs-module.h: ... from here, and use only the C
version of the typedef.  The typedef is now private since it
is never used in the .h file now and anyway it seemed to be
causing more confusion than it cured.
(make_user_ptr, get_user_finalizer, set_user_finalizer):
Open-code the type instead.
src/emacs-module.c
src/emacs-module.h