aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorGerd Möllmann2024-06-23 16:20:37 +0200
committerGerd Möllmann2024-06-23 16:20:37 +0200
commit33dd41c7459dd9b95af9e17f48cb23c7c236b5c7 (patch)
tree0ba95fc42cc95f02a8891197df26717feed39a50 /src/data.c
parent5b45d53c9fd94b8fa59db9fdc04112006ec6e3e4 (diff)
parent39aa286072924ebef68b068fa9d9afc8374ede86 (diff)
downloademacs-33dd41c7459dd9b95af9e17f48cb23c7c236b5c7.tar.gz
emacs-33dd41c7459dd9b95af9e17f48cb23c7c236b5c7.zip
Merge branch 'master' into scratch/igc
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/data.c b/src/data.c
index 17354b47dc1..efce262f8e6 100644
--- a/src/data.c
+++ b/src/data.c
@@ -241,7 +241,7 @@ a fixed set of types. */)
241 case PVEC_WINDOW: return Qwindow; 241 case PVEC_WINDOW: return Qwindow;
242 case PVEC_SUBR: 242 case PVEC_SUBR:
243 return XSUBR (object)->max_args == UNEVALLED ? Qspecial_form 243 return XSUBR (object)->max_args == UNEVALLED ? Qspecial_form
244 : SUBR_NATIVE_COMPILEDP (object) ? Qsubr_native_elisp 244 : NATIVE_COMP_FUNCTIONP (object) ? Qnative_comp_function
245 : Qprimitive_function; 245 : Qprimitive_function;
246 case PVEC_CLOSURE: 246 case PVEC_CLOSURE:
247 return CONSP (AREF (object, CLOSURE_CODE)) 247 return CONSP (AREF (object, CLOSURE_CODE))
@@ -911,7 +911,7 @@ signal a `cyclic-function-indirection' error. */)
911 911
912 if (!NILP (Vnative_comp_enable_subr_trampolines) 912 if (!NILP (Vnative_comp_enable_subr_trampolines)
913 && SUBRP (function) 913 && SUBRP (function)
914 && !SUBR_NATIVE_COMPILEDP (function)) 914 && !NATIVE_COMP_FUNCTIONP (function))
915 CALLN (Ffuncall, Qcomp_subr_trampoline_install, symbol); 915 CALLN (Ffuncall, Qcomp_subr_trampoline_install, symbol);
916#endif 916#endif
917 917
@@ -1058,12 +1058,11 @@ SUBR must be a built-in function. */)
1058 return build_string (name); 1058 return build_string (name);
1059} 1059}
1060 1060
1061DEFUN ("subr-native-elisp-p", Fsubr_native_elisp_p, Ssubr_native_elisp_p, 1, 1, 1061DEFUN ("native-comp-function-p", Fnative_comp_function_p, Snative_comp_function_p, 1, 1,
1062 0, doc: /* Return t if the object is native compiled lisp 1062 0, doc: /* Return t if the object is native compiled Lisp function, nil otherwise. */)
1063function, nil otherwise. */)
1064 (Lisp_Object object) 1063 (Lisp_Object object)
1065{ 1064{
1066 return SUBR_NATIVE_COMPILEDP (object) ? Qt : Qnil; 1065 return NATIVE_COMP_FUNCTIONP (object) ? Qt : Qnil;
1067} 1066}
1068 1067
1069DEFUN ("subr-native-lambda-list", Fsubr_native_lambda_list, 1068DEFUN ("subr-native-lambda-list", Fsubr_native_lambda_list,
@@ -1075,7 +1074,7 @@ function or t otherwise. */)
1075 CHECK_SUBR (subr); 1074 CHECK_SUBR (subr);
1076 1075
1077#ifdef HAVE_NATIVE_COMP 1076#ifdef HAVE_NATIVE_COMP
1078 if (SUBR_NATIVE_COMPILED_DYNP (subr)) 1077 if (NATIVE_COMP_FUNCTION_DYNP (subr))
1079 return XSUBR (subr)->lambda_list; 1078 return XSUBR (subr)->lambda_list;
1080#endif 1079#endif
1081 return Qt; 1080 return Qt;
@@ -1152,7 +1151,7 @@ Value, if non-nil, is a list (interactive SPEC). */)
1152 1151
1153 if (SUBRP (fun)) 1152 if (SUBRP (fun))
1154 { 1153 {
1155 if (SUBR_NATIVE_COMPILEDP (fun) && !NILP (XSUBR (fun)->intspec.native)) 1154 if (NATIVE_COMP_FUNCTIONP (fun) && !NILP (XSUBR (fun)->intspec.native))
1156 return XSUBR (fun)->intspec.native; 1155 return XSUBR (fun)->intspec.native;
1157 1156
1158 const char *spec = XSUBR (fun)->intspec.string; 1157 const char *spec = XSUBR (fun)->intspec.string;
@@ -4172,7 +4171,8 @@ syms_of_data (void)
4172 DEFSYM (Qsubr, "subr"); 4171 DEFSYM (Qsubr, "subr");
4173 DEFSYM (Qspecial_form, "special-form"); 4172 DEFSYM (Qspecial_form, "special-form");
4174 DEFSYM (Qprimitive_function, "primitive-function"); 4173 DEFSYM (Qprimitive_function, "primitive-function");
4175 DEFSYM (Qsubr_native_elisp, "subr-native-elisp"); 4174 DEFSYM (Qsubr_native_elisp, "subr-native-elisp"); /* Deprecated name. */
4175 DEFSYM (Qnative_comp_function, "native-comp-function");
4176 DEFSYM (Qbyte_code_function, "byte-code-function"); 4176 DEFSYM (Qbyte_code_function, "byte-code-function");
4177 DEFSYM (Qinterpreted_function, "interpreted-function"); 4177 DEFSYM (Qinterpreted_function, "interpreted-function");
4178 DEFSYM (Qbuffer, "buffer"); 4178 DEFSYM (Qbuffer, "buffer");
@@ -4307,7 +4307,7 @@ syms_of_data (void)
4307 defsubr (&Sbyteorder); 4307 defsubr (&Sbyteorder);
4308 defsubr (&Ssubr_arity); 4308 defsubr (&Ssubr_arity);
4309 defsubr (&Ssubr_name); 4309 defsubr (&Ssubr_name);
4310 defsubr (&Ssubr_native_elisp_p); 4310 defsubr (&Snative_comp_function_p);
4311 defsubr (&Ssubr_native_lambda_list); 4311 defsubr (&Ssubr_native_lambda_list);
4312 defsubr (&Ssubr_type); 4312 defsubr (&Ssubr_type);
4313#ifdef HAVE_NATIVE_COMP 4313#ifdef HAVE_NATIVE_COMP