diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-04-08 06:42:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-04-08 06:42:26 -0700 |
commit | 58bea998f5e5581ba8568dd83c4bebf883fabf76 (patch) | |
tree | 590036140a855386871c62e32b1d8c00679bcc45 /tests/002/query-1.expected | |
parent | cf4fe3baa5208bb84c956efd0d4eb1e4465c55f0 (diff) | |
download | txr-58bea998f5e5581ba8568dd83c4bebf883fabf76.tar.gz txr-58bea998f5e5581ba8568dd83c4bebf883fabf76.tar.bz2 txr-58bea998f5e5581ba8568dd83c4bebf883fabf76.zip |
New frame type to block bad unwinding and cont capture.
If some external function is invoked which can call back
into TXR Lisp, we should guard against the called-back
code from capturing a continuation across the external
stack frames, and also from unwinding across those
frames. This patch prepares a mechanism for this.
* unwind.c (uw_unwind_to_exit_point): Abort with message on
standard error if attempt is made to unwind across UW_GUARD
frame.
(uw_push_guard): New function.
(uw_capture_cont): If the frame search
encounters a UW_GUARD block, an exception is thrown.
* unwind.h (enum uw_frtype): New enum constant, UW_GUARD.
(uw_push_guard): Declared.
Diffstat (limited to 'tests/002/query-1.expected')
0 files changed, 0 insertions, 0 deletions