Files
tdkpin/original/reconstructed/tdkpin_dialog.h
T
ddidderr 8b99e9607c feat(reconstruction): complete binary-backed C recovery
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
2026-08-23 16:41:17 +02:00

48 lines
1.6 KiB
C

#ifndef TDKPIN_DIALOG_H
#define TDKPIN_DIALOG_H
#include "tdkpin_object_list.h"
#include "tdkpin_window_messages.h"
#include "tdkpin_object_lifecycle.h"
#include "tdkpin_strings.h"
void object_windows_dialog_mark_child(
uint16_t ignored, Win16FarPtr child); /* 1008:2bb1 */
void object_windows_end_modal_dialog(
Win16FarPtr dialog, INT16 result); /* 1008:2bd1 */
void object_windows_dialog_close(
Win16FarPtr dialog,
ObjectWindowsMessage *message); /* 1008:2d3a */
void object_windows_dialog_validate_and_close(
Win16FarPtr dialog,
ObjectWindowsMessage *message); /* 1008:2cf2 */
void object_windows_dialog_destruct(
Win16FarPtr dialog, uint16_t vmt); /* 1008:2a0e */
bool object_windows_dialog_read_text(
Win16FarPtr dialog); /* 1008:168e */
void object_windows_dialog_setup_text_fields(
Win16FarPtr dialog); /* 1008:16be */
Win16FarPtr object_windows_dialog_construct(
Win16FarPtr dialog,
uint16_t vmt,
Win16FarPtr template_name,
Win16FarPtr parent); /* 1008:2996 */
Win16FarPtr object_windows_text_dialog_construct(
Win16FarPtr dialog,
uint16_t vmt,
INT16 control_id,
Win16FarPtr text_buffer,
Win16FarPtr label,
Win16FarPtr caption,
Win16FarPtr parent); /* 1008:1607 */
uint16_t object_windows_create_modeless_dialog(
Win16FarPtr dialog); /* 1008:2a45 */
INT16 object_windows_execute_modal_dialog(
Win16FarPtr dialog); /* 1008:2ae3 */
extern Win16FarPtr g_win16_create_dialog_param; /* 1028:0652/0654 */
extern Win16FarPtr g_win16_dialog_box_param; /* 1028:0656/0658 */
extern uint8_t g_dialog_alternate_template; /* 1028:066a */
#endif