Replace the partial mechanics transcriptions with a separate, readable C11 reconstruction of the complete Win16 image while preserving the original raw Ghidra export as immutable evidence. Cover all ordinary and overlapping entry points, Borland runtime behavior, Win16 imports, segmented data, callbacks, resources, indirect control flow, physics, rendering, persistence, and startup/shutdown lifecycles. Add deterministic extraction and audit tooling plus address-linked ledgers for functions, imports, DGROUP ranges and objects, relocations, resources, and callbacks. The final gate records zero raw, partial, restored, unknown, blocked, or unclassified required units. Keep the semantic-fidelity boundary explicit: the portable C is not claimed to reproduce a byte-identical Borland NE build. Add strict focused harnesses for every reconstructed C unit, exact resource round-trip checks, and a 16-bit Borland Real48 reference probe. No Rust source or Cargo metadata is changed in this phase. Test Plan: - `bash original/tools/test_reconstructed_c.sh` -- passed - `bash original/tools/probe_real48_reference.sh` -- passed bit-for-bit - `python3 original/tools/audit_reconstruction.py --require-complete` -- passed - `git diff --cached --check` -- passed - `git diff HEAD -- '*.rs' Cargo.toml Cargo.lock` -- empty
21 lines
849 B
C
21 lines
849 B
C
#ifndef TDKPIN_TPWINCRT_LIFECYCLE_H
|
|
#define TDKPIN_TPWINCRT_LIFECYCLE_H
|
|
|
|
#include "tdkpin_borland_startup.h"
|
|
#include "tdkpin_tpwincrt_text.h"
|
|
|
|
void tpwincrt_create_window(void); /* 1008:2442 */
|
|
void tpwincrt_shutdown_exit_proc(void); /* 1008:24a5 */
|
|
void tpwincrt_initialize_runtime_unit(void); /* 1008:2554 */
|
|
|
|
extern WNDCLASS16 g_tpwincrt_window_class; /* 1028:0562..057b */
|
|
extern int16_t g_tpwincrt_initial_x; /* 1028:0538 */
|
|
extern int16_t g_tpwincrt_initial_y; /* 1028:053a */
|
|
extern int16_t g_tpwincrt_initial_width; /* 1028:053c */
|
|
extern int16_t g_tpwincrt_initial_height; /* 1028:053e */
|
|
extern const char g_tpwincrt_inactive_format[14]; /* 1028:0550..055d */
|
|
extern char g_tpwincrt_window_title[80]; /* 1028:4a6e..4abd */
|
|
extern Win16FarPtr g_tpwincrt_saved_exit_proc; /* 1028:4abe..4ac1 */
|
|
|
|
#endif
|