Word Unperfect
public
Read
Owner: themaster
Branch: main
Commits: 0
Git CLI clone URL
git clone https://www.xt-emporium.com/git/word-unperfect.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
word-unperfect
/
rev
/
wp_parser_gate.h
File editor
#ifndef WP_PARSER_GATE_H #define WP_PARSER_GATE_H #include "wp_layout_shared.h" #include <stdbool.h> #include <stddef.h> #include <stdint.h> /* Host-safe ports of the recovered gate/mode helpers: * - allocate_layout_gate_mask_bit @ 1000:0d1b * - free_layout_gate_mask_bit @ 1000:0d5d * - set_mode_or_status_bits @ 1000:19fb * * The original routines reserve a five-word gate record in the primary record * buffer, run a parser pass, then clear/restores parser/runtime flags. Overlay * jumps are exposed as booleans/counters so the host build remains deterministic. */ typedef struct WpParserGateResult { uint16_t requested_mask; uint16_t allocated_mask; uint16_t freed_mask; uint16_t emit_mask_before; uint16_t emit_mask_after; uint16_t path_mask_before; uint16_t path_mask_after; uint8_t parser_runtime_before; uint8_t parser_runtime_after; uint8_t decode_flags_before; uint8_t decode_flags_after; uint8_t runtime_flags_before; uint8_t runtime_flags_after; uint16_t saved_mode_flags; int record_used_before; int record_used_after; uint16_t record_space_before; uint16_t record_space_after; size_t reserve_words_appended; size_t reserve_words_released; size_t parse_stream_runs; size_t reentrant_mode_flushes; bool allocation_exhausted; bool allocation_skipped_no_buffer; bool free_inferred_mask; bool free_missing_mask; bool free_released_tail_reservation; bool parser_runtime_bit10_set; bool parser_runtime_bits_restored; bool decode_flags_restored; bool measured_span_shadow_cleared; bool measured_span_alias_reset; bool runtime_flag0_cleared; bool overlay_jump_would_run; } WpParserGateResult; void wp_parser_gate_result_clear(WpParserGateResult *result); uint16_t wp_parser_gate_infer_active_mask(const WpLayoutGlobals *wl); uint16_t wp_parser_gate_allocate_mask_bit(WpLayoutGlobals *wl, WpParserGateResult *out_result); bool wp_parser_gate_free_mask_bit(WpLayoutGlobals *wl, uint16_t mask, WpParserGateResult *out_result); bool wp_parser_gate_set_mode_or_status_bits(WpLayoutGlobals *wl, WpParserGateResult *out_result); /* cdecl-compatible wrapper names used by the partially translated parser. */ uint16_t __cdecl16near allocate_layout_gate_mask_bit(WpLayoutGlobals *wl); void __cdecl16near free_layout_gate_mask_bit(WpLayoutGlobals *wl); void __cdecl16near set_mode_or_status_bits(WpLayoutGlobals *wl); void __cdecl16near layout_parse_token_stream_until_gate_overflow(WpLayoutGlobals *wl, uint16_t gate); void __cdecl16near layout_parse_field_whitespace_position_gate(WpLayoutGlobals *wl); #endif
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
main
Visibility
public
Your access
Read
Remote
None
File activity
View file history