diff options
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c index 2040e4eaecd..1809d58c2c7 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -886,7 +886,17 @@ DEFUN ("native-comp-unit-file", Fnative_comp_unit_file, | |||
| 886 | (Lisp_Object comp_unit) | 886 | (Lisp_Object comp_unit) |
| 887 | { | 887 | { |
| 888 | CHECK_TYPE (NATIVE_COMP_UNITP (comp_unit), Qnative_comp_unit, comp_unit); | 888 | CHECK_TYPE (NATIVE_COMP_UNITP (comp_unit), Qnative_comp_unit, comp_unit); |
| 889 | return XNATIVE_COMP_UNIT (comp_unit)->file; | ||
| 890 | } | ||
| 891 | |||
| 892 | DEFUN ("native-comp-unit-set-file", Fnative_comp_unit_set_file, | ||
| 893 | Snative_comp_unit_set_file, 2, 2, 0, | ||
| 894 | doc: /* Return the file of the native compilation unit. */) | ||
| 895 | (Lisp_Object comp_unit, Lisp_Object new_file) | ||
| 896 | { | ||
| 897 | CHECK_TYPE (NATIVE_COMP_UNITP (comp_unit), Qnative_comp_unit, comp_unit); | ||
| 889 | XNATIVE_COMP_UNIT (comp_unit)->file = new_file; | 898 | XNATIVE_COMP_UNIT (comp_unit)->file = new_file; |
| 899 | return comp_unit; | ||
| 890 | } | 900 | } |
| 891 | 901 | ||
| 892 | #endif | 902 | #endif |
| @@ -4007,6 +4017,7 @@ syms_of_data (void) | |||
| 4007 | defsubr (&Ssubr_native_elisp_p); | 4017 | defsubr (&Ssubr_native_elisp_p); |
| 4008 | defsubr (&Ssubr_native_comp_unit); | 4018 | defsubr (&Ssubr_native_comp_unit); |
| 4009 | defsubr (&Snative_comp_unit_file); | 4019 | defsubr (&Snative_comp_unit_file); |
| 4020 | defsubr (&Snative_comp_unit_set_file); | ||
| 4010 | #endif | 4021 | #endif |
| 4011 | #ifdef HAVE_MODULES | 4022 | #ifdef HAVE_MODULES |
| 4012 | defsubr (&Suser_ptrp); | 4023 | defsubr (&Suser_ptrp); |