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
63 lines
2.2 KiB
C
63 lines
2.2 KiB
C
#ifndef TDKPIN_OBJECT_LIST_H
|
|
#define TDKPIN_OBJECT_LIST_H
|
|
|
|
#include "tdkpin_segmented.h"
|
|
|
|
void object_windows_append_child(
|
|
Win16FarPtr container, Win16FarPtr child); /* 1018:069a */
|
|
void object_windows_remove_child(
|
|
Win16FarPtr container, Win16FarPtr child); /* 1018:071c */
|
|
Win16FarPtr object_windows_find_child(
|
|
Win16FarPtr container, Win16FarPtr predicate); /* 1018:080d */
|
|
void object_windows_for_each_child(
|
|
Win16FarPtr container, Win16FarPtr action); /* 1018:085a */
|
|
uint16_t object_windows_minus_one_default(
|
|
Win16FarPtr object); /* 1018:08ac */
|
|
bool object_windows_child_blocks_close(
|
|
uint16_t ignored, Win16FarPtr child); /* 1018:0ec0 */
|
|
bool object_windows_all_children_can_close(
|
|
Win16FarPtr container); /* 1018:0ef4 */
|
|
void object_windows_dispose_child_callback(
|
|
uint16_t ignored, Win16FarPtr child); /* 1018:03e9 */
|
|
bool object_windows_child_group_matches(
|
|
int16_t group, Win16FarPtr child); /* 1018:0466 */
|
|
bool object_windows_try_child_activation(
|
|
uint16_t ignored, Win16FarPtr child); /* 1018:049e */
|
|
bool object_windows_unindexed_child_matches(
|
|
uint16_t ignored, Win16FarPtr child); /* 1018:0524 */
|
|
bool object_windows_validate_child_groups(
|
|
Win16FarPtr container); /* 1018:055c */
|
|
void object_windows_prepare_window(
|
|
Win16FarPtr window); /* 1018:0d9b */
|
|
|
|
typedef struct {
|
|
Win16FarPtr cursor;
|
|
uint16_t direction;
|
|
} ObjectWindowsTransferContext;
|
|
|
|
void object_windows_transfer_child_callback(
|
|
ObjectWindowsTransferContext *context,
|
|
Win16FarPtr child); /* 1018:0dcd */
|
|
void object_windows_transfer_child_data(
|
|
Win16FarPtr object,
|
|
uint16_t direction); /* 1018:0e0a */
|
|
void borland_dispose_object(Win16FarPtr object);
|
|
|
|
bool win16_call_object_predicate(
|
|
Win16FarPtr procedure, Win16FarPtr child);
|
|
void win16_call_object_action(
|
|
Win16FarPtr procedure, Win16FarPtr child);
|
|
bool win16_call_object_bool_method(
|
|
Win16FarPtr procedure, Win16FarPtr object);
|
|
void win16_call_object_u16_method(
|
|
Win16FarPtr procedure,
|
|
Win16FarPtr object,
|
|
uint16_t argument);
|
|
uint16_t win16_call_object_transfer_method(
|
|
Win16FarPtr procedure,
|
|
Win16FarPtr object,
|
|
uint16_t direction,
|
|
Win16FarPtr cursor);
|
|
|
|
#endif
|