aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Stephani2019-12-04 21:37:47 +0100
committerPhilipp Stephani2019-12-04 21:37:47 +0100
commitd673f871f943a395720f7ceca8b3dcb7b44d50f3 (patch)
treec6be128217406baaaa053795e1cd4dd43abe767d
parent096be9c4541329af259273fe604dc4f8669fbd8a (diff)
downloademacs-d673f871f943a395720f7ceca8b3dcb7b44d50f3.tar.gz
emacs-d673f871f943a395720f7ceca8b3dcb7b44d50f3.zip
* src/emacs-module.c: Add a few more restrictions for emacs-module.h
-rw-r--r--src/emacs-module.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index e5c88fd814a..82c587fcbe9 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -46,6 +46,11 @@ rules:
46- emacs-module.h should only depend on standard C headers. In 46- emacs-module.h should only depend on standard C headers. In
47 particular, don't include config.h or lisp.h from emacs-module.h. 47 particular, don't include config.h or lisp.h from emacs-module.h.
48 48
49- The contents of emacs-module.h should be the same on all platforms
50 and architectures.
51
52- emacs-module.h may not depend on Emacs configuration options.
53
49- Prefix all names in emacs-module.h with "emacs_" or "EMACS_". 54- Prefix all names in emacs-module.h with "emacs_" or "EMACS_".
50 55
51To add a new module function, proceed as follows: 56To add a new module function, proceed as follows: