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_command.h
File editor
#ifndef WP_PARSER_COMMAND_H #define WP_PARSER_COMMAND_H #include "wp_file_format.h" #include "wp_layout_shared.h" #include "wp_record_parser.h" #include <stdbool.h> #include <stddef.h> #include <stdint.h> typedef enum WpParserCommandClass { WP_PARSER_COMMAND_TEXT = 0, WP_PARSER_COMMAND_SINGLE_CONTROL, WP_PARSER_COMMAND_FIXED_PACKET, WP_PARSER_COMMAND_VARIABLE_PACKET } WpParserCommandClass; typedef enum WpParserCommandExemptReason { WP_PARSER_COMMAND_EXEMPT_NONE = 0, WP_PARSER_COMMAND_EXEMPT_SOFT_PAGE_83, WP_PARSER_COMMAND_EXEMPT_FIXED_C6, WP_PARSER_COMMAND_EXEMPT_LAYOUT_D4 } WpParserCommandExemptReason; typedef struct WpParserCommandPlan { uint8_t code; uint8_t sub_code; WpParserCommandClass command_class; WpParserCommandExemptReason exempt_reason; bool marks_parser_dirty; uint8_t parser_runtime_or; uint8_t secondary_stream_or; uint8_t layout_runtime_or; bool uses_fixed_normalize_path; bool uses_variable_skip_path; bool refreshes_d4_length_word; uint16_t commanded_record_bytes; uint16_t bytes_to_skip_after_lead; bool scanner_bypass; bool has_post_compare_plan; bool repeat_dispatch; bool extension_scan; bool refcount_increment; bool refcount_decrement; bool has_repeat_count; uint16_t repeat_count; uint16_t repeat_count_offset; bool repeat_count_offset_valid; } WpParserCommandPlan; typedef struct WpParserCommandStats { size_t records_seen; size_t bytes_consumed; size_t text_records; size_t single_control_records; size_t fixed_command_records; size_t variable_command_records; size_t dirty_mark_records; size_t dirty_exempt_records; size_t dirty_exempt_soft_page_83; size_t dirty_exempt_fixed_c6; size_t dirty_exempt_layout_d4; size_t fixed_normalize_paths; size_t variable_skip_paths; size_t d4_length_refreshes; size_t command_skip_bytes; size_t scanner_bypass_packets; size_t post_compare_packets; size_t repeat_dispatch_packets; size_t repeat_dispatch_iterations; size_t repeat_dispatch_main_iterations; size_t repeat_dispatch_alt_iterations; size_t extension_scan_packets; size_t extension_scan_dirty_sets; size_t refcount_increment_packets; size_t refcount_decrement_packets; size_t d5_repeat_packets; size_t d6_repeat_packets; size_t da_object_dispatch_packets; size_t db_refcount_packets; size_t incomplete_records; size_t mismatched_trailers; uint8_t final_parser_runtime_flags; uint8_t final_secondary_stream_flags; uint8_t final_runtime_flags; uint8_t final_parse_dirty_flags; int final_layout_refcount; } WpParserCommandStats; void wp_parser_command_stats_clear(WpParserCommandStats *stats); bool wp_parser_command_plan_record(const WpRecord *rec, WpParserCommandPlan *out_plan); void wp_parser_command_apply_plan(WpLayoutGlobals *runtime, const WpParserCommandPlan *plan, WpParserCommandStats *stats); bool wp_parser_command_apply_record(WpLayoutGlobals *runtime, const WpRecord *rec, WpParserCommandStats *stats); bool wp_parser_command_run_stream(WpLayoutGlobals *wl, WpParserCommandStats *stats); bool wp_parser_command_run_loaded_file(WpLoadedFile *file, WpParserCommandStats *stats); bool wp_parser_command_run_file(const char *filename, WpParserCommandStats *stats); const char *wp_parser_command_class_name(WpParserCommandClass command_class); const char *wp_parser_command_exempt_reason_name(WpParserCommandExemptReason reason); #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