#include <common.h>
#include "gen.h"
-typedef enum {
+typedef enum
+ {
REG_ID_NONE,
// Z80
REG_ID_A,
REG_ID_DH,
REG_ID_DX,
REG_ID_MAX
-} REG_ID;
+ }
+REG_ID;
-enum {
+enum
+ {
REG_USED = 1,
REG_USED_HIDDEN = 2
-};
+ };
-enum {
+enum
+ {
REG_TYPE_CND = 1,
REG_TYPE_GPR = 2
-} REG_TYPE;
+ }
+REG_TYPE;
-typedef struct regs {
+typedef struct regs
+ {
int size;
REG_ID id;
const char *name;
int used;
REG_ID hides[3];
-} REG;
+ }
+REG;
#define TEST(_d, _a) \
(_a) ? (void)0 : (failures++, printf("Test %s \"%s\" failed.\n", #_a, _d), _dumpRegs())
#define NUM_OF(_a) (sizeof(_a)/sizeof(*(_a)))
-typedef struct {
+typedef struct
+ {
REG *regs;
-} IZT_PORT;
+ }
+IZT_PORT;
IZT_PORT *izt_port;
-void izt_init(IZT_PORT *port);
-void izt_assignRegisters (eBBlock **ebbs, int count);
-void izt_gen(iCode *ic);
+void izt_init (IZT_PORT * port);
+void izt_assignRegisters (eBBlock ** ebbs, int count);
+void izt_gen (iCode * ic);