projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
096be9c
)
* src/emacs-module.c: Add a few more restrictions for emacs-module.h
author
Philipp Stephani
<phst@google.com>
Wed, 4 Dec 2019 20:37:47 +0000
(21:37 +0100)
committer
Philipp Stephani
<phst@google.com>
Wed, 4 Dec 2019 20:37:47 +0000
(21:37 +0100)
src/emacs-module.c
patch
|
blob
|
history
diff --git
a/src/emacs-module.c
b/src/emacs-module.c
index e5c88fd814ad96be2d98d433f2a490f72aea29ce..82c587fcbe990294cfd902fb18e2a8dc25668ddd 100644
(file)
--- a/
src/emacs-module.c
+++ b/
src/emacs-module.c
@@
-46,6
+46,11
@@
rules:
- emacs-module.h should only depend on standard C headers. In
particular, don't include config.h or lisp.h from emacs-module.h.
+- The contents of emacs-module.h should be the same on all platforms
+ and architectures.
+
+- emacs-module.h may not depend on Emacs configuration options.
+
- Prefix all names in emacs-module.h with "emacs_" or "EMACS_".
To add a new module function, proceed as follows: