From: Paul Eggert Date: Fri, 20 Nov 2015 20:20:26 +0000 (-0800) Subject: Declare emacs_module_init in the module API X-Git-Tag: emacs-25.0.90~711 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0e07e0e2239771fd21b9525ea421cf7ba1cc97c;p=emacs.git Declare emacs_module_init in the module API * src/emacs-module.h (emacs_module_init): New decl. Without it, GCC might complain about a module that defines emacs_module_init without using it. This also checks the API better. --- diff --git a/src/emacs-module.h b/src/emacs-module.h index 4d204d0b96f..06fc4c07020 100644 --- a/src/emacs-module.h +++ b/src/emacs-module.h @@ -196,6 +196,9 @@ struct emacs_env_25 ptrdiff_t (*vec_size) (emacs_env *env, emacs_value vec); }; +/* Every module should define a function as follows. */ +extern int emacs_module_init (struct emacs_runtime *ert); + #ifdef __cplusplus } #endif