aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2019-12-24 16:58:44 +0100
committerAndrea Corallo2020-01-01 11:38:16 +0100
commit2ccce1bc3954ce5f2faa0dcf7fa68ec5cae710ca (patch)
tree4eacc085f5c92d528b822afef212fc45439e2916 /src
parent568883c9be8bfbb15ea48ae0de2c117894e8db4e (diff)
downloademacs-2ccce1bc3954ce5f2faa0dcf7fa68ec5cae710ca.tar.gz
emacs-2ccce1bc3954ce5f2faa0dcf7fa68ec5cae710ca.zip
some style fixes
Diffstat (limited to 'src')
-rw-r--r--src/comp.c12
-rw-r--r--src/lread.c2
-rw-r--r--src/pdumper.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/comp.c b/src/comp.c
index 7e25bdc9256..87986abee68 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -1824,7 +1824,7 @@ emit_ctxt_code (void)
1824 fields[n_frelocs++] = xmint_pointer (XCDR (el)); 1824 fields[n_frelocs++] = xmint_pointer (XCDR (el));
1825 } 1825 }
1826 1826
1827 Lisp_Object subr_l = Vsubr_list; 1827 Lisp_Object subr_l = Vcomp_subr_list;
1828 FOR_EACH_TAIL (subr_l) 1828 FOR_EACH_TAIL (subr_l)
1829 { 1829 {
1830 struct Lisp_Subr *subr = XSUBR (XCAR (subr_l)); 1830 struct Lisp_Subr *subr = XSUBR (XCAR (subr_l));
@@ -3121,7 +3121,7 @@ fill_freloc (void)
3121 memcpy (freloc.link_table, helper_link_table, sizeof (helper_link_table)); 3121 memcpy (freloc.link_table, helper_link_table, sizeof (helper_link_table));
3122 freloc.size = ARRAYELTS (helper_link_table); 3122 freloc.size = ARRAYELTS (helper_link_table);
3123 3123
3124 Lisp_Object subr_l = Vsubr_list; 3124 Lisp_Object subr_l = Vcomp_subr_list;
3125 FOR_EACH_TAIL (subr_l) 3125 FOR_EACH_TAIL (subr_l)
3126 { 3126 {
3127 if (freloc.size == F_RELOC_MAX_SIZE) 3127 if (freloc.size == F_RELOC_MAX_SIZE)
@@ -3290,7 +3290,7 @@ DEFUN ("comp--register-subr", Fcomp__register_subr, Scomp__register_subr,
3290 XSETSUBR (tem, &x->s); 3290 XSETSUBR (tem, &x->s);
3291 set_symbol_function (name, tem); 3291 set_symbol_function (name, tem);
3292 3292
3293 Fputhash (name, c_name, Vsym_subr_c_name_h); 3293 Fputhash (name, c_name, Vcomp_sym_subr_c_name_h);
3294 LOADHIST_ATTACH (Fcons (Qdefun, name)); 3294 LOADHIST_ATTACH (Fcons (Qdefun, name));
3295 3295
3296 return Qnil; 3296 return Qnil;
@@ -3431,12 +3431,12 @@ syms_of_comp (void)
3431 Vcomp_ctxt = Qnil; 3431 Vcomp_ctxt = Qnil;
3432 3432
3433 /* FIXME should be initialized but not here... */ 3433 /* FIXME should be initialized but not here... */
3434 DEFVAR_LISP ("comp-subr-list", Vsubr_list, 3434 DEFVAR_LISP ("comp-subr-list", Vcomp_subr_list,
3435 doc: /* List of all defined subrs. */); 3435 doc: /* List of all defined subrs. */);
3436 DEFVAR_LISP ("comp-sym-subr-c-name-h", Vsym_subr_c_name_h, 3436 DEFVAR_LISP ("comp-sym-subr-c-name-h", Vcomp_sym_subr_c_name_h,
3437 doc: /* Hash table symbol-function -> function-c-name. For 3437 doc: /* Hash table symbol-function -> function-c-name. For
3438 internal use during */); 3438 internal use during */);
3439 Vsym_subr_c_name_h = CALLN (Fmake_hash_table); 3439 Vcomp_sym_subr_c_name_h = CALLN (Fmake_hash_table);
3440} 3440}
3441 3441
3442#endif /* HAVE_NATIVE_COMP */ 3442#endif /* HAVE_NATIVE_COMP */
diff --git a/src/lread.c b/src/lread.c
index 1ba04835aa1..4e8a3adeb94 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -4466,7 +4466,7 @@ defsubr (union Aligned_Lisp_Subr *aname)
4466 XSETSUBR (tem, sname); 4466 XSETSUBR (tem, sname);
4467 set_symbol_function (sym, tem); 4467 set_symbol_function (sym, tem);
4468#ifdef HAVE_NATIVE_COMP 4468#ifdef HAVE_NATIVE_COMP
4469 Vsubr_list = Fcons (tem, Vsubr_list); 4469 Vcomp_subr_list = Fcons (tem, Vcomp_subr_list);
4470#endif /* HAVE_NATIVE_COMP */ 4470#endif /* HAVE_NATIVE_COMP */
4471} 4471}
4472 4472
diff --git a/src/pdumper.c b/src/pdumper.c
index 5bfccb8ac90..610b94b0a32 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -5323,7 +5323,7 @@ dump_do_dump_relocation (const uintptr_t dump_base,
5323 XNATIVE_COMP_UNIT (subr->native_comp_u); 5323 XNATIVE_COMP_UNIT (subr->native_comp_u);
5324 if (!comp_u->handle) 5324 if (!comp_u->handle)
5325 error ("can't relocate native subr with not loaded compilation unit"); 5325 error ("can't relocate native subr with not loaded compilation unit");
5326 Lisp_Object c_name = Fgethash (name, Vsym_subr_c_name_h, Qnil); 5326 Lisp_Object c_name = Fgethash (name, Vcomp_sym_subr_c_name_h, Qnil);
5327 if (NILP (c_name)) 5327 if (NILP (c_name))
5328 error ("missing label name"); 5328 error ("missing label name");
5329 void *func = dynlib_sym (comp_u->handle, SSDATA (c_name)); 5329 void *func = dynlib_sym (comp_u->handle, SSDATA (c_name));