diff options
| author | Andrea Corallo | 2019-12-20 05:53:28 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:38:14 +0100 |
| commit | 9a8f33f285295daff8ed02d35ece5e8fe11ac887 (patch) | |
| tree | 161e4dcdb5e1b5d9cae3307bbcca8b2031da748c /src/data.c | |
| parent | f0671c60637e218a54f9f3ac8e5950d17884f50b (diff) | |
| download | emacs-9a8f33f285295daff8ed02d35ece5e8fe11ac887.tar.gz emacs-9a8f33f285295daff8ed02d35ece5e8fe11ac887.zip | |
introduce SUBRP_NATIVE_COMPILEDP
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c index 0a13569bc6d..fd20ecce696 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -870,7 +870,7 @@ DEFUN ("subr-native-elisp-p", Fsubr_native_elisp_p, Ssubr_native_elisp_p, 1, 1, | |||
| 870 | nil otherwise. */) | 870 | nil otherwise. */) |
| 871 | (Lisp_Object object) | 871 | (Lisp_Object object) |
| 872 | { | 872 | { |
| 873 | return (SUBRP (object) && XSUBR (object)->native_comp_u) ? Qt : Qnil; | 873 | return SUBRP_NATIVE_COMPILEDP (object) ? Qt : Qnil; |
| 874 | } | 874 | } |
| 875 | #endif | 875 | #endif |
| 876 | 876 | ||
| @@ -900,7 +900,7 @@ Value, if non-nil, is a list (interactive SPEC). */) | |||
| 900 | if (SUBRP (fun)) | 900 | if (SUBRP (fun)) |
| 901 | { | 901 | { |
| 902 | #ifdef HAVE_NATIVE_COMP | 902 | #ifdef HAVE_NATIVE_COMP |
| 903 | if (XSUBR (fun)->native_comp_u && XSUBR (fun)->native_intspec) | 903 | if (SUBRP_NATIVE_COMPILEDP (fun) && XSUBR (fun)->native_intspec) |
| 904 | return XSUBR (fun)->native_intspec; | 904 | return XSUBR (fun)->native_intspec; |
| 905 | #endif | 905 | #endif |
| 906 | const char *spec = XSUBR (fun)->intspec; | 906 | const char *spec = XSUBR (fun)->intspec; |