aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorAlan Mackenzie2022-01-11 21:57:54 +0000
committerAlan Mackenzie2022-01-11 21:57:54 +0000
commit2128cd8c08da84ab40608ac5db0fecfce733cfad (patch)
treee295275b1a99aed2e5e0cc270f91614062c670f6 /src/data.c
parent4e77177b063f9da8a48709aa3ef416d0ac21837b (diff)
parent18dac472553e6cd1102b644c2175012e12215c18 (diff)
downloademacs-2128cd8c08da84ab40608ac5db0fecfce733cfad.tar.gz
emacs-2128cd8c08da84ab40608ac5db0fecfce733cfad.zip
Merge branch 'master' into scratch/correct-warning-pos
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/data.c b/src/data.c
index 6d9c0aef933..e999cee242e 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1,5 +1,5 @@
1/* Primitive operations on Lisp data types for GNU Emacs Lisp interpreter. 1/* Primitive operations on Lisp data types for GNU Emacs Lisp interpreter.
2 Copyright (C) 1985-1986, 1988, 1993-1995, 1997-2021 Free Software 2 Copyright (C) 1985-1986, 1988, 1993-1995, 1997-2022 Free Software
3 Foundation, Inc. 3 Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -260,6 +260,8 @@ for example, (type-of 1) returns `integer'. */)
260 return Qxwidget; 260 return Qxwidget;
261 case PVEC_XWIDGET_VIEW: 261 case PVEC_XWIDGET_VIEW:
262 return Qxwidget_view; 262 return Qxwidget_view;
263 case PVEC_SQLITE:
264 return Qsqlite;
263 /* "Impossible" cases. */ 265 /* "Impossible" cases. */
264 case PVEC_MISC_PTR: 266 case PVEC_MISC_PTR:
265 case PVEC_OTHER: 267 case PVEC_OTHER:
@@ -968,9 +970,11 @@ function or t otherwise. */)
968{ 970{
969 CHECK_SUBR (subr); 971 CHECK_SUBR (subr);
970 972
971 return SUBR_NATIVE_COMPILED_DYNP (subr) 973#ifdef HAVE_NATIVE_COMP
972 ? XSUBR (subr)->lambda_list[0] 974 if (SUBR_NATIVE_COMPILED_DYNP (subr))
973 : Qt; 975 return XSUBR (subr)->lambda_list;
976#endif
977 return Qt;
974} 978}
975 979
976DEFUN ("subr-type", Fsubr_type, 980DEFUN ("subr-type", Fsubr_type,
@@ -994,7 +998,7 @@ DEFUN ("subr-native-comp-unit", Fsubr_native_comp_unit,
994 (Lisp_Object subr) 998 (Lisp_Object subr)
995{ 999{
996 CHECK_SUBR (subr); 1000 CHECK_SUBR (subr);
997 return XSUBR (subr)->native_comp_u[0]; 1001 return XSUBR (subr)->native_comp_u;
998} 1002}
999 1003
1000DEFUN ("native-comp-unit-file", Fnative_comp_unit_file, 1004DEFUN ("native-comp-unit-file", Fnative_comp_unit_file,