- 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>
123 lines
2.7 KiB
C++
123 lines
2.7 KiB
C++
/* dirent.h
|
|
|
|
Definitions for POSIX directory operations.
|
|
|
|
*/
|
|
|
|
/*
|
|
* C/C++ Run Time Library - Version 6.5
|
|
*
|
|
* Copyright (c) 1991, 1994 by Borland International
|
|
* All Rights Reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef __DIRENT_H
|
|
#define __DIRENT_H
|
|
|
|
#if !defined(___DEFS_H)
|
|
#include <_defs.h>
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#include <_null.h>
|
|
#endif
|
|
|
|
#if defined(__WIN32__)
|
|
#include <windows.h> /* For WIN32_FIND_DATA */
|
|
#endif
|
|
|
|
|
|
#if !defined(RC_INVOKED)
|
|
|
|
#if defined(__STDC__)
|
|
#pragma warn -nak
|
|
#endif
|
|
|
|
#pragma option -a-
|
|
|
|
#endif /* !RC_INVOKED */
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
/* dirent structure returned by readdir().
|
|
*/
|
|
struct dirent
|
|
{
|
|
#if defined(__OS2__)
|
|
char d_name[256];
|
|
#elif defined(__WIN32__) || defined(__DPMI32__)
|
|
char d_name[260];
|
|
#else
|
|
char d_name[13];
|
|
#endif
|
|
};
|
|
|
|
#if !defined(__FLAT__)
|
|
|
|
/* _DIR type returned by _opendir(). The first two members cannot
|
|
* be separated, because they make up the DOS DTA structure used
|
|
* by _findfirst() and _findnext().
|
|
*/
|
|
typedef struct
|
|
{
|
|
char _d_reserved[30]; /* reserved part of DTA */
|
|
struct dirent _d_dirent; /* filename part of DTA */
|
|
char _FAR *_d_dirname; /* directory name */
|
|
char _d_first; /* first file flag */
|
|
unsigned char _d_magic; /* magic cookie for verifying handle */
|
|
} DIR;
|
|
|
|
#else /* defined __FLAT__ */
|
|
|
|
|
|
/* DIR type returned by opendir(). The members of this structure
|
|
* must not be accessed by application programs.
|
|
*/
|
|
typedef struct
|
|
{
|
|
unsigned long _d_hdir; /* directory handle */
|
|
char *_d_dirname; /* directory name */
|
|
unsigned _d_magic; /* magic cookie for verifying handle */
|
|
unsigned _d_nfiles; /* no. of files remaining in buf */
|
|
#if defined(__OS2__)
|
|
char *_d_bufp; /* next entry in buffer */
|
|
char _d_buf[512]; /* buffer for found filenames */
|
|
#endif
|
|
#if defined(__WIN32__)
|
|
char _d_buf[sizeof(WIN32_FIND_DATA)]; /* buffer for a single file */
|
|
#endif
|
|
} DIR;
|
|
|
|
#endif /* __FLAT__ */
|
|
|
|
/* Prototypes.
|
|
*/
|
|
DIR _FAR * _RTLENTRY _EXPFUNC opendir (const char _FAR *__dirname);
|
|
struct dirent _FAR * _RTLENTRY _EXPFUNC readdir (DIR _FAR *__dir);
|
|
int _RTLENTRY _EXPFUNC closedir (DIR _FAR *__dir);
|
|
void _RTLENTRY _EXPFUNC rewinddir(DIR _FAR *__dir);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#if !defined(RC_INVOKED)
|
|
|
|
#pragma option -a. /* restore default packing */
|
|
|
|
#if defined(__STDC__)
|
|
#pragma warn .nak
|
|
#endif
|
|
|
|
#endif /* !RC_INVOKED */
|
|
|
|
|
|
#endif /* __DIRENT_H */
|
|
|