From: Paul Eggert Date: Mon, 12 Jun 2017 00:02:10 +0000 (-0700) Subject: Make two symbols private to emacs-module.c X-Git-Tag: emacs-26.0.90~521^2~121 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0ff364fe834f043eb5657f9a85613fbb7bb458e;p=emacs.git 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. --- 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) value_to_lisp (value)); } +static struct Lisp_Module_Function * +allocate_module_function (void) +{ + return ALLOCATE_PSEUDOVECTOR (struct Lisp_Module_Function, + min_arity, PVEC_MODULE_FUNCTION); +} + +#define XSET_MODULE_FUNCTION(var, ptr) \ + XSETPSEUDOVECTOR (var, ptr, PVEC_MODULE_FUNCTION) + /* A module function is a pseudovector of subtype PVEC_MODULE_FUNCTION; see lisp.h for the definition. */ diff --git a/src/lisp.h b/src/lisp.h index ee703893e22..900c7c5cc3f 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -3925,16 +3925,6 @@ struct Lisp_Module_Function void *data; }; -INLINE struct Lisp_Module_Function * -allocate_module_function (void) -{ - return ALLOCATE_PSEUDOVECTOR (struct Lisp_Module_Function, - /* Name of the first field to be - ignored by GC. */ - min_arity, - PVEC_MODULE_FUNCTION); -} - INLINE bool MODULE_FUNCTIONP (Lisp_Object o) { @@ -3948,9 +3938,6 @@ XMODULE_FUNCTION (Lisp_Object o) return XUNTAG (o, Lisp_Vectorlike); } -#define XSET_MODULE_FUNCTION(var, ptr) \ - (XSETPSEUDOVECTOR (var, ptr, PVEC_MODULE_FUNCTION)) - #ifdef HAVE_MODULES /* Defined in alloc.c. */ extern Lisp_Object make_user_ptr (void (*finalizer) (void *), void *p);