diff options
| author | Andrea Corallo | 2020-04-10 22:24:07 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-04-12 13:31:38 +0100 |
| commit | d85b803b78bc2a9b0424f0caac62a4e9de49b3e4 (patch) | |
| tree | efd77198eda025c088cd96638111464a3a1005c6 /src | |
| parent | 62f956970f5fe4b180ca57b290594530386d8b02 (diff) | |
| download | emacs-d85b803b78bc2a9b0424f0caac62a4e9de49b3e4.tar.gz emacs-d85b803b78bc2a9b0424f0caac62a4e9de49b3e4.zip | |
* src/comp.c (native-comp-unit-set-file): New function.
Diffstat (limited to 'src')
| -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); |