aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-10 18:47:57 -0700
committerPaul Eggert2011-04-10 18:47:57 -0700
commit95c82688bc8063f0be5a04baee5ea2a18f9ddf6b (patch)
tree59148942e32ef89387b765f62d00877755af3405 /src
parent16a97296c05ec9d5bb4ffeae9dce90fc63f578ed (diff)
downloademacs-95c82688bc8063f0be5a04baee5ea2a18f9ddf6b.tar.gz
emacs-95c82688bc8063f0be5a04baee5ea2a18f9ddf6b.zip
* lisp.h (DEFINE_FUNC): Make sname 'static'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/lisp.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 56bb83e0314..8d492d1cdf5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-04-11 Paul Eggert <eggert@cs.ucla.edu> 12011-04-11 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * lisp.h (DEFINE_FUNC): Make sname 'static'.
4
3 Make Emacs functions such as Fatom 'static' by default. 5 Make Emacs functions such as Fatom 'static' by default.
4 This makes it easier for human readers (and static analyzers) 6 This makes it easier for human readers (and static analyzers)
5 to see whether these functions can be called from other modules. 7 to see whether these functions can be called from other modules.
@@ -16,6 +18,7 @@
16 Remove decls, since these functions are now static. 18 Remove decls, since these functions are now static.
17 (Funintern, Fget_internal_run_time): New decls, since these functions 19 (Funintern, Fget_internal_run_time): New decls, since these functions
18 were already external. 20 were already external.
21
19 * alloc.c, buffer.c, callint.c, callproc.c, casefiddle.c, casetab.c: 22 * alloc.c, buffer.c, callint.c, callproc.c, casefiddle.c, casetab.c:
20 * ccl.c, character.c, chartab.c, cmds.c, coding.c, data.c, dispnew.c: 23 * ccl.c, character.c, chartab.c, cmds.c, coding.c, data.c, dispnew.c:
21 * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, floatfns.c: 24 * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, floatfns.c:
diff --git a/src/lisp.h b/src/lisp.h
index 6a28a0f81b3..10fc66f4406 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1811,7 +1811,7 @@ typedef struct {
1811#define DEFUE extern DEFINE_FUNC 1811#define DEFUE extern DEFINE_FUNC
1812#define DEFINE_FUNC(lname, fnname, sname, minargs, maxargs, intspec, doc) \ 1812#define DEFINE_FUNC(lname, fnname, sname, minargs, maxargs, intspec, doc) \
1813 Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ 1813 Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \
1814 DECL_ALIGN (struct Lisp_Subr, sname) = \ 1814 static DECL_ALIGN (struct Lisp_Subr, sname) = \
1815 { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ 1815 { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \
1816 { .a ## maxargs = fnname }, \ 1816 { .a ## maxargs = fnname }, \
1817 minargs, maxargs, lname, intspec, 0}; \ 1817 minargs, maxargs, lname, intspec, 0}; \