diff options
Diffstat (limited to 'sim/m32c/opc2c.c')
-rw-r--r-- | sim/m32c/opc2c.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sim/m32c/opc2c.c b/sim/m32c/opc2c.c index 113e390..9e84446 100644 --- a/sim/m32c/opc2c.c +++ b/sim/m32c/opc2c.c @@ -58,9 +58,9 @@ typedef struct VaryRef *vary; } opcode; -int n_opcodes; -opcode **opcodes; -opcode *op; +static int n_opcodes; +static opcode **opcodes; +static opcode *op; typedef struct { @@ -71,17 +71,17 @@ typedef struct unsigned char *patterns; } Vary; -Vary **vary = 0; -int n_varies = 0; +static Vary **vary = 0; +static int n_varies = 0; -unsigned char cur_bits[MAX_BYTES + 1]; +static unsigned char cur_bits[MAX_BYTES + 1]; -char *orig_filename; +static char *orig_filename; -FILE *sim_log = 0; +static FILE *sim_log = 0; #define lprintf if (sim_log) fprintf -opcode prefix_text, suffix_text; +static opcode prefix_text, suffix_text; typedef enum { @@ -101,7 +101,7 @@ typedef struct Indirect } u; } Indirect; -Indirect indirect[256]; +static Indirect indirect[256]; static int next_varybits (int bits, opcode * op, int byte) @@ -157,7 +157,7 @@ valid_varybits (int bits, opcode * op, int byte) return 1; } -char * +static char * prmb (int mask, int bits) { static char buf[8][30]; @@ -195,7 +195,7 @@ op_cmp (const void *va, const void *vb) return strcmp (a->id, b->id); } -void +static void dump_lines (opcode * op, int level, Indirect * ind) { char *varnames[40]; @@ -289,7 +289,7 @@ dump_lines (opcode * op, int level, Indirect * ind) printf ("%*s}\n", level, ""); } -void +static void store_opcode_bits (opcode * op, int byte, Indirect * ind) { int bits = op->b[byte].decodable_bits; @@ -335,7 +335,7 @@ store_opcode_bits (opcode * op, int byte, Indirect * ind) while ((bits = next_varybits (bits, op, byte)) != 0); } -void +static void emit_indirect (Indirect * ind, int byte) { int unsup = 0; |