aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs-module.c
diff options
context:
space:
mode:
authorPaul Eggert2017-06-11 17:02:10 -0700
committerPaul Eggert2017-06-11 17:05:28 -0700
commitd0ff364fe834f043eb5657f9a85613fbb7bb458e (patch)
tree27e3951338f4a05b38a9e29200170cce45e10593 /src/emacs-module.c
parent3a63d8084349166897be48006651000a3b2c0b82 (diff)
downloademacs-d0ff364fe834f043eb5657f9a85613fbb7bb458e.tar.gz
emacs-d0ff364fe834f043eb5657f9a85613fbb7bb458e.zip
Make two symbols private to emacs-module.c
* src/lisp.h (allocate_module_function, XSET_MODULE_FUNCTION): Move from here ... * src/emacs-module.c: ... to here.
Diffstat (limited to 'src/emacs-module.c')
-rw-r--r--src/emacs-module.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index afb75e351d2..adb09c0c506 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -349,6 +349,16 @@ module_non_local_exit_throw (emacs_env *env, emacs_value tag, emacs_value value)
349 value_to_lisp (value)); 349 value_to_lisp (value));
350} 350}
351 351
352static struct Lisp_Module_Function *
353allocate_module_function (void)
354{
355 return ALLOCATE_PSEUDOVECTOR (struct Lisp_Module_Function,
356 min_arity, PVEC_MODULE_FUNCTION);
357}
358
359#define XSET_MODULE_FUNCTION(var, ptr) \
360 XSETPSEUDOVECTOR (var, ptr, PVEC_MODULE_FUNCTION)
361
352/* A module function is a pseudovector of subtype 362/* A module function is a pseudovector of subtype
353 PVEC_MODULE_FUNCTION; see lisp.h for the definition. */ 363 PVEC_MODULE_FUNCTION; see lisp.h for the definition. */
354 364