aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/mod-test/Makefile18
-rw-r--r--modules/mod-test/mod-test.c19
-rw-r--r--modules/mod-test/test.el21
-rwxr-xr-xmodules/modhelp.py20
-rw-r--r--src/dynlib.c34
-rw-r--r--src/dynlib.h19
-rw-r--r--src/module.h29
7 files changed, 133 insertions, 27 deletions
diff --git a/modules/mod-test/Makefile b/modules/mod-test/Makefile
index 18778f00599..654c22a7e33 100644
--- a/modules/mod-test/Makefile
+++ b/modules/mod-test/Makefile
@@ -1,3 +1,21 @@
1# Test GNU Emacs modules.
2
3# Copyright 2015 Free Software Foundation, Inc.
4
5# This file is part of GNU Emacs.
6
7# GNU Emacs is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11
12# GNU Emacs is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16
17# You should have received a copy of the GNU General Public License
18# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
1 19
2ROOT = ../.. 20ROOT = ../..
3 21
diff --git a/modules/mod-test/mod-test.c b/modules/mod-test/mod-test.c
index db5516ee553..04b6122cafb 100644
--- a/modules/mod-test/mod-test.c
+++ b/modules/mod-test/mod-test.c
@@ -1,3 +1,22 @@
1/* Test GNU Emacs modules.
2
3Copyright 2015 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
1#include <assert.h> 20#include <assert.h>
2#include <stdio.h> 21#include <stdio.h>
3#include <module.h> 22#include <module.h>
diff --git a/modules/mod-test/test.el b/modules/mod-test/test.el
index 1242b6a2ec2..ed584ebb95e 100644
--- a/modules/mod-test/test.el
+++ b/modules/mod-test/test.el
@@ -1,6 +1,21 @@
1;; 1;;; Test GNU Emacs modules.
2;; Dynamic modules tests 2
3;; 3;; Copyright 2015 Free Software Foundation, Inc.
4
5;; This file is part of GNU Emacs.
6
7;; GNU Emacs is free software: you can redistribute it and/or modify
8;; it under the terms of the GNU General Public License as published by
9;; the Free Software Foundation, either version 3 of the License, or
10;; (at your option) any later version.
11
12;; GNU Emacs is distributed in the hope that it will be useful,
13;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;; GNU General Public License for more details.
16
17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
4 19
5(require 'ert) 20(require 'ert)
6 21
diff --git a/modules/modhelp.py b/modules/modhelp.py
index 57bed5023c7..5afe8f24e95 100755
--- a/modules/modhelp.py
+++ b/modules/modhelp.py
@@ -1,4 +1,24 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2
3# Module helper script.
4
5# Copyright 2015 Free Software Foundation, Inc.
6
7# This file is part of GNU Emacs.
8
9# GNU Emacs is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13
14# GNU Emacs is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18
19# You should have received a copy of the GNU General Public License
20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21
2import os 22import os
3import string 23import string
4import subprocess as sp 24import subprocess as sp
diff --git a/src/dynlib.c b/src/dynlib.c
index f9478099169..fbc5f9b873b 100644
--- a/src/dynlib.c
+++ b/src/dynlib.c
@@ -1,12 +1,28 @@
1/* 1/* Portable API for dynamic loading.
2 * Portable API for dynamic loading 2
3 * 3Copyright 2015 Free Software Foundation, Inc.
4 * Assuming modules are enabled on modern systems... *Yes*, the 4
5 * preprocessor macro checks could be more precise. I don't care. 5This file is part of GNU Emacs.
6 * 6
7 * If you think the abstraction is too leaky use libltdl (libtool), 7GNU Emacs is free software: you can redistribute it and/or modify
8 * don't reinvent the wheel by fixing this one. 8it under the terms of the GNU General Public License as published by
9 */ 9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20
21/* Assume modules are enabled on modern systems... *Yes*, the
22 preprocessor macro checks could be more precise. I don't care.
23
24 If you think the abstraction is too leaky use libltdl (libtool),
25 don't reinvent the wheel by fixing this one. */
10 26
11#include "dynlib.h" 27#include "dynlib.h"
12 28
diff --git a/src/dynlib.h b/src/dynlib.h
index 229fc960221..852842df478 100644
--- a/src/dynlib.h
+++ b/src/dynlib.h
@@ -1,3 +1,22 @@
1/* Portable API for dynamic loading.
2
3Copyright 2015 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
1#ifndef DYNLIB_H 20#ifndef DYNLIB_H
2#define DYNLIB_H 21#define DYNLIB_H
3 22
diff --git a/src/module.h b/src/module.h
index b4c3ff83b57..9f43c898af4 100644
--- a/src/module.h
+++ b/src/module.h
@@ -1,22 +1,21 @@
1/* 1/* module.h - GNU Emacs module API.
2 module.h - Module API
3 Copyright (C) 2015 Free Software Foundation, Inc.
4 2
5 This file is part of GNU Emacs. 3Copyright (C) 2015 Free Software Foundation, Inc.
6 4
7 GNU Emacs is free software: you can redistribute it and/or modify 5This file is part of GNU Emacs.
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 6
12 GNU Emacs is distributed in the hope that it will be useful, 7GNU Emacs is free software: you can redistribute it and/or modify
13 but WITHOUT ANY WARRANTY; without even the implied warranty of 8it under the terms of the GNU General Public License as published by
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9the Free Software Foundation, either version 3 of the License, or
15 GNU General Public License for more details. 10(at your option) any later version.
16 11
17 You should have received a copy of the GNU General Public License 12GNU Emacs is distributed in the hope that it will be useful,
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 13but WITHOUT ANY WARRANTY; without even the implied warranty of
19*/ 14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20 19
21#ifndef EMACS_MODULE_H 20#ifndef EMACS_MODULE_H
22#define EMACS_MODULE_H 21#define EMACS_MODULE_H