]> git.eshelyaron.com Git - emacs.git/commit
Export major version of latest Emacs supported by emacs-module.h.
authorPhilipp Stephani <phst@google.com>
Wed, 24 Apr 2019 08:22:18 +0000 (10:22 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 28 Apr 2019 18:08:25 +0000 (20:08 +0200)
commit4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5
tree0ed9322698c302f7e2190f570102cc41112c0d86
parent24f717a5d7de80fdd6aa061f35d04144fe1c4e10
Export major version of latest Emacs supported by emacs-module.h.

This is useful if module authors want to support multiple versions of
emacs-module.h.

* configure.ac (emacs_major_version): Define substitution.

* src/emacs-module.h.in (EMACS_MAJOR_VERSION): Define macro.

* doc/lispref/internals.texi (Module Initialization): Document
EMACS_MAJOR_VERSION preprocessor macro.

* test/data/emacs-module/mod-test.c (emacs_module_init): Verify
behavior of EMACS_MAJOR_VERSION.
configure.ac
doc/lispref/internals.texi
etc/NEWS
src/emacs-module.h.in
test/data/emacs-module/mod-test.c