From b8e5ccb9aec4acf4267e4c40de48e017b0e7307f Mon Sep 17 00:00:00 2001 From: superp00t Date: Sun, 7 Jul 2024 13:36:56 -0400 Subject: [PATCH] refactor(storm): use 'T' to refer to template type argument instead of 'type' --- 3.3.5a/include/storm/array.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/3.3.5a/include/storm/array.h b/3.3.5a/include/storm/array.h index 9284229..1d89333 100644 --- a/3.3.5a/include/storm/array.h +++ b/3.3.5a/include/storm/array.h @@ -3,28 +3,28 @@ #include -#define STORM_TS_BASE_ARRAY(type) typedef struct TSBaseArray_##type TSBaseArray_##type; \ -struct TSBaseArray_##type { \ +#define STORM_TS_BASE_ARRAY(T) typedef struct TSBaseArray_##T TSBaseArray_##T; \ +struct TSBaseArray_##T { \ void** vtable; \ uint32_t m_alloc; \ uint32_t m_count; \ - type* m_data; \ + T* m_data; \ }; -#define STORM_TS_FIXED_ARRAY(type) typedef struct TSFixedArray_##type TSFixedArray_##type; \ -struct TSFixedArray_##type { \ +#define STORM_TS_FIXED_ARRAY(T) typedef struct TSFixedArray_##T TSFixedArray_##T; \ +struct TSFixedArray_##T { \ void** vtable; \ uint32_t m_alloc; \ uint32_t m_count; \ - type* m_data; \ + T* m_data; \ }; -#define STORM_TS_GROWABLE_ARRAY(type) typedef struct TSGrowableArray_##type TSGrowableArray_##type; \ -struct TSGrowableArray_##type { \ +#define STORM_TS_GROWABLE_ARRAY(T) typedef struct TSGrowableArray_##T TSGrowableArray_##T; \ +struct TSGrowableArray_##T { \ void** vtable; \ uint32_t m_alloc; \ uint32_t m_count; \ - type* m_data; \ + T* m_data; \ uint32_t m_chunk; \ };