]> Chaos Git - console/RCOMage.git/commitdiff
structures in C need the 'struct' keyword in front of them
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Sun, 9 Jan 2011 11:30:14 +0000 (06:30 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Sun, 9 Jan 2011 11:37:54 +0000 (06:37 -0500)
vsmx.c

diff --git a/vsmx.c b/vsmx.c
index 69acead2e4557d0e852f1a699f62b369d89a24b7..293c6052312e19b5ccf5f42e576b99959989815c 100644 (file)
--- a/vsmx.c
+++ b/vsmx.c
@@ -840,14 +840,17 @@ VsmxMem* VsmxEncode(FILE* in) {
 }\r
 \r
 #define MAX_TEXT_LEN 4096\r
-typedef struct __VsmxDecompileStack {\r
+typedef struct __VsmxDecompileStack VsmxDecompileStack;\r
+\r
+struct __VsmxDecompileStack {\r
        wchar str[MAX_TEXT_LEN]; // a bit of RAM wastage perhaps\r
        VSMXGroup item;\r
        int arrayFlag;\r
        \r
-       __VsmxDecompileStack* prev;\r
+       VsmxDecompileStack* prev;\r
        uint depth;\r
-} VsmxDecompileStack;\r
+};\r
+\r
 static inline void VsmxDecompileStackPush(VsmxDecompileStack** stack, VsmxDecompileStack* item) {\r
        VsmxDecompileStack* newItem = (VsmxDecompileStack*)malloc(sizeof(VsmxDecompileStack));\r
        *newItem = *item;\r
@@ -874,13 +877,16 @@ static inline void VsmxDecompileStackDestroy(VsmxDecompileStack** stack) {
        }\r
 }\r
 \r
-typedef struct __VsmxDecompMarkStack {\r
+typedef struct __VsmxDecompMarkStack VsmxDecompMarkStack;\r
+\r
+struct __VsmxDecompMarkStack {\r
        uint loc;\r
        uint src;\r
-       \r
-       __VsmxDecompMarkStack* prev;\r
+\r
+       VsmxDecompMarkStack* prev;\r
        uint depth;\r
-} VsmxDecompMarkStack;\r
+};\r
+\r
 static inline void VsmxDecompMarkStackPush(VsmxDecompMarkStack** stack, VsmxDecompMarkStack* item) {\r
        VsmxDecompMarkStack* newItem = (VsmxDecompMarkStack*)malloc(sizeof(VsmxDecompMarkStack));\r
        *newItem = *item;\r