From: Philipp Stephani Date: Wed, 4 Dec 2019 20:37:47 +0000 (+0100) Subject: * src/emacs-module.c: Add a few more restrictions for emacs-module.h X-Git-Tag: emacs-27.0.90~442 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d673f871f943a395720f7ceca8b3dcb7b44d50f3;p=emacs.git * src/emacs-module.c: Add a few more restrictions for emacs-module.h --- 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: - 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: