[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 d0e07e0: Declare emacs_module_init in the module
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] emacs-25 d0e07e0: Declare emacs_module_init in the module API |
Date: |
Fri, 20 Nov 2015 20:21:23 +0000 |
branch: emacs-25
commit d0e07e0e2239771fd21b9525ea421cf7ba1cc97c
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
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.
---
src/emacs-module.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/emacs-module.h b/src/emacs-module.h
index 4d204d0..06fc4c0 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 d0e07e0: Declare emacs_module_init in the module API,
Paul Eggert <=