|
libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
|
A single trail undo record. More...
#include <vm.h>
Public Attributes | |
| uint8_t | kind |
| uint8_t | index |
| uint8_t | sub |
| uint32_t | prior_u |
| size_t | prior_a |
| size_t | prior_b |
| size_t | prior_lp |
A single trail undo record.
Records what was mutated and the prior value so it can be restored on backtrack. Bit-packed to keep the trail small: every choice point that abandons a thread replays only the records it owns.
| uint8_t UndoRecord::index |
| size_t UndoRecord::prior_a |
| size_t UndoRecord::prior_b |
| size_t UndoRecord::prior_lp |
| uint32_t UndoRecord::prior_u |
| uint8_t UndoRecord::sub |