diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2022-03-05 11:12:54 +0100 |
---|---|---|
committer | Andrew G Cohen <cohen@andy.bu.edu> | 2022-04-04 07:42:12 +0800 |
commit | e091bee8db9926716a3e7778275901696896cbdf (patch) | |
tree | dd1d1867f6fd7c24b24af6ce5af9de278b1638d9 /src/Makefile.in | |
parent | 9fab134ee8b4ed439a8944e0d7058b1898c9bc0b (diff) | |
download | emacs-e091bee8db9926716a3e7778275901696896cbdf.tar.gz emacs-e091bee8db9926716a3e7778275901696896cbdf.tar.bz2 emacs-e091bee8db9926716a3e7778275901696896cbdf.zip |
Add optional GC marking function to specpdl unwind_ptr record
Add a new `record_unwind_protect_ptr_mark` function for use with C data
structures that use the specpdl for clean-up but also contain possibly
unique references to Lisp objects.
* src/eval.c (record_unwind_protect_ptr_mark): New.
(record_unwind_protect_module, set_unwind_protect_ptr):
Set the mark function to NULL.
(mark_specpdl): Call the mark function if present.
* src/lisp.h (unwind_ptr): Add a mark function pointer to the
SPECPDL_UNWIND_PTR case.
Diffstat (limited to 'src/Makefile.in')
0 files changed, 0 insertions, 0 deletions