- 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>
108 lines
1.8 KiB
C++
108 lines
1.8 KiB
C++
// ---------------------------------------------------------------------------
|
|
// Copyright (C) 1994 Borland International
|
|
// myclass.cpp
|
|
// ---------------------------------------------------------------------------
|
|
|
|
#include "..\myclass.h"
|
|
|
|
MyClass::MyClass()
|
|
{
|
|
TRACE("Empty MyClass");
|
|
}
|
|
|
|
MyClass::MyClass(const string& s)
|
|
: Str(s)
|
|
{
|
|
TRACE("Con string '" << Str << "'");
|
|
}
|
|
|
|
MyClass::MyClass(const MyClass& mc)
|
|
: Str(mc.Str)
|
|
{
|
|
TRACE("Copy string '" << Str << "'");
|
|
}
|
|
|
|
MyClass::~MyClass()
|
|
{
|
|
TRACE("Des string '" << Str << "'");
|
|
}
|
|
|
|
MyClass& MyClass::operator=(const MyClass& mc)
|
|
{
|
|
Str = mc.Str;
|
|
return *this;
|
|
}
|
|
|
|
int MyClass::operator==(const MyClass& mc) const
|
|
{
|
|
return Str == mc.Str;
|
|
}
|
|
|
|
int MyClass::operator<(const MyClass& mc) const
|
|
{
|
|
return Str < mc.Str;
|
|
}
|
|
|
|
unsigned MyClass::HashValue() const
|
|
{
|
|
return Str.hash();
|
|
}
|
|
|
|
ostream& operator<<(ostream& os, const MyClass mc)
|
|
{
|
|
return os << "'" << mc.Str << "' hash = " << mc.HashValue();
|
|
}
|
|
|
|
//
|
|
// MyValue
|
|
//
|
|
MyValue::MyValue()
|
|
{
|
|
TRACE("Empty MyValue");
|
|
}
|
|
|
|
MyValue::MyValue(const string& s)
|
|
: Str(s)
|
|
{
|
|
TRACE("Con string '" << Str << "'");
|
|
}
|
|
|
|
MyValue::MyValue(const MyValue& mv)
|
|
: Str(mv.Str)
|
|
{
|
|
TRACE("Copy string '" << Str << "'");
|
|
}
|
|
|
|
MyValue::~MyValue()
|
|
{
|
|
TRACE("Des string '" << Str << "'");
|
|
}
|
|
|
|
MyValue& MyValue::operator=(const MyValue& mv)
|
|
{
|
|
Str = mv.Str;
|
|
return *this;
|
|
}
|
|
|
|
int MyValue::operator==(const MyValue& mv) const
|
|
{
|
|
return Str == mv.Str;
|
|
}
|
|
|
|
int MyValue::operator<(const MyValue& mv) const
|
|
{
|
|
return Str < mv.Str;
|
|
}
|
|
|
|
unsigned MyValue::HashValue() const
|
|
{
|
|
return Str.hash();
|
|
}
|
|
|
|
|
|
ostream& operator<<(ostream& os, const MyValue mv)
|
|
{
|
|
return os << "'" << mv.Str << "' hash = " << mv.HashValue();
|
|
}
|
|
|