[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d673f87 1/2: * src/emacs-module.c: Add a few more restrictions fo
From: |
Philipp Stephani |
Subject: |
master d673f87 1/2: * src/emacs-module.c: Add a few more restrictions for emacs-module.h |
Date: |
Wed, 4 Dec 2019 16:28:36 -0500 (EST) |
branch: master
commit d673f871f943a395720f7ceca8b3dcb7b44d50f3
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
* src/emacs-module.c: Add a few more restrictions for emacs-module.h
---
src/emacs-module.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/emacs-module.c b/src/emacs-module.c
index e5c88fd..82c587f 100644
--- 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: