From ef2b5a3122b10b67836c05fa23f8b6d5781461a9 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Sun, 9 Jan 2011 06:30:14 -0500 Subject: [PATCH] structures in C need the 'struct' keyword in front of them --- vsmx.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/vsmx.c b/vsmx.c index 69acead..293c605 100644 --- a/vsmx.c +++ b/vsmx.c @@ -840,14 +840,17 @@ VsmxMem* VsmxEncode(FILE* in) { } #define MAX_TEXT_LEN 4096 -typedef struct __VsmxDecompileStack { +typedef struct __VsmxDecompileStack VsmxDecompileStack; + +struct __VsmxDecompileStack { wchar str[MAX_TEXT_LEN]; // a bit of RAM wastage perhaps VSMXGroup item; int arrayFlag; - __VsmxDecompileStack* prev; + VsmxDecompileStack* prev; uint depth; -} VsmxDecompileStack; +}; + static inline void VsmxDecompileStackPush(VsmxDecompileStack** stack, VsmxDecompileStack* item) { VsmxDecompileStack* newItem = (VsmxDecompileStack*)malloc(sizeof(VsmxDecompileStack)); *newItem = *item; @@ -874,13 +877,16 @@ static inline void VsmxDecompileStackDestroy(VsmxDecompileStack** stack) { } } -typedef struct __VsmxDecompMarkStack { +typedef struct __VsmxDecompMarkStack VsmxDecompMarkStack; + +struct __VsmxDecompMarkStack { uint loc; uint src; - - __VsmxDecompMarkStack* prev; + + VsmxDecompMarkStack* prev; uint depth; -} VsmxDecompMarkStack; +}; + static inline void VsmxDecompMarkStackPush(VsmxDecompMarkStack** stack, VsmxDecompMarkStack* item) { VsmxDecompMarkStack* newItem = (VsmxDecompMarkStack*)malloc(sizeof(VsmxDecompMarkStack)); *newItem = *item; -- 2.39.5