Move Std.hpp into CRT directory

It's also been renamed to stddef.h since all it contained was the
definition of NULL, which lives in that header in a standard C library.
This commit is contained in:
KeybadeBlox 2026-02-18 19:22:13 -05:00
parent 3c4f0e72b8
commit adc30bb531
7 changed files with 15 additions and 17 deletions

View file

@ -38,11 +38,11 @@ src/JSRF/Jet2.exe: $(OBJ) $(LIB)
# Header files used for each object
src/JSRF/Jet2.obj: src/JSRF/Core.hpp src/Std.hpp src/XDK/D3D.h\
src/JSRF/Jet2.obj: src/JSRF/Core.hpp src/XDK/CRT/stddef.h src/XDK/D3D.h\
src/XDK/Win32.h
src/JSRF/Core.obj: src/JSRF/Core.hpp src/Smilebit/MMatrix.hpp src/Std.hpp\
src/XDK/D3D.h src/XDK/Win32.h
src/JSRF/Core.obj: src/JSRF/Core.hpp src/Smilebit/MMatrix.hpp\
src/XDK/CRT/stddef.h src/XDK/D3D.h src/XDK/Win32.h
src/JSRF/GameData.obj: src/JSRF/GameData.hpp

View file

@ -4,6 +4,7 @@ Game and GameObj classes that form the foundation of the JSRF game code.
#pragma bss_seg(".data")
#include "../XDK/CRT/stddef.h"
#include "Core.hpp"
// Declarations for symbols not yet defined in their own source files

View file

@ -6,7 +6,7 @@ Game and GameObj classes that form the foundation of the JSRF game code.
#define CORE_HPP
#include "../Smilebit/MMatrix.hpp"
#include "../Std.hpp"
#include "../XDK/CRT/stddef.h"
#include "../XDK/D3D.h"
#include "../XDK/Win32.h"

View file

@ -4,6 +4,7 @@ Main function.
#pragma bss_seg(".data")
#include "../XDK/CRT/stddef.h"
#include "Core.hpp"

View file

@ -6,7 +6,7 @@ Smilebit's stack-based matrix math library.
#pragma bss_seg (".data" )
#include "../Std.hpp"
#include "../XDK/CRT/stddef.h"
#include "../XDK/Win32.h"
#include "MMatrix.hpp"

View file

@ -1,12 +0,0 @@
/* JSRF Decompilation: Std.hpp
C(++) standard library definitions. Implemented in the repository instead of
linking to an outside stdlib to ensure consistency (this may not actually be
possible to accomplish, but we'll go for it for now).
*/
#ifndef STD_HPP
#define STD_HPP
#define NULL 0
#endif

View file

@ -0,0 +1,8 @@
/* JSRF Decompilation: XDK/CRT/stddef.h */
#ifndef STDDEF_H
#define STDDEF_H
#define NULL 0
#endif