Moved typedef's infront of includes.
authortwisti <none@none>
Tue, 30 Nov 2004 17:25:59 +0000 (17:25 +0000)
committertwisti <none@none>
Tue, 30 Nov 2004 17:25:59 +0000 (17:25 +0000)
src/vm/jit/reg.h

index a61971dc713b69d98628546bd3ec10e6dc0e18ed..a52a119689f0d0f8695f3e19ea8b752cf3a1e32b 100644 (file)
@@ -27,7 +27,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: reg.h 1621 2004-11-30 13:06:55Z twisti $
+   $Id: reg.h 1626 2004-11-30 17:25:59Z twisti $
 
 */
 
 #ifndef _REG_H
 #define _REG_H
 
+/* We typedef these structures before #includes to resolve circular           */
+/* dependencies.                                                              */
+
+typedef struct varinfo varinfo;
+typedef struct varinfo varinfo5[5];
+typedef struct registerdata registerdata;
+
+
 #include "types.h"
 #include "vm/jit/codegen.inc.h"
 #include "vm/jit/jit.h"
 
 /************************* pseudo variable structure **************************/
 
-typedef struct varinfo varinfo;
-
 struct varinfo {
        int type;                   /* basic type of variable                     */
        int flags;                  /* flags (SAVED, INMEMORY)                    */
        int regoff;                 /* register number or memory offset           */
 };
 
-typedef struct varinfo varinfo5[5];
-
-
-typedef struct registerdata registerdata;
 
 struct registerdata {
        varinfo5 *locals;