aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2021-05-06 16:28:43 +0200
committerAndrea Corallo2021-05-06 17:16:09 +0200
commitfbbcbed10ee89e0865bbddc6683ff626ec488ee9 (patch)
treede3873d00945fc514f6bf525f4ecea9206622ce4 /src
parent901ce566037b27233b907a51a9cbd330c77830ba (diff)
downloademacs-fbbcbed10ee89e0865bbddc6683ff626ec488ee9.tar.gz
emacs-fbbcbed10ee89e0865bbddc6683ff626ec488ee9.zip
Rename comp-eln-load-path → native-comp-eln-load-path
* src/comp.c (Fcomp_el_to_eln_filename): Rename comp-eln-load-path → native-comp-eln-load-path. * src/lread.c (maybe_swap_for_eln): Likewise. * lisp/startup.el (native-comp-eln-load-path) (normal-top-level): Likewise. * lisp/emacs-lisp/comp.el (comp-spill-lap-function, comp-final) (comp-eln-load-path-eff, comp-trampoline-compile) (comp-clean-up-stale-eln, comp-run-async-workers) (comp-lookup-eln, batch-byte-native-compile-for-bootstrap): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/comp.c14
-rw-r--r--src/lread.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/src/comp.c b/src/comp.c
index 5cf94762a92..5128755bf18 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4095,11 +4095,11 @@ directory in `comp-eln-load-path' otherwise. */)
4095 Lisp_Object source_filename = filename; 4095 Lisp_Object source_filename = filename;
4096 filename = Fcomp_el_to_eln_rel_filename (filename); 4096 filename = Fcomp_el_to_eln_rel_filename (filename);
4097 4097
4098 /* If base_dir was not specified search inside Vcomp_eln_load_path 4098 /* If base_dir was not specified search inside Vnative_comp_eln_load_path
4099 for the first directory where we have write access. */ 4099 for the first directory where we have write access. */
4100 if (NILP (base_dir)) 4100 if (NILP (base_dir))
4101 { 4101 {
4102 Lisp_Object eln_load_paths = Vcomp_eln_load_path; 4102 Lisp_Object eln_load_paths = Vnative_comp_eln_load_path;
4103 FOR_EACH_TAIL (eln_load_paths) 4103 FOR_EACH_TAIL (eln_load_paths)
4104 { 4104 {
4105 Lisp_Object dir = XCAR (eln_load_paths); 4105 Lisp_Object dir = XCAR (eln_load_paths);
@@ -4630,7 +4630,7 @@ void
4630eln_load_path_final_clean_up (void) 4630eln_load_path_final_clean_up (void)
4631{ 4631{
4632#ifdef WINDOWSNT 4632#ifdef WINDOWSNT
4633 Lisp_Object dir_tail = Vcomp_eln_load_path; 4633 Lisp_Object dir_tail = Vnative_comp_eln_load_path;
4634 FOR_EACH_TAIL (dir_tail) 4634 FOR_EACH_TAIL (dir_tail)
4635 { 4635 {
4636 Lisp_Object files_in_dir = 4636 Lisp_Object files_in_dir =
@@ -4755,7 +4755,7 @@ void
4755fixup_eln_load_path (Lisp_Object eln_filename) 4755fixup_eln_load_path (Lisp_Object eln_filename)
4756{ 4756{
4757 Lisp_Object last_cell = Qnil; 4757 Lisp_Object last_cell = Qnil;
4758 Lisp_Object tem = Vcomp_eln_load_path; 4758 Lisp_Object tem = Vnative_comp_eln_load_path;
4759 FOR_EACH_TAIL (tem) 4759 FOR_EACH_TAIL (tem)
4760 if (CONSP (tem)) 4760 if (CONSP (tem))
4761 last_cell = tem; 4761 last_cell = tem;
@@ -5127,7 +5127,7 @@ static bool
5127file_in_eln_sys_dir (Lisp_Object filename) 5127file_in_eln_sys_dir (Lisp_Object filename)
5128{ 5128{
5129 Lisp_Object eln_sys_dir = Qnil; 5129 Lisp_Object eln_sys_dir = Qnil;
5130 Lisp_Object tmp = Vcomp_eln_load_path; 5130 Lisp_Object tmp = Vnative_comp_eln_load_path;
5131 FOR_EACH_TAIL (tmp) 5131 FOR_EACH_TAIL (tmp)
5132 eln_sys_dir = XCAR (tmp); 5132 eln_sys_dir = XCAR (tmp);
5133 return !NILP (Fstring_match (Fregexp_quote (Fexpand_file_name (eln_sys_dir, 5133 return !NILP (Fstring_match (Fregexp_quote (Fexpand_file_name (eln_sys_dir,
@@ -5369,7 +5369,7 @@ For internal use. */);
5369 doc: /* Hash table eln-filename -> el-filename. */); 5369 doc: /* Hash table eln-filename -> el-filename. */);
5370 Vcomp_eln_to_el_h = CALLN (Fmake_hash_table, QCtest, Qequal); 5370 Vcomp_eln_to_el_h = CALLN (Fmake_hash_table, QCtest, Qequal);
5371 5371
5372 DEFVAR_LISP ("comp-eln-load-path", Vcomp_eln_load_path, 5372 DEFVAR_LISP ("native-comp-eln-load-path", Vnative_comp_eln_load_path,
5373 doc: /* List of eln cache directories. 5373 doc: /* List of eln cache directories.
5374 5374
5375If a directory is non absolute is assumed to be relative to 5375If a directory is non absolute is assumed to be relative to
@@ -5381,7 +5381,7 @@ The last directory of this list is assumed to be the system one. */);
5381 /* Temporary value in use for bootstrap. We can't do better as 5381 /* Temporary value in use for bootstrap. We can't do better as
5382 `invocation-directory' is still unset, will be fixed up during 5382 `invocation-directory' is still unset, will be fixed up during
5383 dump reload. */ 5383 dump reload. */
5384 Vcomp_eln_load_path = Fcons (build_string ("../native-lisp/"), Qnil); 5384 Vnative_comp_eln_load_path = Fcons (build_string ("../native-lisp/"), Qnil);
5385 5385
5386 DEFVAR_BOOL ("comp-enable-subr-trampolines", comp_enable_subr_trampolines, 5386 DEFVAR_BOOL ("comp-enable-subr-trampolines", comp_enable_subr_trampolines,
5387 doc: /* If non-nil enable primitive trampoline synthesis. 5387 doc: /* If non-nil enable primitive trampoline synthesis.
diff --git a/src/lread.c b/src/lread.c
index 12e4ca66cdc..d2e6323cb14 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1700,7 +1700,7 @@ maybe_swap_for_eln (bool no_native, Lisp_Object *filename, int *fd,
1700 return; 1700 return;
1701 1701
1702 /* Search eln in the eln-cache directories. */ 1702 /* Search eln in the eln-cache directories. */
1703 Lisp_Object eln_path_tail = Vcomp_eln_load_path; 1703 Lisp_Object eln_path_tail = Vnative_comp_eln_load_path;
1704 Lisp_Object src_name = 1704 Lisp_Object src_name =
1705 Fsubstring (*filename, Qnil, make_fixnum (-1)); 1705 Fsubstring (*filename, Qnil, make_fixnum (-1));
1706 if (NILP (Ffile_exists_p (src_name))) 1706 if (NILP (Ffile_exists_p (src_name)))