mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(profile): update 3.3.5a profile
This commit is contained in:
parent
9053d61b6b
commit
e1bab2b375
186 changed files with 1204 additions and 43942 deletions
21
profile/3.3.5a-windows-386/include/system/detect.h
Normal file
21
profile/3.3.5a-windows-386/include/system/detect.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef SYSTEM_DETECT_H
|
||||
#define SYSTEM_DETECT_H
|
||||
|
||||
#if !defined(IDA) && !defined(GHIDRA) && !defined(BINANA_GENERATOR)
|
||||
#error "Preprocessor mode not detected! You must define either IDA or GHIDRA or BINANA_GENERATOR"
|
||||
#endif
|
||||
|
||||
#if defined(IDA)
|
||||
|
||||
// why does this work?
|
||||
#define DECLARE_ENUM(E) typedef enum E##__ E
|
||||
|
||||
#else
|
||||
|
||||
#define DECLARE_ENUM(E) typedef enum E E
|
||||
|
||||
#endif
|
||||
|
||||
#define DECLARE_STRUCT(T) typedef struct T T
|
||||
|
||||
#endif
|
||||
6
profile/3.3.5a-windows-386/include/system/limits.h
Normal file
6
profile/3.3.5a-windows-386/include/system/limits.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef SYSTEM_LIMITS_H
|
||||
#define SYSTEM_LIMITS_H
|
||||
|
||||
#define INT_MAX 2147483647
|
||||
|
||||
#endif
|
||||
77
profile/3.3.5a-windows-386/include/system/types.h
Normal file
77
profile/3.3.5a-windows-386/include/system/types.h
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
#ifndef SYSTEM_TYPES_H
|
||||
#define SYSTEM_TYPES_H
|
||||
|
||||
// stdint
|
||||
#if defined(IDA) || defined(BINANA_GENERATOR)
|
||||
|
||||
typedef signed char int8_t;
|
||||
typedef short int16_t;
|
||||
typedef int int32_t;
|
||||
typedef long long int64_t;
|
||||
typedef unsigned char uint8_t;
|
||||
typedef unsigned short uint16_t;
|
||||
typedef unsigned int uint32_t;
|
||||
typedef unsigned long long uint64_t;
|
||||
|
||||
typedef int32_t ptrdiff_t;
|
||||
typedef uint32_t uintptr_t;
|
||||
typedef int32_t intptr_t;
|
||||
|
||||
#else
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#endif
|
||||
|
||||
// stdbool
|
||||
|
||||
#if defined(BINANA_GENERATOR)
|
||||
|
||||
typedef char bool;
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(GHIDRA)
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#endif
|
||||
|
||||
// stddef
|
||||
#if defined(GHIDRA)
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#else
|
||||
|
||||
typedef uint32_t size_t;
|
||||
|
||||
#endif
|
||||
|
||||
// stdarg
|
||||
|
||||
#if defined(GHIDRA)
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#else
|
||||
|
||||
typedef char* va_list;
|
||||
|
||||
#endif
|
||||
|
||||
// other types
|
||||
|
||||
typedef struct fixed16 fixed16;
|
||||
struct fixed16 {
|
||||
int16_t n;
|
||||
};
|
||||
|
||||
struct ubyte4 {
|
||||
union {
|
||||
uint8_t b[4];
|
||||
uint32_t u;
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue