- 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>
80 lines
2.4 KiB
C++
80 lines
2.4 KiB
C++
/*------------------------------------------------------------------------
|
|
* filename - _printf.h
|
|
*
|
|
*-----------------------------------------------------------------------*/
|
|
|
|
/*
|
|
* C/C++ Run Time Library - Version 1.5
|
|
*
|
|
* Copyright (c) 1987, 1994 by Borland International
|
|
* All Rights Reserved.
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef __PRINTF_H
|
|
#define __PRINTF_H
|
|
|
|
#if !defined(__STDARG_H)
|
|
#include <stdarg.h>
|
|
#endif
|
|
|
|
#define __XCVTDIG__ 40 /* xcvt() maximum digits supported */
|
|
#define __XCVTMAX__ 47 /* bytes for longest xcvt() string */
|
|
#define __LTOAMAX__ 32 /* bytes for radix 2 longtoa() string */
|
|
#define __CVTMAX__ 48 /* MAX of the above, + 1 for \0 */
|
|
|
|
typedef unsigned putnF (const void *ptr, unsigned n, void *fp);
|
|
|
|
/*
|
|
Defining the symbol FLOATS_32_BIT enables recognition of
|
|
32 bit floats on the stack by using the 'h' size modifier.
|
|
YOU, must FORCE the float to be pushed as a 32 bit number
|
|
though! The compiler normally widens floats to 64 bit doubles.
|
|
|
|
example:
|
|
union {
|
|
float f;
|
|
long l
|
|
} u;
|
|
printf("%hg\n", u.l);
|
|
|
|
This feature can be DISABLED by default for strict ANSI compatability.
|
|
*/
|
|
#define FLOATS_32_BIT 1
|
|
|
|
/*
|
|
Floating point parameter types to formatting functions.
|
|
The numbers are the offset of the fraction in the data type.
|
|
*/
|
|
#define F_4byteFloat 2
|
|
#define F_8byteFloat 6
|
|
#define F_10byteFloat 8
|
|
|
|
/* These must NEVER be the same as an unnormalized 87' exponent! */
|
|
|
|
#define NAN_number 32766 /* xcvt() -> as NAN exponent */
|
|
#define INF_number 32767 /* xcvt() -> as INF exponent */
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int __vprinter (putnF *__putter, void *__outP,
|
|
const char *__formatP, va_list __argP );
|
|
char * __longtoa (long __value, char *__S, int __radix,
|
|
char __maybeSigned, char __hexStyle);
|
|
void _RTLENTRY __realcvt (void *__valueP, int __ndec, char *__strP,
|
|
char __formCh, char __altFormat, int __type);
|
|
va_list _RTLENTRY __nextreal (va_list __ap, int __isLongDouble);
|
|
char * __utoa (unsigned __value, char *__buf);
|
|
int __xcvt (void *__valP, int __digits, int *__signP,
|
|
char *__strP, int __ftype);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|