Add objdiff setup

This is intended more as a proof of concept as we figure things out
than the start of an actual decompilation in this repository.  Target
object files are currently "bring your own."
This commit is contained in:
KeybadeBlox 2025-12-14 19:27:11 -05:00
parent 10b3c8c273
commit 7e1785e466
12 changed files with 151 additions and 27 deletions

40
objdiff/src/Win32.hpp Normal file
View file

@ -0,0 +1,40 @@
/* JSRF Decompilation: Win32.hpp
Definitions normally provided by Windows headers.
*/
#ifndef WIN32_HPP
#define WIN32_HPP
// The famous Win32 typedefs
typedef unsigned char UCHAR;
typedef char CHAR;
typedef unsigned short USHORT;
typedef short SHORT;
typedef unsigned int UINT;
typedef int INT;
typedef unsigned long ULONG;
typedef long LONG;
typedef unsigned __int64 ULONGLONG;
typedef __int64 LONGLONG;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef int BOOL;
typedef float FLOAT;
// 64-bit integer compatibility type
union LARGE_INTEGER {
struct {
DWORD LowPart;
LONG HighPart;
};
struct {
DWORD LowPart;
LONG HighPart;
} u;
LONGLONG QuadPart;
};
#endif