]> git.eshelyaron.com Git - emacs.git/commitdiff
Declare emacs_module_init in the module API
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Nov 2015 20:20:26 +0000 (12:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Nov 2015 20:21:18 +0000 (12:21 -0800)
* 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.

src/emacs-module.h

index 4d204d0b96fbd244977de4255fa5407c6db99284..06fc4c07020b31ada6cc98827ee4ba72bcdb1dec 100644 (file)
@@ -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