fix(include): Ghidra can't figure out how to use enum values as array size parameters, so just use hardcoded numbers instead

This commit is contained in:
phaneron 2024-07-08 18:42:37 -04:00
parent e7bb9a818a
commit 0683e31289
7 changed files with 57 additions and 13 deletions

View file

@ -13,7 +13,7 @@ typedef struct TSHashTable_##T##_##K TSHashTable_##T##_##K; \
typedef struct TSHashObject_##T##_##K TSHashObject_##T##_##K; \
struct TSHashTable_##T##_##K { \
TSList_##T m_fulllist; \
uint32_t m_fulllist; \
uint32_t m_fullnessIndicator; \
TSGrowableArray_TSList_##T m_slotlistarray; \
uint32_t m_slotmask; \
}; \

View file

@ -18,7 +18,7 @@ struct TSLink_##T { \
// TSLinkedNode<T>
#define STORM_TS_LIST(T) \
STORM_TS_LINK(T) \
typedef struct TSList_##T TSList_##T##; \
typedef struct TSList_##T TSList_##T; \
typedef struct TSLinkedNode_##T TSLinkedNode_##T; \
struct TSList_##T { \
ptrdiff_t m_linkoffset; \