This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <process.h> | |
| #include <time.h> | |
| #include <string.h> | |
| #include <windows.h> | |
| #define LETTER_CNT 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[derive (Copy, Clone)] | |
| struct Rect { | |
| w: u32, | |
| h: i32 | |
| } | |
| struct Renderer { | |
| canvas: u32 // not used | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * ZLIB DEFLATE decompressor | |
| * derived from Python code at https://pyokagan.name/blog/2019-10-18-zlibinflate/ | |
| */ | |
| struct LZTables { | |
| length_extra_bits: [u8; 29], | |
| length_base: [u16; 29], | |
| dist_extra_bits: [u8; 30], | |
| dist_base: [u16; 30], |
OlderNewer