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
52
profile/3.3.5a-windows-386/include/storm/array.h
Normal file
52
profile/3.3.5a-windows-386/include/storm/array.h
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
#ifndef STORM_ARRAY_H
|
||||
#define STORM_ARRAY_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#define STORM_TS_BASE_ARRAY(T) typedef struct TSBaseArray_##T TSBaseArray_##T; \
|
||||
struct TSBaseArray_##T { \
|
||||
uint32_t m_alloc; \
|
||||
uint32_t m_count; \
|
||||
T* m_data; \
|
||||
};
|
||||
|
||||
#define STORM_TS_FIXED_ARRAY(T) typedef struct TSFixedArray_##T TSFixedArray_##T; \
|
||||
struct TSFixedArray_##T { \
|
||||
uint32_t m_alloc; \
|
||||
uint32_t m_count; \
|
||||
T* m_data; \
|
||||
};
|
||||
|
||||
#define STORM_TS_GROWABLE_ARRAY(T) typedef struct TSGrowableArray_##T TSGrowableArray_##T; \
|
||||
struct TSGrowableArray_##T { \
|
||||
uint32_t m_alloc; \
|
||||
uint32_t m_count; \
|
||||
T* m_data; \
|
||||
uint32_t m_chunk; \
|
||||
};
|
||||
|
||||
// "pointer-to" types hack
|
||||
|
||||
#define STORM_TS_BASE_ARRAY_POINTER_TO(T) typedef struct TSBaseArray_pointer_to_##T TSBaseArray_pointer_to_##T; \
|
||||
struct TSBaseArray_pointer_to_##T { \
|
||||
uint32_t m_alloc; \
|
||||
uint32_t m_count; \
|
||||
T** m_data; \
|
||||
};
|
||||
|
||||
#define STORM_TS_FIXED_ARRAY_POINTER_TO(T) typedef struct TSFixedArray_pointer_to_##T TSFixedArray_pointer_to_##T; \
|
||||
struct TSFixedArray_pointer_to_##T { \
|
||||
uint32_t m_alloc; \
|
||||
uint32_t m_count; \
|
||||
T** m_data; \
|
||||
};
|
||||
|
||||
#define STORM_TS_GROWABLE_ARRAY_POINTER_TO(T) typedef struct TSGrowableArray_pointer_to_##T TSGrowableArray_pointer_to_##T; \
|
||||
struct TSGrowableArray_pointer_to_##T { \
|
||||
uint32_t m_alloc; \
|
||||
uint32_t m_count; \
|
||||
T** m_data; \
|
||||
uint32_t m_chunk; \
|
||||
};
|
||||
|
||||
#endif
|
||||
10
profile/3.3.5a-windows-386/include/storm/array/c2vector.h
Normal file
10
profile/3.3.5a-windows-386/include/storm/array/c2vector.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef STORM_ARRAY_C_2_VECTOR_H
|
||||
#define STORM_ARRAY_C_2_VECTOR_H
|
||||
|
||||
#include "tempest/vector.h"
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
STORM_TS_GROWABLE_ARRAY(C2Vector);
|
||||
|
||||
#endif
|
||||
10
profile/3.3.5a-windows-386/include/storm/array/c3vector.h
Normal file
10
profile/3.3.5a-windows-386/include/storm/array/c3vector.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef STORM_ARRAY_C_3_VECTOR_H
|
||||
#define STORM_ARRAY_C_3_VECTOR_H
|
||||
|
||||
#include "tempest/vector.h"
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
STORM_TS_GROWABLE_ARRAY(C3Vector);
|
||||
|
||||
#endif
|
||||
10
profile/3.3.5a-windows-386/include/storm/array/cimvector.h
Normal file
10
profile/3.3.5a-windows-386/include/storm/array/cimvector.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef STORM_ARRAY_C_IM_VECTOR_H
|
||||
#define STORM_ARRAY_C_IM_VECTOR_H
|
||||
|
||||
#include "tempest/vector.h"
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
STORM_TS_GROWABLE_ARRAY(CImVector);
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef STORM_ARRAY_POINTER_TO_VOID_H
|
||||
#define STORM_ARRAY_POINTER_TO_VOID_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
STORM_TS_GROWABLE_ARRAY_POINTER_TO(void);
|
||||
|
||||
#endif
|
||||
10
profile/3.3.5a-windows-386/include/storm/array/uint16_t.h
Normal file
10
profile/3.3.5a-windows-386/include/storm/array/uint16_t.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef STORM_ARRAY_UINT16_T_H
|
||||
#define STORM_ARRAY_UINT16_T_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
STORM_TS_GROWABLE_ARRAY(uint16_t);
|
||||
|
||||
#endif
|
||||
10
profile/3.3.5a-windows-386/include/storm/array/uint32_t.h
Normal file
10
profile/3.3.5a-windows-386/include/storm/array/uint32_t.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef STORM_ARRAY_UINT32_T_H
|
||||
#define STORM_ARRAY_UINT32_T_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
STORM_TS_GROWABLE_ARRAY(uint32_t);
|
||||
|
||||
#endif
|
||||
10
profile/3.3.5a-windows-386/include/storm/array/uint8_t.h
Normal file
10
profile/3.3.5a-windows-386/include/storm/array/uint8_t.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef STORM_ARRAY_UINT8_T_H
|
||||
#define STORM_ARRAY_UINT8_T_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
STORM_TS_GROWABLE_ARRAY(uint8_t);
|
||||
|
||||
#endif
|
||||
27
profile/3.3.5a-windows-386/include/storm/big.h
Normal file
27
profile/3.3.5a-windows-386/include/storm/big.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef STORM_BIG_H
|
||||
#define STORM_BIG_H
|
||||
|
||||
DECLARE_STRUCT(BigData);
|
||||
DECLARE_STRUCT(BigBuffer);
|
||||
DECLARE_STRUCT(BigStack);
|
||||
|
||||
#include "storm/array/uint8_t.h"
|
||||
#include "storm/array/uint32_t.h"
|
||||
|
||||
struct BigBuffer {
|
||||
TSGrowableArray_uint32_t m_data;
|
||||
uint32_t m_offset;
|
||||
};
|
||||
|
||||
struct BigStack {
|
||||
BigBuffer m_buffer[16];
|
||||
uint32_t m_used;
|
||||
};
|
||||
|
||||
struct BigData {
|
||||
BigBuffer m_primary;
|
||||
BigStack m_stack;
|
||||
TSGrowableArray_uint8_t m_output;
|
||||
};
|
||||
|
||||
#endif
|
||||
78
profile/3.3.5a-windows-386/include/storm/cmd.h
Normal file
78
profile/3.3.5a-windows-386/include/storm/cmd.h
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
#ifndef STORM_CMD_H
|
||||
#define STORM_CMD_H
|
||||
|
||||
DECLARE_STRUCT(ARGLIST);
|
||||
DECLARE_STRUCT(CMDPARAMS);
|
||||
DECLARE_STRUCT(CMDDEF);
|
||||
STORM_TS_LIST(CMDDEF);
|
||||
DECLARE_STRUCT(CMDERROR);
|
||||
DECLARE_STRUCT(PROCESSING);
|
||||
|
||||
#include "storm/list.h"
|
||||
|
||||
// Callback types
|
||||
typedef int32_t (*CMDEXTRACALLBACK)(const char*);
|
||||
typedef int32_t (*CMDERRORCALLBACK)(CMDERROR*);
|
||||
typedef int32_t (*CMDPARAMSCALLBACK)(CMDPARAMS*, const char*);
|
||||
|
||||
// Details a command line argument
|
||||
// class ARGLIST
|
||||
struct ARGLIST {
|
||||
uint32_t flags;
|
||||
uint32_t id;
|
||||
const char* name;
|
||||
CMDPARAMSCALLBACK callback;
|
||||
};
|
||||
|
||||
// Parameters passed to argument callback
|
||||
// class CMDPARAMS
|
||||
struct CMDPARAMS {
|
||||
uint32_t flags;
|
||||
uint32_t id;
|
||||
const char* name;
|
||||
void* variable;
|
||||
uint32_t setvalue;
|
||||
uint32_t setmask;
|
||||
union {
|
||||
int32_t boolvalue;
|
||||
int32_t signedvalue;
|
||||
uint32_t unsignedvalue;
|
||||
const char* stringvalue;
|
||||
};
|
||||
};
|
||||
|
||||
// Command definitions
|
||||
// class CMDDEF : public TSLinkedNode<CMDDEF>
|
||||
struct CMDDEF {
|
||||
TSLinkedNode_CMDDEF b_base;
|
||||
uint32_t flags;
|
||||
uint32_t id;
|
||||
char name[16];
|
||||
int32_t namelength;
|
||||
uint32_t setvalue;
|
||||
uint32_t setmask;
|
||||
void* variableptr;
|
||||
uint32_t variablebytes;
|
||||
CMDPARAMSCALLBACK callback;
|
||||
int32_t found;
|
||||
union {
|
||||
uint32_t currvalue;
|
||||
char* currvaluestr;
|
||||
};
|
||||
};
|
||||
|
||||
// class CMDERROR
|
||||
struct CMDERROR {
|
||||
uint32_t errorcode;
|
||||
const char* itemstr;
|
||||
const char* errorstr;
|
||||
};
|
||||
|
||||
// class PROCESSING
|
||||
struct PROCESSING {
|
||||
CMDDEF* ptr;
|
||||
char name[16];
|
||||
int32_t namelength;
|
||||
};
|
||||
|
||||
#endif
|
||||
9
profile/3.3.5a-windows-386/include/storm/file.h
Normal file
9
profile/3.3.5a-windows-386/include/storm/file.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#ifndef STORM_FILE_H
|
||||
#define STORM_FILE_H
|
||||
|
||||
DECLARE_STRUCT(SFile);
|
||||
|
||||
struct SFile {
|
||||
};
|
||||
|
||||
#endif
|
||||
49
profile/3.3.5a-windows-386/include/storm/hash.h
Normal file
49
profile/3.3.5a-windows-386/include/storm/hash.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
#ifndef STORM_HASH_H
|
||||
#define STORM_HASH_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#include "storm/array.h"
|
||||
#include "storm/list.h"
|
||||
|
||||
#define STORM_TS_HASH(T, K) \
|
||||
STORM_TS_LIST(T); \
|
||||
STORM_TS_GROWABLE_ARRAY(TSList_##T); \
|
||||
typedef struct TSHashTable_##T##_##K TSHashTable_##T##_##K; \
|
||||
typedef struct TSHashObject_##T##_##K TSHashObject_##T##_##K; \
|
||||
struct TSHashTable_##T##_##K { \
|
||||
void** v_table; \
|
||||
TSList_##T m_fulllist; \
|
||||
uint32_t m_fullnessIndicator; \
|
||||
TSGrowableArray_TSList_##T m_slotlistarray; \
|
||||
uint32_t m_slotmask; \
|
||||
}; \
|
||||
struct TSHashObject_##T##_##K { \
|
||||
uint32_t m_hashval; \
|
||||
TSLink_##T m_linktoslot; \
|
||||
TSLink_##T m_linktofull; \
|
||||
K m_key; \
|
||||
}
|
||||
|
||||
DECLARE_STRUCT(HASHKEY_PTR);
|
||||
DECLARE_STRUCT(HASHKEY_STR);
|
||||
DECLARE_STRUCT(HASHKEY_STRI);
|
||||
DECLARE_STRUCT(HASHKEY_NONE);
|
||||
|
||||
struct HASHKEY_PTR {
|
||||
void* m_key;
|
||||
};
|
||||
|
||||
struct HASHKEY_STR {
|
||||
char* m_str;
|
||||
};
|
||||
|
||||
struct HASHKEY_STRI {
|
||||
char* m_str;
|
||||
};
|
||||
|
||||
struct HASHKEY_NONE {
|
||||
int32_t m_unused;
|
||||
};
|
||||
|
||||
#endif
|
||||
30
profile/3.3.5a-windows-386/include/storm/list.h
Normal file
30
profile/3.3.5a-windows-386/include/storm/list.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#ifndef STORM_LIST_H
|
||||
#define STORM_LIST_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
// TSLink<T>
|
||||
#define STORM_TS_LINK(T) typedef struct TSLink_##T TSLink_##T; \
|
||||
struct TSLink_##T { \
|
||||
TSLink_##T* m_prevlink; \
|
||||
T* m_next; \
|
||||
}
|
||||
|
||||
// TSList<T>
|
||||
// TSExplicitList<T>
|
||||
// TSLinkedNode<T>
|
||||
#define STORM_TS_LIST(T) \
|
||||
STORM_TS_LINK(T); \
|
||||
typedef struct TSList_##T TSList_##T; \
|
||||
typedef struct TSList_##T TSExplicitList_##T; \
|
||||
typedef struct TSLinkedNode_##T TSLinkedNode_##T; \
|
||||
struct TSList_##T { \
|
||||
ptrdiff_t m_linkoffset; \
|
||||
TSLink_##T m_terminator; \
|
||||
}; \
|
||||
struct TSLinkedNode_##T { \
|
||||
TSLink_##T m_link; \
|
||||
}; \
|
||||
typedef TSList_##T TSExplicitList_##T
|
||||
|
||||
#endif
|
||||
31
profile/3.3.5a-windows-386/include/storm/queue.h
Normal file
31
profile/3.3.5a-windows-386/include/storm/queue.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef STORM_QUEUE_H
|
||||
#define STORM_QUEUE_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#include "storm/array/pointer_to_void.h"
|
||||
|
||||
DECLARE_STRUCT(CSBasePriorityQueue);
|
||||
DECLARE_STRUCT(CSBasePriority);
|
||||
|
||||
struct CSBasePriorityQueue {
|
||||
TSGrowableArray_pointer_to_void b_base;
|
||||
uint32_t m_linkOffset;
|
||||
};
|
||||
|
||||
struct CSBasePriority {
|
||||
CSBasePriorityQueue* m_queue;
|
||||
uint32_t m_index;
|
||||
};
|
||||
|
||||
#define STORM_TS_TIMER_PRIORITY(T) \
|
||||
typedef struct TSTimerPriority_##T TSTimerPriority_##T; \
|
||||
struct TSTimerPriority_##T { \
|
||||
CSBasePriority b_base; \
|
||||
T m_val; \
|
||||
}
|
||||
|
||||
#define STORM_TS_PRIORITY_QUEUE(T) \
|
||||
typedef CSBasePriorityQueue TSPriorityQueue_##T
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef STORM_QUEUE_TIMER_PRIORITY_UINT32_T_H
|
||||
#define STORM_QUEUE_TIMER_PRIORITY_UINT32_T_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
#include "storm/queue.h"
|
||||
|
||||
STORM_TS_TIMER_PRIORITY(uint32_t);
|
||||
|
||||
#endif
|
||||
9
profile/3.3.5a-windows-386/include/storm/region.h
Normal file
9
profile/3.3.5a-windows-386/include/storm/region.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#ifndef STORM_REGION_H
|
||||
#define STORM_REGION_H
|
||||
|
||||
#include "storm/region/found_param.h"
|
||||
#include "storm/region/rect.h"
|
||||
#include "storm/region/source.h"
|
||||
#include "storm/region/region.h"
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef STORM_REGION_FOUND_PARAM_H
|
||||
#define STORM_REGION_FOUND_PARAM_H
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
DECLARE_STRUCT(FOUNDPARAM);
|
||||
|
||||
struct FOUNDPARAM {
|
||||
void* param;
|
||||
int32_t sequence;
|
||||
};
|
||||
STORM_TS_GROWABLE_ARRAY(FOUNDPARAM);
|
||||
|
||||
#endif
|
||||
16
profile/3.3.5a-windows-386/include/storm/region/rect.h
Normal file
16
profile/3.3.5a-windows-386/include/storm/region/rect.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef STORM_REGION_RECT_H
|
||||
#define STORM_REGION_RECT_H
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
DECLARE_STRUCT(RECTF);
|
||||
|
||||
struct RECTF {
|
||||
float left;
|
||||
float bottom;
|
||||
float right;
|
||||
float top;
|
||||
};
|
||||
STORM_TS_GROWABLE_ARRAY(RECTF);
|
||||
|
||||
#endif
|
||||
31
profile/3.3.5a-windows-386/include/storm/region/region.h
Normal file
31
profile/3.3.5a-windows-386/include/storm/region/region.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef STORM_REGION_REGION_H
|
||||
#define STORM_REGION_REGION_H
|
||||
|
||||
#include "common/handle.h"
|
||||
#include "storm/hash.h"
|
||||
#include "storm/region/source.h"
|
||||
#include "storm/region/rect.h"
|
||||
#include "storm/region/found_param.h"
|
||||
|
||||
DECLARE_HANDLE(HSRGN);
|
||||
DECLARE_HANDLE(HLOCKEDRGN);
|
||||
|
||||
DECLARE_STRUCT(RGN);
|
||||
DECLARE_STRUCT(CSRgn);
|
||||
|
||||
STORM_TS_HASH(RGN, HASHKEY_NONE);
|
||||
struct RGN {
|
||||
TSHashObject_RGN_HASHKEY_NONE b_base;
|
||||
TSGrowableArray_SOURCE source;
|
||||
TSGrowableArray_RECTF combined;
|
||||
TSGrowableArray_FOUNDPARAM foundparams;
|
||||
RECTF foundparamsrect;
|
||||
int32_t sequence;
|
||||
int32_t dirty;
|
||||
};
|
||||
|
||||
struct CSRgn {
|
||||
HSRGN m_handle;
|
||||
};
|
||||
|
||||
#endif
|
||||
17
profile/3.3.5a-windows-386/include/storm/region/source.h
Normal file
17
profile/3.3.5a-windows-386/include/storm/region/source.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef STORM_REGION_SOURCE_H
|
||||
#define STORM_REGION_SOURCE_H
|
||||
|
||||
#include "storm/array.h"
|
||||
#include "storm/region/rect.h"
|
||||
|
||||
DECLARE_STRUCT(SOURCE);
|
||||
|
||||
struct SOURCE {
|
||||
RECTF rect;
|
||||
void* param;
|
||||
int32_t sequence;
|
||||
uint32_t flags;
|
||||
};
|
||||
STORM_TS_GROWABLE_ARRAY(SOURCE);
|
||||
|
||||
#endif
|
||||
17
profile/3.3.5a-windows-386/include/storm/thread.h
Normal file
17
profile/3.3.5a-windows-386/include/storm/thread.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef STORM_THREAD_H
|
||||
#define STORM_THREAD_H
|
||||
|
||||
#include "system/types.h"
|
||||
|
||||
DECLARE_STRUCT(SCritSect);
|
||||
typedef struct CSRWLock CSRWLock;
|
||||
|
||||
struct SCritSect {
|
||||
uint8_t m_critsect[24];
|
||||
};
|
||||
|
||||
struct CSRWLock {
|
||||
uint8_t m_opaqueData[12];
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue