Files
TeslaRel410/BORLAND/BC45/INCLUDE/OWL/COMPAT.H
T
CydandClaude Fable 5 63312e07f9 source410: literal 4.10 source reconstruction + BC++ 4.52 fleet toolchain archived
- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
  is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
  Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
  (extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
  BT game source (never mixed into CODE/). Round 1-3 state:
  * 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
    (BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
    since 1996.
  * BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
    its binary-recorded line 400 exactly.
  * BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
    (Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
    TeamScore=12 flagged [T4]).
  * MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
    (VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
    the period compiler is the drift detector).
  * Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
    (per-TU verification sweep under authentic OPT.MAK flags).
  * README: corrected roadmap - MECH.HPP is the capstone grown with the mech
    TU reconstructions; BTREG.CPP green = the header-family milestone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 07:33:26 -05:00

98 lines
2.6 KiB
C++

//----------------------------------------------------------------------------
// ObjectWindows
// (C) Copyright 1992, 1994 by Borland International, All Rights Reserved
//
//----------------------------------------------------------------------------
#if !defined(OWL_COMPAT_H)
#define OWL_COMPAT_H
#if defined(__WIN32__)
#pragma message Check maximum identifier length setting. Must equal 55 or greater.
#endif
#if !defined(BI_OLDNAMES)
# define BI_OLDNAMES
#endif
#include <owl/owlpch.h>
#if !defined(OWL_OWLDEFS_H)
# include <owl/owldefs.h>
#endif
struct TMessage {
HWND Receiver;
uint16 Message;
union {
uint16 WParam;
struct tagWP {
uint8 Lo;
uint8 Hi;
} WP;
};
union {
uint32 LParam;
struct tagLP {
uint16 Lo;
uint16 Hi;
} LP;
};
long Result;
};
class _OWLCLASS TWindow;
TMessage _OWLFUNC __GetTMessageWin(TWindow* win);
#define __GetTMessage() __GetTMessageWin(this)
//
// Constants for application messages
//
#define WM_FIRST 0x0000 // 0x0000- 0x7FFF window messages
#define WM_INTERNAL 0x7F00 // 0x7F00- 0x7FFF reserved for internal use
#define ID_FIRST 0x8000 // 0x8000- 0x8FFF child id messages
#define ID_INTERNAL 0x8F00 // 0x8F00- 0x8FFF reserved for internal use
#define NF_FIRST 0x9000 // 0x9000- 0x9FFF notification messages
#define NF_INTERNAL 0x9F00 // 0x9F00- 0x9FFF reserved for internal use
#define CM_FIRST 0xA000 // 0xA000- 0xFFFF command messages
#define CM_INTERNAL 0xFF00 // 0xFF00- 0xFFFF reserved for internal use
#define WM_COUNT 0x8000 // num of window msgs
#define ID_COUNT 0x1000 // num of child id msgs
#define NF_COUNT 0x1000 // num of notification msgs
#define CM_COUNT 0x6000 // num of command msgs
#define WM_RESERVED WM_INTERNAL - WM_FIRST
#define ID_RESERVED ID_INTERNAL - ID_FIRST
#define ID_FIRSTMDICHILD ID_RESERVED + 1
#define ID_MDICLIENT ID_RESERVED + 2
#define CM_RESERVED CM_INTERNAL - CM_FIRST
//
// Error conditions
//
#define EM_INVALIDCHILD -1
#define EM_INVALIDCLIENT -2
#define EM_INVALIDMAINWINDOW -3
#define EM_INVALIDMODULE -4
#define EM_INVALIDWINDOW -5
#define EM_OUTOFMEMORY -6
typedef int _FAR & Rint;
typedef int _FAR * Pint;
typedef void _FAR * Pvoid;
typedef void _FAR * _FAR & RPvoid;
typedef char _FAR * Pchar;
typedef const char _FAR * PCchar;
typedef const void _FAR * PCvoid;
#endif // OWL_COMPAT_H