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_format_table.h
File editor
#ifndef WP_FORMAT_TABLE_H #define WP_FORMAT_TABLE_H #include "wp_layout_shared.h" #include "wp_record_parser.h" #include <stdbool.h> #include <stddef.h> #include <stdint.h> #define WP_FORMAT_TABLE_MAX_STORED_WORDS 32U typedef struct WpFormatTableInfo { bool is_present; uint8_t sub_code; uint16_t payload_bytes; size_t word_count; bool odd_payload_byte; uint8_t odd_payload_tail; size_t usable_word_count; size_t sentinel_word_count; size_t zero_word_count; size_t group_count; size_t longest_group_words; bool has_values; uint16_t first_value_index; uint16_t first_value; uint16_t last_value_index; uint16_t last_value; uint16_t min_value; uint16_t max_value; bool has_positive_step; uint16_t first_positive_step; uint16_t min_positive_step; uint16_t max_positive_step; size_t positive_step_count; size_t nonmonotonic_step_count; size_t stored_word_count; uint16_t stored_words[WP_FORMAT_TABLE_MAX_STORED_WORDS]; } WpFormatTableInfo; /* Host-safe ports of the Segment 2000 Formatting / Tables logic. */ void wp_format_table_clear(WpFormatTableInfo *table); bool wp_format_table_decode_payload(const uint8_t *payload, uint16_t payload_length, uint8_t sub_code, WpFormatTableInfo *out_table); bool wp_format_table_decode_record(const WpRecord *rec, WpFormatTableInfo *out_table); uint16_t wp_format_table_recommended_span_step(const WpFormatTableInfo *table); bool wp_format_table_describe(const WpFormatTableInfo *table, char *out, size_t out_size); void __cdecl16far format_run_stream_table_main_loop(WpLayoutGlobals *wl, uint16_t *unaff_SI); void __cdecl16near format_bresenham_line_step_core(WpLayoutGlobals *wl, uint16_t *unaff_SI); void __cdecl16near format_rectangle_compact_initialize(WpLayoutGlobals *wl); uint16_t __cdecl16near format_word_pair_stride_walk_loop(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