[svn:parrot] r40340 - trunk/compilers/imcc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Thu Jul 30 14:30:52 UTC 2009
Author: NotFound
Date: Thu Jul 30 14:30:51 2009
New Revision: 40340
URL: https://trac.parrot.org/parrot/changeset/40340
Log:
[cage] rename imcc struct _IMC_Unit to struct IMC_Unit and avoid several forward declarations of it
Modified:
trunk/compilers/imcc/cfg.h
trunk/compilers/imcc/imc.h
trunk/compilers/imcc/instructions.h
trunk/compilers/imcc/symreg.h
trunk/compilers/imcc/unit.h
Modified: trunk/compilers/imcc/cfg.h
==============================================================================
--- trunk/compilers/imcc/cfg.h Thu Jul 30 14:15:16 2009 (r40339)
+++ trunk/compilers/imcc/cfg.h Thu Jul 30 14:30:51 2009 (r40340)
@@ -45,7 +45,6 @@
/* Functions: */
-struct _IMC_Unit;
/* HEADERIZER BEGIN: compilers/imcc/cfg.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
Modified: trunk/compilers/imcc/imc.h
==============================================================================
--- trunk/compilers/imcc/imc.h Thu Jul 30 14:15:16 2009 (r40339)
+++ trunk/compilers/imcc/imc.h Thu Jul 30 14:30:51 2009 (r40340)
@@ -41,7 +41,7 @@
* that won't collide with high level compiler generated names. */
#define IMCC_INTERNAL_CHAR '@'
-typedef struct _IMC_Unit IMC_Unit;
+typedef struct IMC_Unit IMC_Unit;
#include "symreg.h"
#include "instructions.h"
Modified: trunk/compilers/imcc/instructions.h
==============================================================================
--- trunk/compilers/imcc/instructions.h Thu Jul 30 14:15:16 2009 (r40339)
+++ trunk/compilers/imcc/instructions.h Thu Jul 30 14:30:51 2009 (r40340)
@@ -75,19 +75,14 @@
} Instruction_Flags;
#undef INSTRUCTION_BIT
-
-/* Forward decl */
-struct _IMC_Unit;
-
-
/* Functions */
/* Globals */
typedef struct _emittert {
int (*open)(PARROT_INTERP, void *param);
- int (*emit)(PARROT_INTERP, void *param, const struct _IMC_Unit *, const Instruction *ins);
- int (*new_sub)(PARROT_INTERP, void *param, struct _IMC_Unit *);
- int (*end_sub)(PARROT_INTERP, void *param, struct _IMC_Unit *);
+ int (*emit)(PARROT_INTERP, void *param, const IMC_Unit *, const Instruction *ins);
+ int (*new_sub)(PARROT_INTERP, void *param, IMC_Unit *);
+ int (*end_sub)(PARROT_INTERP, void *param, IMC_Unit *);
int (*close)(PARROT_INTERP, void *param);
} Emitter;
Modified: trunk/compilers/imcc/symreg.h
==============================================================================
--- trunk/compilers/imcc/symreg.h Thu Jul 30 14:15:16 2009 (r40339)
+++ trunk/compilers/imcc/symreg.h Thu Jul 30 14:30:51 2009 (r40340)
@@ -108,8 +108,6 @@
Identifier *idents;
};
-struct _IMC_Unit;
-
/* functions */
/* HEADERIZER BEGIN: compilers/imcc/symreg.c */
Modified: trunk/compilers/imcc/unit.h
==============================================================================
--- trunk/compilers/imcc/unit.h Thu Jul 30 14:15:16 2009 (r40339)
+++ trunk/compilers/imcc/unit.h Thu Jul 30 14:30:51 2009 (r40340)
@@ -32,7 +32,7 @@
int used_once;
} ;
-struct _IMC_Unit {
+struct IMC_Unit {
INTVAL type;
Instruction *instructions;
Instruction *last_ins;
@@ -52,8 +52,8 @@
SymReg **reglist;
unsigned int n_symbols;
int max_color;
- struct _IMC_Unit *prev;
- struct _IMC_Unit *next;
+ IMC_Unit *prev;
+ IMC_Unit *next;
SymReg *_namespace;
int owns_namespace; /* should this unit free *_namespace */
More information about the parrot-commits
mailing list