aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
authorAndrea Corallo2019-12-24 17:41:44 +0100
committerAndrea Corallo2020-01-01 11:38:16 +0100
commitef59b67e4657fa80d1528b9d476c67f01abecc35 (patch)
tree8827eea8a193014bbc7df20b9e7974ae99509bbc /src/lread.c
parent2ccce1bc3954ce5f2faa0dcf7fa68ec5cae710ca (diff)
downloademacs-ef59b67e4657fa80d1528b9d476c67f01abecc35.tar.gz
emacs-ef59b67e4657fa80d1528b9d476c67f01abecc35.zip
mitigate ifdef proliferation
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/lread.c b/src/lread.c
index 4e8a3adeb94..1c5268d0dad 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1281,11 +1281,9 @@ Return t if the file exists and loads successfully. */)
1281 bool is_module = false; 1281 bool is_module = false;
1282#endif 1282#endif
1283 1283
1284#ifdef HAVE_NATIVE_COMP 1284 bool is_native_elisp =
1285 bool is_native_elisp = suffix_p (found, NATIVE_ELISP_SUFFIX); 1285 NATIVE_COMP_FLAG && suffix_p (found, NATIVE_ELISP_SUFFIX) ? true : false;
1286#else 1286
1287 bool is_native_elisp = false;
1288#endif
1289 /* Check if we're stuck in a recursive load cycle. 1287 /* Check if we're stuck in a recursive load cycle.
1290 1288
1291 2000-09-21: It's not possible to just check for the file loaded 1289 2000-09-21: It's not possible to just check for the file loaded
@@ -1486,15 +1484,16 @@ Return t if the file exists and loads successfully. */)
1486 } 1484 }
1487 else if (is_native_elisp) 1485 else if (is_native_elisp)
1488 { 1486 {
1489#ifdef HAVE_NATIVE_COMP 1487 if (NATIVE_COMP_FLAG)
1490 specbind (Qcurrent_load_list, Qnil); 1488 {
1491 LOADHIST_ATTACH (found); 1489 specbind (Qcurrent_load_list, Qnil);
1492 Fnative_elisp_load (found); 1490 LOADHIST_ATTACH (found);
1493 build_load_history (found, true); 1491 Fnative_elisp_load (found);
1494#else 1492 build_load_history (found, true);
1495 /* This cannot happen. */ 1493 }
1496 emacs_abort (); 1494 else
1497#endif 1495 /* This cannot happen. */
1496 emacs_abort ();
1498 } 1497 }
1499 else 1498 else
1500 { 1499 {
@@ -4465,9 +4464,8 @@ defsubr (union Aligned_Lisp_Subr *aname)
4465 XSETPVECTYPE (sname, PVEC_SUBR); 4464 XSETPVECTYPE (sname, PVEC_SUBR);
4466 XSETSUBR (tem, sname); 4465 XSETSUBR (tem, sname);
4467 set_symbol_function (sym, tem); 4466 set_symbol_function (sym, tem);
4468#ifdef HAVE_NATIVE_COMP 4467 if (NATIVE_COMP_FLAG)
4469 Vcomp_subr_list = Fcons (tem, Vcomp_subr_list); 4468 Vcomp_subr_list = Fcons (tem, Vcomp_subr_list);
4470#endif /* HAVE_NATIVE_COMP */
4471} 4469}
4472 4470
4473#ifdef NOTDEF /* Use fset in subr.el now! */ 4471#ifdef NOTDEF /* Use fset in subr.el now! */