diff options
Diffstat (limited to 'src/emu')
| -rw-r--r-- | src/emu/cpu/dsp32/dsp32dis.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/h83002/h8disasm.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/i4004/i4004.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/i8085/i8085.c | 4 | ||||
| -rw-r--r-- | src/emu/cpu/jaguar/jagdasm.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/mb86233/mb86233d.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/mips/r3kdasm.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/sharc/sharcdsm.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/ssp1601/ssp1601d.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/tms0980/tms0980d.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/tms32031/dis32031.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/z8/z8dasm.c | 4 | ||||
| -rw-r--r-- | src/emu/sound/tms5110.c | 2 |
13 files changed, 15 insertions, 15 deletions
diff --git a/src/emu/cpu/dsp32/dsp32dis.c b/src/emu/cpu/dsp32/dsp32dis.c index dca729625a1..2354c380479 100644 --- a/src/emu/cpu/dsp32/dsp32dis.c +++ b/src/emu/cpu/dsp32/dsp32dis.c @@ -196,7 +196,7 @@ static const char *dasm_PI(UINT16 bits, char *buffer) } -unsigned dasm_dsp32(char *buffer, unsigned pc, UINT32 op) +static unsigned dasm_dsp32(char *buffer, unsigned pc, UINT32 op) { UINT32 flags = 0; diff --git a/src/emu/cpu/h83002/h8disasm.c b/src/emu/cpu/h83002/h8disasm.c index d01d35ab4d4..d0c1883c2ad 100644 --- a/src/emu/cpu/h83002/h8disasm.c +++ b/src/emu/cpu/h83002/h8disasm.c @@ -29,7 +29,7 @@ static UINT32 h8disasm_7(UINT32 address, UINT32 opcode, char *output, const UINT #define h8_mem_read16(x) ((oprom[x] << 8) | oprom[(x) + 1]) #define h8_mem_read32(x) ((oprom[x] << 24) | (oprom[(x) + 1] << 16) | (oprom[(x) + 2] << 8) | oprom[(x) + 3]) -offs_t h8_disasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 addr_mask) +static offs_t h8_disasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 addr_mask) { UINT32 size = 0; UINT16 opcode; diff --git a/src/emu/cpu/i4004/i4004.c b/src/emu/cpu/i4004/i4004.c index af76a239b36..2c267ee31b1 100644 --- a/src/emu/cpu/i4004/i4004.c +++ b/src/emu/cpu/i4004/i4004.c @@ -14,7 +14,7 @@ #define LOG(x) do { if (VERBOSE) logerror x; } while (0) -static UINT8 kbp_table[] = { 0x00,0x01,0x02,0x0f,0x03,0x0f,0x0f,0x0f,0x04,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f }; +static const UINT8 kbp_table[] = { 0x00,0x01,0x02,0x0f,0x03,0x0f,0x0f,0x0f,0x04,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f }; /*************************************************************************** TYPE DEFINITIONS diff --git a/src/emu/cpu/i8085/i8085.c b/src/emu/cpu/i8085/i8085.c index ef77031c623..ab004b78f2b 100644 --- a/src/emu/cpu/i8085/i8085.c +++ b/src/emu/cpu/i8085/i8085.c @@ -250,7 +250,7 @@ static const cpu_state_table state_table_template = ***************************************************************************/ /* cycles lookup */ -const UINT8 lut_cycles_8080[256]={ +static const UINT8 lut_cycles_8080[256]={ /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ /* 0 */ 4, 10,7, 5, 5, 5, 7, 4, 4, 10,7, 5, 5, 5, 7, 4, /* 1 */ 4, 10,7, 5, 5, 5, 7, 4, 4, 10,7, 5, 5, 5, 7, 4, @@ -268,7 +268,7 @@ const UINT8 lut_cycles_8080[256]={ /* D */ 5, 10,10,10,11,11,7, 11,5, 10,10,10,11,11,7, 11, /* E */ 5, 10,10,18,11,11,7, 11,5, 5, 10,5, 11,11,7, 11, /* F */ 5, 10,10,4, 11,11,7, 11,5, 5, 10,4, 11,11,7, 11 }; -const UINT8 lut_cycles_8085[256]={ +static const UINT8 lut_cycles_8085[256]={ /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ /* 0 */ 4, 10,7, 6, 4, 4, 7, 4, 10,10,7, 6, 4, 4, 7, 4, /* 1 */ 7, 10,7, 6, 4, 4, 7, 4, 10,10,7, 6, 4, 4, 7, 4, diff --git a/src/emu/cpu/jaguar/jagdasm.c b/src/emu/cpu/jaguar/jagdasm.c index b06dadd60b9..060a780b1e4 100644 --- a/src/emu/cpu/jaguar/jagdasm.c +++ b/src/emu/cpu/jaguar/jagdasm.c @@ -76,7 +76,7 @@ INLINE char *signed_16bit(INT16 val) return temp; } -unsigned dasmjag(int variant, char *buffer, unsigned pc, const UINT8 *oprom) +static unsigned dasmjag(int variant, char *buffer, unsigned pc, const UINT8 *oprom) { UINT32 flags = 0; int op = ROPCODE(0); diff --git a/src/emu/cpu/mb86233/mb86233d.c b/src/emu/cpu/mb86233/mb86233d.c index c75986105b1..e468eb844e2 100644 --- a/src/emu/cpu/mb86233/mb86233d.c +++ b/src/emu/cpu/mb86233/mb86233d.c @@ -372,7 +372,7 @@ static char * ALU( UINT32 alu) return buf; } -unsigned dasm_mb86233(char *buffer, UINT32 opcode ) +static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) { char *p = buffer; UINT32 grp = ( opcode >> 26 ) & 0x3f; diff --git a/src/emu/cpu/mips/r3kdasm.c b/src/emu/cpu/mips/r3kdasm.c index 171efcc2f5a..c7ce7ea7135 100644 --- a/src/emu/cpu/mips/r3kdasm.c +++ b/src/emu/cpu/mips/r3kdasm.c @@ -232,7 +232,7 @@ static UINT32 dasm_cop1(UINT32 pc, UINT32 op, char *buffer) return flags; } -unsigned dasmr3k(char *buffer, unsigned pc, UINT32 op) +static unsigned dasmr3k(char *buffer, unsigned pc, UINT32 op) { int rs = (op >> 21) & 31; int rt = (op >> 16) & 31; diff --git a/src/emu/cpu/sharc/sharcdsm.c b/src/emu/cpu/sharc/sharcdsm.c index 2049afe2ddd..3cf13223d22 100644 --- a/src/emu/cpu/sharc/sharcdsm.c +++ b/src/emu/cpu/sharc/sharcdsm.c @@ -1152,7 +1152,7 @@ static void build_dasm_table(void) } } -UINT32 sharc_dasm_one(char *buffer, offs_t pc, UINT64 opcode) +static UINT32 sharc_dasm_one(char *buffer, offs_t pc, UINT64 opcode) { #define DEFAULT_DASM_WIDTH (64) diff --git a/src/emu/cpu/ssp1601/ssp1601d.c b/src/emu/cpu/ssp1601/ssp1601d.c index 30b8eebbff4..4563eb7c202 100644 --- a/src/emu/cpu/ssp1601/ssp1601d.c +++ b/src/emu/cpu/ssp1601/ssp1601d.c @@ -78,7 +78,7 @@ static char *get_cond(int op) } -unsigned dasm_ssp1601(char *buffer, unsigned pc, const UINT8 *oprom) +static unsigned dasm_ssp1601(char *buffer, unsigned pc, const UINT8 *oprom) { const UINT8 *base_oprom; UINT16 op; diff --git a/src/emu/cpu/tms0980/tms0980d.c b/src/emu/cpu/tms0980/tms0980d.c index da86411996e..9062d744850 100644 --- a/src/emu/cpu/tms0980/tms0980d.c +++ b/src/emu/cpu/tms0980/tms0980d.c @@ -30,7 +30,7 @@ enum e_addressing { }; -static const char *s_mnemonic[] = { +static const char *const s_mnemonic[] = { "a10aac", "a6aac", "a8aac", "ac1ac", "acacc", "acnaa", "alec", "alem", "amaac", "branch", "call", "ccla", "cla", "clo", "comc", "comx", "comx8", "cpaiz", "ctmdyn", "dan", "dman", "dmea", "dnaa", "dyn", "ia", "imac", "iyc", "kne", "knez", "ldp", "ldx", "ldx", "mnea", "mnez", diff --git a/src/emu/cpu/tms32031/dis32031.c b/src/emu/cpu/tms32031/dis32031.c index d7a7a1c45ea..289536f0b8f 100644 --- a/src/emu/cpu/tms32031/dis32031.c +++ b/src/emu/cpu/tms32031/dis32031.c @@ -373,7 +373,7 @@ static void disasm_parallel_storestore(const char *opstring1, const char *opstri -unsigned dasm_tms32031(char *buffer, unsigned pc, UINT32 op) +static unsigned dasm_tms32031(char *buffer, unsigned pc, UINT32 op) { UINT32 flags = 0; diff --git a/src/emu/cpu/z8/z8dasm.c b/src/emu/cpu/z8/z8dasm.c index f1992a79ff8..3fbfd944d7d 100644 --- a/src/emu/cpu/z8/z8dasm.c +++ b/src/emu/cpu/z8/z8dasm.c @@ -6,7 +6,7 @@ CONSTANTS ***************************************************************************/ -static const char* REGISTER_NAME[256] = +static const char *const REGISTER_NAME[256] = { "P0", "P1", "P2", "P3", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", @@ -26,7 +26,7 @@ static const char* REGISTER_NAME[256] = "SIO", "TMR", "T1", "PRE1", "T0", "PRE0", "P2M", "P3M", "P01M", "IPR", "IRQ", "IMR", "FLAGS", "RP", "SPH", "SPL" }; -static const char* CONDITION_CODE[16] = +static const char *const CONDITION_CODE[16] = { "F", "LT", "LE", "ULE", "OV", "MI", "Z", "C", "", "GE", "GT", "UGT", "NOV", "PL", "NZ", "NC" diff --git a/src/emu/sound/tms5110.c b/src/emu/sound/tms5110.c index 3e86b6dcd19..27a108f8205 100644 --- a/src/emu/sound/tms5110.c +++ b/src/emu/sound/tms5110.c @@ -217,7 +217,7 @@ void tms5110_set_variant(tms5110_state *tms, int variant) } -void register_for_save_states(tms5110_state *tms) +static void register_for_save_states(tms5110_state *tms) { state_save_register_device_item_array(tms->device, 0, tms->fifo); state_save_register_device_item(tms->device, 0, tms->fifo_head); |
