libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
Loading...
Searching...
No Matches
CompactChoiceHeader Struct Reference

Header for a compact choice stack record (trail-based). More...

#include <vm.h>

Public Attributes

uint32_t total_size
size_t ip
size_t pos
size_t var_count
uint8_t max_cap_used
uint8_t max_counter_used
uint32_t trail_base
uint8_t pad

Detailed Description

Header for a compact choice stack record (trail-based).

The record no longer snapshots full state; it stores only cheap scalar fields and the trail-base index. State is restored by replaying the trail entries belonging to the abandoned thread (see UndoRecord).

Definition at line 378 of file vm.h.

Member Data Documentation

◆ ip

size_t CompactChoiceHeader::ip

Instruction pointer to restore

Definition at line 380 of file vm.h.

◆ max_cap_used

uint8_t CompactChoiceHeader::max_cap_used

Highest capture index used + 1

Definition at line 383 of file vm.h.

◆ max_counter_used

uint8_t CompactChoiceHeader::max_counter_used

Highest counter index used + 1

Definition at line 384 of file vm.h.

◆ pad

uint8_t CompactChoiceHeader::pad

Padding for alignment

Definition at line 386 of file vm.h.

◆ pos

size_t CompactChoiceHeader::pos

Subject position to restore

Definition at line 381 of file vm.h.

◆ total_size

uint32_t CompactChoiceHeader::total_size

Total size of this record including trailing size

Definition at line 379 of file vm.h.

◆ trail_base

uint32_t CompactChoiceHeader::trail_base

Number of trail entries before this choice

Definition at line 385 of file vm.h.

◆ var_count

size_t CompactChoiceHeader::var_count

Snapshot of vm->var_count

Definition at line 382 of file vm.h.


The documentation for this struct was generated from the following file:
  • core/include/snobol/vm.h