aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2015-11-20 00:40:45 -0800
committerPaul Eggert2015-11-20 00:41:21 -0800
commitc69cec404cbc6b1570c42ca03e0cb42b410d7690 (patch)
tree633f48cac6436a0f9c37168eb714d36719b71dfd /src
parentaa7dac899804727875cdb8fe267d37adcbe9705a (diff)
downloademacs-c69cec404cbc6b1570c42ca03e0cb42b410d7690.tar.gz
emacs-c69cec404cbc6b1570c42ca03e0cb42b410d7690.zip
Include-file tweaks for modules
* src/dynlib.c, src/emacs-module.c: Include <config.h> first. * src/dynlib.h: Do not include config.h. It’s every .c file’s responsibility to include config.h first. * src/emacs-module.c: Include emacs-module.h immediately after config.h, to test that emacs-module.h doesn’t depend on include files other than config.h.
Diffstat (limited to 'src')
-rw-r--r--src/dynlib.c2
-rw-r--r--src/dynlib.h1
-rw-r--r--src/emacs-module.c6
3 files changed, 6 insertions, 3 deletions
diff --git a/src/dynlib.c b/src/dynlib.c
index ed4f157d0fe..1b66c4ad8e8 100644
--- a/src/dynlib.c
+++ b/src/dynlib.c
@@ -24,6 +24,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24 If you think the abstraction is too leaky use libltdl (libtool), 24 If you think the abstraction is too leaky use libltdl (libtool),
25 don't reinvent the wheel by fixing this one. */ 25 don't reinvent the wheel by fixing this one. */
26 26
27#include <config.h>
28
27#include "dynlib.h" 29#include "dynlib.h"
28 30
29#if defined _WIN32 31#if defined _WIN32
diff --git a/src/dynlib.h b/src/dynlib.h
index bd03666b860..1282c4fd719 100644
--- a/src/dynlib.h
+++ b/src/dynlib.h
@@ -20,7 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20#ifndef DYNLIB_H 20#ifndef DYNLIB_H
21#define DYNLIB_H 21#define DYNLIB_H
22 22
23#include <config.h>
24#include <stdbool.h> 23#include <stdbool.h>
25 24
26typedef void *dynlib_handle_ptr; 25typedef void *dynlib_handle_ptr;
diff --git a/src/emacs-module.c b/src/emacs-module.c
index e885af5de8f..25c5e019881 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -17,14 +17,16 @@ GNU General Public License for more details.
17You should have received a copy of the GNU General Public License 17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 19
20#include <config.h>
21
22#include "emacs-module.h"
23
20#include <stdbool.h> 24#include <stdbool.h>
21#include <stddef.h> 25#include <stddef.h>
22#include <stdint.h> 26#include <stdint.h>
23#include <stdio.h> 27#include <stdio.h>
24 28
25#include <config.h>
26#include "lisp.h" 29#include "lisp.h"
27#include "emacs-module.h"
28#include "dynlib.h" 30#include "dynlib.h"
29#include "coding.h" 31#include "coding.h"
30#include "verify.h" 32#include "verify.h"