Move typedefs in front of includes to resolve circular dependencies.
authortwisti <none@none>
Fri, 5 Nov 2004 15:33:49 +0000 (15:33 +0000)
committertwisti <none@none>
Fri, 5 Nov 2004 15:33:49 +0000 (15:33 +0000)
jit/codegen.inc.h
src/vm/jit/codegen.inc.h

index dd3a2aa24b17c97a9f9343587f6b934e626f519f..b85f09332a2ab542fec7e4cca2e64f6e97ba3035 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: codegen.inc.h 1456 2004-11-05 14:33:14Z twisti $
+   $Id: codegen.inc.h 1458 2004-11-05 15:33:49Z twisti $
 
 */
 
 #ifndef _CODEGEN_INC_H
 #define _CODEGEN_INC_H
 
+/* We typedef these structures before #includes to resolve circular           */
+/* dependencies.                                                              */
+
+typedef struct codegendata codegendata;
+typedef struct branchref branchref;
+typedef struct jumpref jumpref;
+typedef struct dataref dataref;
+typedef struct linenumberref linenumberref;
+typedef struct threadcritnodetemp threadcritnodetemp;
+
+
 #include "types.h"
 #include "global.h"
 #include "jit/inline.h"
-//#include "jit/reg.h"
+#include "jit/reg.h"
 
 
 #define MCODEINITSIZE (1<<15)       /* 32 Kbyte code area initialization size */
 #endif
 
 
-typedef struct codegendata codegendata;
-typedef struct branchref branchref;
-typedef struct jumpref jumpref;
-typedef struct dataref dataref;
-typedef struct linenumberref linenumberref;
-typedef struct threadcritnodetemp threadcritnodetemp;
-
-
 /************************* critical sections  *********************************/
 
 struct threadcritnodetemp {
@@ -156,7 +159,7 @@ struct _methodtree_element {
 
 void codegen_init();
 void codegen_setup(methodinfo *m, codegendata *cd, t_inlining_globals *e);
-void codegen(methodinfo *m, codegendata *cd, struct registerdata *rd);
+void codegen(methodinfo *m, codegendata *cd, registerdata *rd);
 void codegen_free(methodinfo *m, codegendata *cd);
 void codegen_close();
 void codegen_insertmethod(void *startpc, void *endpc);
index dd3a2aa24b17c97a9f9343587f6b934e626f519f..b85f09332a2ab542fec7e4cca2e64f6e97ba3035 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: codegen.inc.h 1456 2004-11-05 14:33:14Z twisti $
+   $Id: codegen.inc.h 1458 2004-11-05 15:33:49Z twisti $
 
 */
 
 #ifndef _CODEGEN_INC_H
 #define _CODEGEN_INC_H
 
+/* We typedef these structures before #includes to resolve circular           */
+/* dependencies.                                                              */
+
+typedef struct codegendata codegendata;
+typedef struct branchref branchref;
+typedef struct jumpref jumpref;
+typedef struct dataref dataref;
+typedef struct linenumberref linenumberref;
+typedef struct threadcritnodetemp threadcritnodetemp;
+
+
 #include "types.h"
 #include "global.h"
 #include "jit/inline.h"
-//#include "jit/reg.h"
+#include "jit/reg.h"
 
 
 #define MCODEINITSIZE (1<<15)       /* 32 Kbyte code area initialization size */
 #endif
 
 
-typedef struct codegendata codegendata;
-typedef struct branchref branchref;
-typedef struct jumpref jumpref;
-typedef struct dataref dataref;
-typedef struct linenumberref linenumberref;
-typedef struct threadcritnodetemp threadcritnodetemp;
-
-
 /************************* critical sections  *********************************/
 
 struct threadcritnodetemp {
@@ -156,7 +159,7 @@ struct _methodtree_element {
 
 void codegen_init();
 void codegen_setup(methodinfo *m, codegendata *cd, t_inlining_globals *e);
-void codegen(methodinfo *m, codegendata *cd, struct registerdata *rd);
+void codegen(methodinfo *m, codegendata *cd, registerdata *rd);
 void codegen_free(methodinfo *m, codegendata *cd);
 void codegen_close();
 void codegen_insertmethod(void *startpc, void *endpc);