summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/emu/config.c6
-rw-r--r--src/emu/config.h4
-rw-r--r--src/emu/cpu/adsp2100/2100ops.c4
-rw-r--r--src/emu/cpu/adsp2100/adsp2100.c22
-rw-r--r--src/emu/cpu/drcfe.c6
-rw-r--r--src/emu/cpu/drcfe.h4
-rw-r--r--src/emu/cpu/mips/mdrc64.c6
-rw-r--r--src/emu/cpu/z80gb/z80gb.c10
-rw-r--r--src/emu/cpu/z80gb/z80gb.h2
-rw-r--r--src/emu/cpuintrf.h80
-rw-r--r--src/emu/debug/debugcpu.c2
-rw-r--r--src/emu/debug/debugcpu.h6
-rw-r--r--src/emu/input.c4
-rw-r--r--src/emu/input.h4
-rw-r--r--src/emu/machine/pit8253.c12
-rw-r--r--src/emu/machine/pit8253.h2
-rw-r--r--src/emu/mame.c4
-rw-r--r--src/emu/mame.h4
-rw-r--r--src/emu/memory.c4
-rw-r--r--src/emu/output.c6
-rw-r--r--src/emu/output.h6
-rw-r--r--src/emu/render.c12
-rw-r--r--src/emu/render.h4
-rw-r--r--src/emu/sound/k053260.h2
-rw-r--r--src/emu/sound/ymz280b.c2
-rw-r--r--src/emu/streams.c4
-rw-r--r--src/emu/streams.h4
-rw-r--r--src/emu/tilemap.c14
-rw-r--r--src/emu/tilemap.h6
-rw-r--r--src/emu/timer.c10
-rw-r--r--src/emu/timer.h8
-rw-r--r--src/emu/uimenu.c4
-rw-r--r--src/emu/uimenu.h4
-rw-r--r--src/emu/video.c4
-rw-r--r--src/emu/video.h6
-rw-r--r--src/emu/video/poly.c14
-rw-r--r--src/emu/video/poly.h14
-rw-r--r--src/emu/video/vooddefs.h2
-rw-r--r--src/lib/util/chd.h4
-rw-r--r--src/mame/drivers/ksys573.c8
-rw-r--r--src/mame/drivers/namcoic.c2
-rw-r--r--src/mame/includes/atari.h2
-rw-r--r--src/mame/machine/atarigen.c8
-rw-r--r--src/mame/machine/atarigen.h8
-rw-r--r--src/mame/machine/mcr.c2
-rw-r--r--src/mame/video/atari.c6
-rw-r--r--src/mame/video/atarimo.c2
-rw-r--r--src/mame/video/atarimo.h4
-rw-r--r--src/mame/video/galaxian.c2
-rw-r--r--src/mame/video/konamiic.c2
-rw-r--r--src/mame/video/m62.c4
-rw-r--r--src/mame/video/madalien.c2
-rw-r--r--src/mame/video/midvunit.c2
-rw-r--r--src/mame/video/midzeus.c2
-rw-r--r--src/mame/video/midzeus2.c2
-rw-r--r--src/mame/video/model2.c2
-rw-r--r--src/mame/video/model3.c2
-rw-r--r--src/mame/video/namcona1.c2
-rw-r--r--src/mame/video/segaic16.c4
-rw-r--r--src/mame/video/taitoic.c6
-rw-r--r--src/mame/video/wc90.c4
-rw-r--r--src/mame/video/zaxxon.c2
62 files changed, 196 insertions, 200 deletions
diff --git a/src/emu/config.c b/src/emu/config.c
index 277426186eb..7da3baf3115 100644
--- a/src/emu/config.c
+++ b/src/emu/config.c
@@ -35,8 +35,8 @@ struct _config_type
{
struct _config_type * next; /* next in line */
const char * name; /* node name */
- config_callback load; /* load callback */
- config_callback save; /* save callback */
+ config_callback_func load; /* load callback */
+ config_callback_func save; /* save callback */
};
@@ -86,7 +86,7 @@ void config_init(running_machine *machine)
*
*************************************/
-void config_register(const char *nodename, config_callback load, config_callback save)
+void config_register(const char *nodename, config_callback_func load, config_callback_func save)
{
config_type *newtype;
config_type **ptype;
diff --git a/src/emu/config.h b/src/emu/config.h
index 11d4f15d8d7..364c0460257 100644
--- a/src/emu/config.h
+++ b/src/emu/config.h
@@ -43,7 +43,7 @@ enum
*
*************************************/
-typedef void (*config_callback)(int config_type, xml_data_node *parentnode);
+typedef void (*config_callback_func)(int config_type, xml_data_node *parentnode);
@@ -54,7 +54,7 @@ typedef void (*config_callback)(int config_type, xml_data_node *parentnode);
*************************************/
void config_init(running_machine *machine);
-void config_register(const char *nodename, config_callback load, config_callback save);
+void config_register(const char *nodename, config_callback_func load, config_callback_func save);
int config_load_settings(running_machine *machine);
void config_save_settings(running_machine *machine);
diff --git a/src/emu/cpu/adsp2100/2100ops.c b/src/emu/cpu/adsp2100/2100ops.c
index 403b69bd77d..c088103bbe5 100644
--- a/src/emu/cpu/adsp2100/2100ops.c
+++ b/src/emu/cpu/adsp2100/2100ops.c
@@ -90,8 +90,8 @@ INLINE void set_mstat(int new_value)
adsp2100.alt = temp;
}
if ((new_value ^ adsp2100.mstat) & MSTAT_TIMER)
- if (adsp2100.timer_callback)
- (*adsp2100.timer_callback)((new_value & MSTAT_TIMER) != 0);
+ if (adsp2100.timer_fired_func)
+ (*adsp2100.timer_fired_func)((new_value & MSTAT_TIMER) != 0);
if (new_value & MSTAT_STICKYV)
adsp2100.astat_clear = ~(CFLAG | NFLAG | ZFLAG);
else
diff --git a/src/emu/cpu/adsp2100/adsp2100.c b/src/emu/cpu/adsp2100/adsp2100.c
index b597a981d5a..3917c2b453a 100644
--- a/src/emu/cpu/adsp2100/adsp2100.c
+++ b/src/emu/cpu/adsp2100/adsp2100.c
@@ -246,7 +246,7 @@ typedef struct
/* other callbacks */
RX_CALLBACK sport_rx_callback;
TX_CALLBACK sport_tx_callback;
- ADSP2100_TIMER_CALLBACK timer_callback;
+ ADSP2100_TIMER_CALLBACK timer_fired_func;
} adsp2100_Regs;
@@ -2174,7 +2174,7 @@ static void adsp2101_set_info(UINT32 state, cpuinfo *info)
/* --- the following bits of info are set as pointers to data or functions --- */
case CPUINFO_PTR_ADSP2100_RX_HANDLER: adsp2100.sport_rx_callback = (RX_CALLBACK)info->f; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: adsp2100.sport_tx_callback = (TX_CALLBACK)info->f; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_callback = (ADSP2100_TIMER_CALLBACK)info->f; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_fired_func = (ADSP2100_TIMER_CALLBACK)info->f; break;
default:
adsp21xx_set_info(state, info);
@@ -2202,7 +2202,7 @@ void adsp2101_get_info(UINT32 state, cpuinfo *info)
case CPUINFO_PTR_ADSP2100_RX_HANDLER: info->f = (genf *)adsp2100.sport_rx_callback; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: info->f = (genf *)adsp2100.sport_tx_callback; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_callback; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_fired_func; break;
/* --- the following bits of info are returned as NULL-terminated strings --- */
case CPUINFO_STR_NAME: strcpy(info->s, "ADSP2101"); break;
@@ -2262,7 +2262,7 @@ static void adsp2104_set_info(UINT32 state, cpuinfo *info)
/* --- the following bits of info are set as pointers to data or functions --- */
case CPUINFO_PTR_ADSP2100_RX_HANDLER: adsp2100.sport_rx_callback = (RX_CALLBACK)info->f; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: adsp2100.sport_tx_callback = (TX_CALLBACK)info->f; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_callback = (ADSP2100_TIMER_CALLBACK)info->f; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_fired_func = (ADSP2100_TIMER_CALLBACK)info->f; break;
default:
adsp21xx_set_info(state, info);
@@ -2290,7 +2290,7 @@ void adsp2104_get_info(UINT32 state, cpuinfo *info)
case CPUINFO_PTR_ADSP2100_RX_HANDLER: info->f = (genf *)adsp2100.sport_rx_callback; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: info->f = (genf *)adsp2100.sport_tx_callback; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_callback; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_fired_func; break;
/* --- the following bits of info are returned as NULL-terminated strings --- */
case CPUINFO_STR_NAME: strcpy(info->s, "ADSP2104"); break;
@@ -2347,7 +2347,7 @@ static void adsp2105_set_info(UINT32 state, cpuinfo *info)
/* --- the following bits of info are set as pointers to data or functions --- */
case CPUINFO_PTR_ADSP2100_RX_HANDLER: adsp2100.sport_rx_callback = (RX_CALLBACK)info->f; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: adsp2100.sport_tx_callback = (TX_CALLBACK)info->f; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_callback = (ADSP2100_TIMER_CALLBACK)info->f; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_fired_func = (ADSP2100_TIMER_CALLBACK)info->f; break;
default:
adsp21xx_set_info(state, info);
@@ -2372,7 +2372,7 @@ void adsp2105_get_info(UINT32 state, cpuinfo *info)
case CPUINFO_PTR_ADSP2100_RX_HANDLER: info->f = (genf *)adsp2100.sport_rx_callback; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: info->f = (genf *)adsp2100.sport_tx_callback; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_callback; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_fired_func; break;
/* --- the following bits of info are returned as NULL-terminated strings --- */
case CPUINFO_STR_NAME: strcpy(info->s, "ADSP2105"); break;
@@ -2432,7 +2432,7 @@ static void adsp2115_set_info(UINT32 state, cpuinfo *info)
/* --- the following bits of info are set as pointers to data or functions --- */
case CPUINFO_PTR_ADSP2100_RX_HANDLER: adsp2100.sport_rx_callback = (RX_CALLBACK)info->f; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: adsp2100.sport_tx_callback = (TX_CALLBACK)info->f; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_callback = (ADSP2100_TIMER_CALLBACK)info->f; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_fired_func = (ADSP2100_TIMER_CALLBACK)info->f; break;
default:
adsp21xx_set_info(state, info);
@@ -2460,7 +2460,7 @@ void adsp2115_get_info(UINT32 state, cpuinfo *info)
case CPUINFO_PTR_ADSP2100_RX_HANDLER: info->f = (genf *)adsp2100.sport_rx_callback; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: info->f = (genf *)adsp2100.sport_tx_callback; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_callback; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_fired_func; break;
/* --- the following bits of info are returned as NULL-terminated strings --- */
case CPUINFO_STR_NAME: strcpy(info->s, "ADSP2115"); break;
@@ -2523,7 +2523,7 @@ static void adsp2181_set_info(UINT32 state, cpuinfo *info)
/* --- the following bits of info are set as pointers to data or functions --- */
case CPUINFO_PTR_ADSP2100_RX_HANDLER: adsp2100.sport_rx_callback = (RX_CALLBACK)info->f; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: adsp2100.sport_tx_callback = (TX_CALLBACK)info->f; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_callback = (ADSP2100_TIMER_CALLBACK)info->f; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: adsp2100.timer_fired_func = (ADSP2100_TIMER_CALLBACK)info->f; break;
default:
adsp21xx_set_info(state, info);
@@ -2558,7 +2558,7 @@ void adsp2181_get_info(UINT32 state, cpuinfo *info)
case CPUINFO_PTR_ADSP2100_RX_HANDLER: info->f = (genf *)adsp2100.sport_rx_callback; break;
case CPUINFO_PTR_ADSP2100_TX_HANDLER: info->f = (genf *)adsp2100.sport_tx_callback; break;
- case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_callback; break;
+ case CPUINFO_PTR_ADSP2100_TIMER_HANDLER: info->f = (genf *)adsp2100.timer_fired_func; break;
/* --- the following bits of info are returned as NULL-terminated strings --- */
case CPUINFO_STR_NAME: strcpy(info->s, "ADSP2181"); break;
diff --git a/src/emu/cpu/drcfe.c b/src/emu/cpu/drcfe.c
index e0a4a966199..05dbe43b5c4 100644
--- a/src/emu/cpu/drcfe.c
+++ b/src/emu/cpu/drcfe.c
@@ -44,12 +44,12 @@ struct _drcfe_state
UINT32 window_end; /* code window end offset = startpc + window_end */
UINT32 max_sequence; /* maximum instructions to include in a sequence */
- drcfe_describe describe; /* callback to describe a single instruction */
+ drcfe_describe_func describe; /* callback to describe a single instruction */
void * param; /* parameter for the callback */
/* CPU parameters */
offs_t pageshift; /* shift to convert address to a page index */
- cpufunc_translate translate; /* pointer to translation function */
+ cpu_translate_func translate; /* pointer to translation function */
/* opcode descriptor arrays */
opcode_desc * desc_live_list; /* head of list of live descriptions */
@@ -135,7 +135,7 @@ drcfe_state *drcfe_init(const drcfe_config *config, void *param)
/* initialize the state */
drcfe->pageshift = activecpu_page_shift(ADDRESS_SPACE_PROGRAM);
- drcfe->translate = (cpufunc_translate)activecpu_get_info_fct(CPUINFO_PTR_TRANSLATE);
+ drcfe->translate = (cpu_translate_func)activecpu_get_info_fct(CPUINFO_PTR_TRANSLATE);
return drcfe;
}
diff --git a/src/emu/cpu/drcfe.h b/src/emu/cpu/drcfe.h
index c944bcd2621..a2fefe04834 100644
--- a/src/emu/cpu/drcfe.h
+++ b/src/emu/cpu/drcfe.h
@@ -146,7 +146,7 @@ struct _opcode_desc
/* callback function that is used to describe a single opcode */
-typedef int (*drcfe_describe)(void *param, opcode_desc *desc);
+typedef int (*drcfe_describe_func)(void *param, opcode_desc *desc);
/* description of a given opcode */
@@ -156,7 +156,7 @@ struct _drcfe_config
UINT32 window_start; /* code window start offset = startpc - window_start */
UINT32 window_end; /* code window end offset = startpc + window_end */
UINT32 max_sequence; /* maximum instructions to include in a sequence */
- drcfe_describe describe; /* callback to describe a single instruction */
+ drcfe_describe_func describe; /* callback to describe a single instruction */
};
/*
diff --git a/src/emu/cpu/mips/mdrc64.c b/src/emu/cpu/mips/mdrc64.c
index c1fa7b9a7e7..4ce9f6b97d4 100644
--- a/src/emu/cpu/mips/mdrc64.c
+++ b/src/emu/cpu/mips/mdrc64.c
@@ -210,11 +210,11 @@ struct _compiler_state
typedef struct _oob_handler oob_handler;
-typedef void (*oob_callback)(drc_core *drc, oob_handler *oob, void *param);
+typedef void (*oob_callback_func)(drc_core *drc, oob_handler *oob, void *param);
struct _oob_handler
{
- oob_callback callback; /* pointer to callback function */
+ oob_callback_func callback; /* pointer to callback function */
void * param; /* callback parameter */
const opcode_desc * desc; /* pointer to description of relevant instruction */
emit_link link; /* link to source of the branch */
@@ -365,7 +365,7 @@ static const char *const x86regname[] = {"rax", "rcx", "rdx", "rbx", "rsp", "rbp
bounds callback for later
-------------------------------------------------*/
-INLINE void oob_request_callback(drc_core *drc, UINT8 condition, oob_callback callback, const compiler_state *compiler, const opcode_desc *desc, void *param)
+INLINE void oob_request_callback(drc_core *drc, UINT8 condition, oob_callback_funcs callback, const compiler_state *compiler, const opcode_desc *desc, void *param)
{
oob_handler *oob = &mips3.drcdata->ooblist[mips3.drcdata->oobcount++];
diff --git a/src/emu/cpu/z80gb/z80gb.c b/src/emu/cpu/z80gb/z80gb.c
index c362c8613fe..003bc2e6794 100644
--- a/src/emu/cpu/z80gb/z80gb.c
+++ b/src/emu/cpu/z80gb/z80gb.c
@@ -46,8 +46,8 @@
#define FLAG_C 0x10
#define CYCLES_PASSED(X) z80gb_ICount -= ((X) / (Regs.w.gb_speed)); \
- if ( Regs.w.timer_callback ) { \
- Regs.w.timer_callback( X ); \
+ if ( Regs.w.timer_fired_func ) { \
+ Regs.w.timer_fired_func( X ); \
}
typedef struct {
@@ -65,7 +65,7 @@ typedef struct {
int ei_delay;
int (*irq_callback)(int irqline);
/* Timer stuff */
- void (*timer_callback)(int cycles);
+ void (*timer_fired_func)(int cycles);
/* Fetch & execute related */
int execution_state;
UINT8 op;
@@ -197,7 +197,7 @@ static void z80gb_reset(void)
Regs.w.HL = 0x0000;
Regs.w.SP = 0x0000;
Regs.w.PC = 0x0000;
- Regs.w.timer_callback = NULL;
+ Regs.w.timer_fired_func = NULL;
Regs.w.features = Z80GB_FEATURE_HALT_BUG;
if (Regs.w.config)
{
@@ -209,7 +209,7 @@ static void z80gb_reset(void)
Regs.w.SP = Regs.w.config->regs[4];
Regs.w.PC = Regs.w.config->regs[5];
}
- Regs.w.timer_callback = Regs.w.config->timer_callback;
+ Regs.w.timer_fired_func = Regs.w.config->timer_fired_func;
Regs.w.features = Regs.w.config->features;
}
Regs.w.enable = 0;
diff --git a/src/emu/cpu/z80gb/z80gb.h b/src/emu/cpu/z80gb/z80gb.h
index 0e1d7e6cd39..fa4ee22353f 100644
--- a/src/emu/cpu/z80gb/z80gb.h
+++ b/src/emu/cpu/z80gb/z80gb.h
@@ -6,7 +6,7 @@
typedef struct {
const UINT16 *regs;
UINT8 features;
- void (*timer_callback)(int cycles);
+ void (*timer_fired_func)(int cycles);
} Z80GB_CONFIG;
enum {
diff --git a/src/emu/cpuintrf.h b/src/emu/cpuintrf.h
index 0a27dfe0532..d3d91c1acce 100644
--- a/src/emu/cpuintrf.h
+++ b/src/emu/cpuintrf.h
@@ -198,21 +198,21 @@ typedef union _cpuinfo cpuinfo;
/* define the various callback functions */
-typedef void (*cpufunc_get_info)(UINT32 state, cpuinfo *info);
-typedef void (*cpufunc_set_info)(UINT32 state, cpuinfo *info);
-typedef void (*cpufunc_get_context)(void *buffer);
-typedef void (*cpufunc_set_context)(void *buffer);
-typedef void (*cpufunc_init)(int index, int clock, const void *config, int (*irqcallback)(int));
-typedef void (*cpufunc_reset)(void);
-typedef void (*cpufunc_exit)(void);
-typedef int (*cpufunc_execute)(int cycles);
-typedef void (*cpufunc_burn)(int cycles);
-typedef offs_t (*cpufunc_disassemble)(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
-typedef int (*cpufunc_translate)(int space, offs_t *address);
-typedef int (*cpufunc_read)(int space, UINT32 offset, int size, UINT64 *value);
-typedef int (*cpufunc_write)(int space, UINT32 offset, int size, UINT64 value);
-typedef int (*cpufunc_readop)(UINT32 offset, int size, UINT64 *value);
-typedef void (*cpufunc_setup_commands)(void);
+typedef void (*cpu_get_info_func)(UINT32 state, cpuinfo *info);
+typedef void (*cpu_set_info_func)(UINT32 state, cpuinfo *info);
+typedef void (*cpu_get_context_func)(void *buffer);
+typedef void (*cpu_set_context_func)(void *buffer);
+typedef void (*cpu_init_func)(int index, int clock, const void *config, int (*irqcallback)(int));
+typedef void (*cpu_reset_func)(void);
+typedef void (*cpu_exit_func)(void);
+typedef int (*cpu_execute_func)(int cycles);
+typedef void (*cpu_burn_func)(int cycles);
+typedef offs_t (*cpu_disassemble_func)(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
+typedef int (*cpu_translate_func)(int space, offs_t *address);
+typedef int (*cpu_read_func)(int space, UINT32 offset, int size, UINT64 *value);
+typedef int (*cpu_write_func)(int space, UINT32 offset, int size, UINT64 value);
+typedef int (*cpu_readop_func)(UINT32 offset, int size, UINT64 *value);
+typedef void (*cpu_setup_commands_func)(void);
/* cpuinfo union used to pass data to/from the get_info/set_info functions */
@@ -223,20 +223,20 @@ union _cpuinfo
genf * f; /* generic function pointers */
char * s; /* generic strings */
- cpufunc_set_info setinfo; /* CPUINFO_PTR_SET_INFO */
- cpufunc_get_context getcontext; /* CPUINFO_PTR_GET_CONTEXT */
- cpufunc_set_context setcontext; /* CPUINFO_PTR_SET_CONTEXT */
- cpufunc_init init; /* CPUINFO_PTR_INIT */
- cpufunc_reset reset; /* CPUINFO_PTR_RESET */
- cpufunc_exit exit; /* CPUINFO_PTR_EXIT */
- cpufunc_execute execute; /* CPUINFO_PTR_EXECUTE */
- cpufunc_burn burn; /* CPUINFO_PTR_BURN */
- cpufunc_disassemble disassemble; /* CPUINFO_PTR_DISASSEMBLE */
- cpufunc_translate translate; /* CPUINFO_PTR_TRANSLATE */
- cpufunc_read read; /* CPUINFO_PTR_READ */
- cpufunc_write write; /* CPUINFO_PTR_WRITE */
- cpufunc_readop readop; /* CPUINFO_PTR_READOP */
- cpufunc_setup_commands setup_commands; /* CPUINFO_PTR_DEBUG_SETUP_COMMANDS */
+ cpu_set_info_func setinfo; /* CPUINFO_PTR_SET_INFO */
+ cpu_get_context_func getcontext; /* CPUINFO_PTR_GET_CONTEXT */
+ cpu_set_context_func setcontext; /* CPUINFO_PTR_SET_CONTEXT */
+ cpu_init_func init; /* CPUINFO_PTR_INIT */
+ cpu_reset_func reset; /* CPUINFO_PTR_RESET */
+ cpu_exit_func exit; /* CPUINFO_PTR_EXIT */
+ cpu_execute_func execute; /* CPUINFO_PTR_EXECUTE */
+ cpu_burn_func burn; /* CPUINFO_PTR_BURN */
+ cpu_disassemble_func disassemble; /* CPUINFO_PTR_DISASSEMBLE */
+ cpu_translate_func translate; /* CPUINFO_PTR_TRANSLATE */
+ cpu_read_func read; /* CPUINFO_PTR_READ */
+ cpu_write_func write; /* CPUINFO_PTR_WRITE */
+ cpu_readop_func readop; /* CPUINFO_PTR_READOP */
+ cpu_setup_commands_func setup_commands; /* CPUINFO_PTR_DEBUG_SETUP_COMMANDS */
int * icount; /* CPUINFO_PTR_INSTRUCTION_COUNTER */
construct_map_t internal_map; /* CPUINFO_PTR_INTERNAL_MEMORY_MAP */
};
@@ -246,17 +246,17 @@ typedef struct _cpu_interface cpu_interface;
struct _cpu_interface
{
/* table of core functions */
- cpufunc_get_info get_info;
- cpufunc_set_info set_info;
- cpufunc_get_context get_context;
- cpufunc_set_context set_context;
- cpufunc_init init;
- cpufunc_reset reset;
- cpufunc_exit exit;
- cpufunc_execute execute;
- cpufunc_burn burn;
- cpufunc_disassemble disassemble;
- cpufunc_translate translate;
+ cpu_get_info_func get_info;
+ cpu_set_info_func set_info;
+ cpu_get_context_func get_context;
+ cpu_set_context_func set_context;
+ cpu_init_func init;
+ cpu_reset_func reset;
+ cpu_exit_func exit;
+ cpu_execute_func execute;
+ cpu_burn_func burn;
+ cpu_disassemble_func disassemble;
+ cpu_translate_func translate;
/* other info */
size_t context_size;
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c
index 8a35e880952..0ba3ebd02d2 100644
--- a/src/emu/debug/debugcpu.c
+++ b/src/emu/debug/debugcpu.c
@@ -1100,7 +1100,7 @@ static void standard_debug_hook_write(int spacenum, int size, offs_t address, UI
for the specified CPU
-------------------------------------------------*/
-void debug_get_memory_hooks(int cpunum, debug_hook_read_ptr *read, debug_hook_write_ptr *write)
+void debug_get_memory_hooks(int cpunum, debug_hook_read_func *read, debug_hook_write_func *write)
{
memory_hook_cpunum = cpunum;
diff --git a/src/emu/debug/debugcpu.h b/src/emu/debug/debugcpu.h
index 8cbffe22cfa..7eaeaf383e5 100644
--- a/src/emu/debug/debugcpu.h
+++ b/src/emu/debug/debugcpu.h
@@ -54,8 +54,8 @@ enum
TYPE DEFINITIONS
***************************************************************************/
-typedef void (*debug_hook_read_ptr)(int spacenum, int size, offs_t address);
-typedef void (*debug_hook_write_ptr)(int spacenum, int size, offs_t address, UINT64 data);
+typedef void (*debug_hook_read_func)(int spacenum, int size, offs_t address);
+typedef void (*debug_hook_write_func)(int spacenum, int size, offs_t address, UINT64 data);
typedef struct _debug_trace_info debug_trace_info;
@@ -183,7 +183,7 @@ void debug_flush_traces(void);
/* debugging hooks */
void debug_interrupt_hook(int cpunum, int irqline);
-void debug_get_memory_hooks(int cpunum, debug_hook_read_ptr *read, debug_hook_write_ptr *write);
+void debug_get_memory_hooks(int cpunum, debug_hook_read_func *read, debug_hook_write_func *write);
void debug_set_instruction_hook(int cpunum, int (*hook)(offs_t pc));
/* execution control */
diff --git a/src/emu/input.c b/src/emu/input.c
index 266b9f3517c..526434b9667 100644
--- a/src/emu/input.c
+++ b/src/emu/input.c
@@ -61,7 +61,7 @@ struct _input_device_item
void * internal; /* internal callback pointer */
input_item_class itemclass; /* class of the item */
input_item_id itemid; /* originally specified item id */
- item_get_state_cb getstate; /* get state callback */
+ item_get_state_func getstate; /* get state callback */
INT32 current; /* current raw value */
INT32 memory; /* "memory" value, to remember where we started during polling */
INT32 oncelatch; /* latched "once" value, cleared after each read */
@@ -689,7 +689,7 @@ input_device *input_device_add(input_device_class devclass, const char *name, vo
input device
-------------------------------------------------*/
-void input_device_item_add(input_device *device, const char *name, void *internal, input_item_id itemid, item_get_state_cb getstate)
+void input_device_item_add(input_device *device, const char *name, void *internal, input_item_id itemid, item_get_state_func getstate)
{
input_device_item *item;
diff --git a/src/emu/input.h b/src/emu/input.h
index ff64545f73a..88eb6fbe8da 100644
--- a/src/emu/input.h
+++ b/src/emu/input.h
@@ -473,7 +473,7 @@ enum
typedef UINT32 input_code;
/* callback for getting the value of an item on a device */
-typedef INT32 (*item_get_state_cb)(void *device_internal, void *item_internal);
+typedef INT32 (*item_get_state_func)(void *device_internal, void *item_internal);
/* (opaque) input device object */
typedef struct _input_device input_device;
@@ -517,7 +517,7 @@ int input_device_set_joystick_map(int devindex, const char *mapstring);
input_device *input_device_add(input_device_class devclass, const char *name, void *internal);
/* add a new item to an input device */
-void input_device_item_add(input_device *device, const char *name, void *internal, input_item_id itemid, item_get_state_cb getstate);
+void input_device_item_add(input_device *device, const char *name, void *internal, input_item_id itemid, item_get_state_func getstate);
diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c
index 88eb208320e..817071294ff 100644
--- a/src/emu/machine/pit8253.c
+++ b/src/emu/machine/pit8253.c
@@ -45,7 +45,7 @@ struct pit8253_timer
{
double clockin; /* input clock frequency in Hz */
- void (*output_callback)(int); /* callback function for when output changes */
+ void (*output_callback_func)(int); /* callback function for when output changes */
void (*freq_callback)(double); /* callback function for when output frequency changes */
attotime last_updated; /* time when last updated */
@@ -272,9 +272,9 @@ static void set_output(struct pit8253_timer *timer,int output)
if (output != timer->output)
{
timer->output = output;
- if (timer->output_callback != NULL)
+ if (timer->output_callback_func != NULL)
{
- timer->output_callback(output);
+ timer->output_callback_func(output);
}
}
}
@@ -602,7 +602,7 @@ static void simulate2(struct pit8253_timer *timer,UINT64 elapsed_cycles)
break;
}
- if (timer->output_callback != NULL)
+ if (timer->output_callback_func != NULL)
{
timer->cycles_to_output = cycles_to_output;
if (cycles_to_output == CYCLES_NEVER || timer->clockin == 0)
@@ -766,10 +766,10 @@ int pit8253_init(int count, const struct pit8253_config *config)
timer = get_timer(pit,timerno);
timer->clockin = pit->config->timer[timerno].clockin;
- timer->output_callback = pit->config->timer[timerno].output_callback;
+ timer->output_callback_func = pit->config->timer[timerno].output_callback_func;
timer->freq_callback = pit->config->timer[timerno].clock_callback;
- if (timer->output_callback == NULL)
+ if (timer->output_callback_func == NULL)
timer->outputtimer = NULL;
else
{
diff --git a/src/emu/machine/pit8253.h b/src/emu/machine/pit8253.h
index a99024b071f..34d0dbcb6b0 100644
--- a/src/emu/machine/pit8253.h
+++ b/src/emu/machine/pit8253.h
@@ -15,7 +15,7 @@ struct pit8253_config
struct
{
double clockin;
- void (*output_callback)(int state);
+ void (*output_callback_func)(int state);
void (*clock_callback)(double clockout);
} timer[3];
};
diff --git a/src/emu/mame.c b/src/emu/mame.c
index 2f8e56bf166..c00bdf5aabe 100644
--- a/src/emu/mame.c
+++ b/src/emu/mame.c
@@ -189,7 +189,7 @@ static core_options *mame_opts;
static UINT8 started_empty;
/* output channels */
-static output_callback output_cb[OUTPUT_CHANNEL_COUNT];
+static output_callback_func output_cb[OUTPUT_CHANNEL_COUNT];
static void *output_cb_param[OUTPUT_CHANNEL_COUNT];
/* the "disclaimer" that should be printed when run with no parameters */
@@ -931,7 +931,7 @@ UINT32 memory_region_flags(running_machine *machine, int num)
channel
-------------------------------------------------*/
-void mame_set_output_channel(output_channel channel, output_callback callback, void *param, output_callback *prevcb, void **prevparam)
+void mame_set_output_channel(output_channel channel, output_callback_func callback, void *param, output_callback_func *prevcb, void **prevparam)
{
assert(channel < OUTPUT_CHANNEL_COUNT);
assert(callback != NULL);
diff --git a/src/emu/mame.h b/src/emu/mame.h
index 37c007875fc..cd36a88487d 100644
--- a/src/emu/mame.h
+++ b/src/emu/mame.h
@@ -157,7 +157,7 @@ extern const char *const memory_region_names[REGION_MAX];
***************************************************************************/
/* output channel callback */
-typedef void (*output_callback)(void *param, const char *format, va_list argptr);
+typedef void (*output_callback_func)(void *param, const char *format, va_list argptr);
/* forward type declarations */
@@ -340,7 +340,7 @@ UINT32 memory_region_flags(running_machine *machine, int num);
/* ----- output management ----- */
/* set the output handler for a channel, returns the current one */
-void mame_set_output_channel(output_channel channel, output_callback callback, void *param, output_callback *prevcb, void **prevparam);
+void mame_set_output_channel(output_channel channel, output_callback_func callback, void *param, output_callback_func *prevcb, void **prevparam);
/* built-in default callbacks */
void mame_file_output_callback(void *param, const char *format, va_list argptr);
diff --git a/src/emu/memory.c b/src/emu/memory.c
index 74f206422ef..90391af3b5d 100644
--- a/src/emu/memory.c
+++ b/src/emu/memory.c
@@ -292,8 +292,8 @@ static cpu_data cpudata[MAX_CPU]; /* data gathered for each CPU */
static bank_data bankdata[STATIC_COUNT]; /* data gathered for each bank */
#ifdef ENABLE_DEBUGGER
-static debug_hook_read_ptr debug_hook_read; /* pointer to debugger callback for memory reads */
-static debug_hook_write_ptr debug_hook_write; /* pointer to debugger callback for memory writes */
+static debug_hook_read_func debug_hook_read; /* pointer to debugger callback for memory reads */
+static debug_hook_write_func debug_hook_write; /* pointer to debugger callback for memory writes */
#endif
static const data_accessors memory_accessors[ADDRESS_SPACES][4][2] =
diff --git a/src/emu/output.c b/src/emu/output.c
index 2baf0401965..795288441e7 100644
--- a/src/emu/output.c
+++ b/src/emu/output.c
@@ -31,7 +31,7 @@ typedef struct _output_notify output_notify;
struct _output_notify
{
output_notify * next; /* link to next item */
- output_notifier notifier; /* callback to call */
+ output_notifier_func notifier; /* callback to call */
void * param; /* parameter to pass the callback */
};
@@ -321,7 +321,7 @@ INT32 output_get_indexed_value(const char *basename, int index)
if NULL is specified
-------------------------------------------------*/
-void output_set_notifier(const char *outname, output_notifier callback, void *param)
+void output_set_notifier(const char *outname, output_notifier_func callback, void *param)
{
output_notify **headptr;
@@ -357,7 +357,7 @@ void output_set_notifier(const char *outname, output_notifier callback, void *pa
notifier for all outputs
-------------------------------------------------*/
-void output_notify_all(output_notifier callback, void *param)
+void output_notify_all(output_notifier_func callback, void *param)
{
output_item *item;
int hash;
diff --git a/src/emu/output.h b/src/emu/output.h
index e5bf0630885..cb71a4f53a6 100644
--- a/src/emu/output.h
+++ b/src/emu/output.h
@@ -21,7 +21,7 @@
TYPE DEFINITIONS
***************************************************************************/
-typedef void (*output_notifier)(const char *outname, INT32 value, void *param);
+typedef void (*output_notifier_func)(const char *outname, INT32 value, void *param);
@@ -45,10 +45,10 @@ INT32 output_get_value(const char *outname);
INT32 output_get_indexed_value(const char *outname, int index);
/* set a notifier on a particular output, or globally if NULL */
-void output_set_notifier(const char *outname, output_notifier callback, void *param);
+void output_set_notifier(const char *outname, output_notifier_func callback, void *param);
/* set a notifier on a particular output, or globally if NULL */
-void output_notify_all(output_notifier callback, void *param);
+void output_notify_all(output_notifier_func callback, void *param);
/* map a name to a unique ID */
UINT32 output_name_to_id(const char *outname);
diff --git a/src/emu/render.c b/src/emu/render.c
index f7ffd6e4ab4..d2ff3e85717 100644
--- a/src/emu/render.c
+++ b/src/emu/render.c
@@ -135,7 +135,7 @@ struct _render_texture
rectangle sbounds; /* source bounds within the bitmap */
UINT32 palettebase; /* palette base within the system palette */
int format; /* format of the texture data */
- texture_scaler scaler; /* scaling callback */
+ texture_scaler_func scaler; /* scaling callback */
void * param; /* scaling callback parameter */
UINT32 curseq; /* current sequence number */
scaled_texture scaled[MAX_TEXTURE_SCALES]; /* array of scaled variants of this texture */
@@ -1940,10 +1940,10 @@ static int remove_clear_extent(const render_bounds *bounds)
INT32 *max = &clear_extents[MAX_CLEAR_EXTENTS];
INT32 *last = &clear_extents[clear_extent_count];
INT32 *ext = &clear_extents[0];
- INT32 boundsx0 = (INT32) ceil(bounds->x0);
- INT32 boundsx1 = (INT32) floor(bounds->x1);
- INT32 boundsy0 = (INT32) ceil(bounds->y0);
- INT32 boundsy1 = (INT32) floor(bounds->y1);
+ INT32 boundsx0 = ceil(bounds->x0);
+ INT32 boundsx1 = floor(bounds->x1);
+ INT32 boundsy0 = ceil(bounds->y0);
+ INT32 boundsy1 = floor(bounds->y1);
INT32 y0, y1 = 0;
/* loop over Y extents */
@@ -2221,7 +2221,7 @@ static void invalidate_all_render_ref(void *refptr)
render_texture_alloc - allocate a new texture
-------------------------------------------------*/
-render_texture *render_texture_alloc(texture_scaler scaler, void *param)
+render_texture *render_texture_alloc(texture_scaler_func scaler, void *param)
{
render_texture *texture;
diff --git a/src/emu/render.h b/src/emu/render.h
index 6d522566c91..85723b65d87 100644
--- a/src/emu/render.h
+++ b/src/emu/render.h
@@ -170,7 +170,7 @@ enum
-------------------------------------------------*/
/* texture scaling callback */
-typedef void (*texture_scaler)(bitmap_t *dest, const bitmap_t *source, const rectangle *sbounds, void *param);
+typedef void (*texture_scaler_func)(bitmap_t *dest, const bitmap_t *source, const rectangle *sbounds, void *param);
@@ -390,7 +390,7 @@ const render_primitive_list *render_target_get_primitives(render_target *target)
/* ----- render texture management ----- */
/* allocate a new texture */
-render_texture *render_texture_alloc(texture_scaler scaler, void *param);
+render_texture *render_texture_alloc(texture_scaler_func scaler, void *param);
/* free an allocated texture */
void render_texture_free(render_texture *texture);
diff --git a/src/emu/sound/k053260.h b/src/emu/sound/k053260.h
index 1240f0729d8..69be6b2a16d 100644
--- a/src/emu/sound/k053260.h
+++ b/src/emu/sound/k053260.h
@@ -8,7 +8,7 @@
struct K053260_interface {
int region; /* memory region of sample ROM(s) */
- timer_callback irq; /* called on SH1 complete cycle ( clock / 32 ) */
+ timer_fired_func irq; /* called on SH1 complete cycle ( clock / 32 ) */
};
diff --git a/src/emu/sound/ymz280b.c b/src/emu/sound/ymz280b.c
index a218036fa88..9b16725d7ad 100644
--- a/src/emu/sound/ymz280b.c
+++ b/src/emu/sound/ymz280b.c
@@ -117,7 +117,7 @@ static TIMER_CALLBACK( update_irq_state_timer_5 );
static TIMER_CALLBACK( update_irq_state_timer_6 );
static TIMER_CALLBACK( update_irq_state_timer_7 );
-static const timer_callback update_irq_state_cb[] =
+static const timer_fired_func update_irq_state_cb[] =
{
update_irq_state_timer_0,
update_irq_state_timer_1,
diff --git a/src/emu/streams.c b/src/emu/streams.c
index 76e1e144bc2..d33278ccc12 100644
--- a/src/emu/streams.c
+++ b/src/emu/streams.c
@@ -145,7 +145,7 @@ struct _sound_stream
INT32 output_base_sampindex; /* sample at base of buffer, relative to the current emulated second */
/* callback information */
- stream_callback callback; /* callback function */
+ stream_update_func callback; /* callback function */
void * param; /* callback function parameter */
};
@@ -348,7 +348,7 @@ void streams_update(running_machine *machine)
stream_create - create a new stream
-------------------------------------------------*/
-sound_stream *stream_create(int inputs, int outputs, int sample_rate, void *param, stream_callback callback)
+sound_stream *stream_create(int inputs, int outputs, int sample_rate, void *param, stream_update_func callback)
{
streams_private *strdata = Machine->streams_data;
int inputnum, outputnum;
diff --git a/src/emu/streams.h b/src/emu/streams.h
index 2bdb80ad20c..8f72bddd886 100644
--- a/src/emu/streams.h
+++ b/src/emu/streams.h
@@ -21,7 +21,7 @@
typedef struct _sound_stream sound_stream;
-typedef void (*stream_callback)(void *param, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
+typedef void (*stream_update_func)(void *param, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
@@ -46,7 +46,7 @@ void streams_update(running_machine *machine);
/* ----- stream configuration and setup ----- */
/* create a new stream */
-sound_stream *stream_create(int inputs, int outputs, int sample_rate, void *param, stream_callback callback);
+sound_stream *stream_create(int inputs, int outputs, int sample_rate, void *param, stream_update_func callback);
/* configure a stream's input */
void stream_set_input(sound_stream *stream, int index, sound_stream *input_stream, int output_index, float gain);
diff --git a/src/emu/tilemap.c b/src/emu/tilemap.c
index c0b86b15c9b..67d33907f0e 100644
--- a/src/emu/tilemap.c
+++ b/src/emu/tilemap.c
@@ -47,8 +47,8 @@ typedef enum
/* internal blitting callbacks */
-typedef void (*blitmask_t)(void *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, UINT8 *pri, UINT32 pcode);
-typedef void (*blitopaque_t)(void *dest, const UINT16 *source, int count, UINT8 *pri, UINT32 pcode);
+typedef void (*blitmask_func)(void *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, UINT8 *pri, UINT32 pcode);
+typedef void (*blitopaque_func)(void *dest, const UINT16 *source, int count, UINT8 *pri, UINT32 pcode);
/* blitting parameters for rendering */
@@ -57,8 +57,8 @@ struct _blit_parameters
{
bitmap_t * bitmap;
rectangle cliprect;
- blitmask_t draw_masked;
- blitopaque_t draw_opaque;
+ blitmask_func draw_masked;
+ blitopaque_func draw_opaque;
UINT32 tilemap_priority_code;
UINT8 mask;
UINT8 value;
@@ -79,14 +79,14 @@ struct _tilemap
UINT32 height; /* height of the full tilemap in pixels */
/* logical <-> memory mappings */
- tilemap_mapper_callback mapper; /* callback to map a row/column to a memory index */
+ tilemap_mapper_func mapper; /* callback to map a row/column to a memory index */
tilemap_logical_index * memory_to_logical; /* map from memory index to logical index */
tilemap_logical_index max_logical_index; /* maximum valid logical index */
tilemap_memory_index * logical_to_memory; /* map from logical index to memory index */
tilemap_memory_index max_memory_index; /* maximum valid memory index */
/* callback to interpret video RAM for the tilemap */
- tile_get_info_callback tile_get_info; /* callback to get information about a tile */
+ tile_get_info_func tile_get_info; /* callback to get information about a tile */
tile_data tileinfo; /* structure to hold the data for a tile */
void * user_data; /* user data value passed to the callback */
@@ -287,7 +287,7 @@ void tilemap_init(running_machine *machine)
tilemap_create - allocate a new tilemap
-------------------------------------------------*/
-tilemap *tilemap_create(tile_get_info_callback tile_get_info, tilemap_mapper_callback mapper, int tilewidth, int tileheight, int cols, int rows)
+tilemap *tilemap_create(tile_get_info_func tile_get_info, tilemap_mapper_func mapper, int tilewidth, int tileheight, int cols, int rows)
{
tilemap *tmap;
int group;
diff --git a/src/emu/tilemap.h b/src/emu/tilemap.h
index 0f14edfd461..e71ef224bd2 100644
--- a/src/emu/tilemap.h
+++ b/src/emu/tilemap.h
@@ -396,10 +396,10 @@ struct _tile_data
/* callback function to get info about a tile */
-typedef void (*tile_get_info_callback)(running_machine *machine, tile_data *tileinfo, tilemap_memory_index tile_index, void *param);
+typedef void (*tile_get_info_func)(running_machine *machine, tile_data *tileinfo, tilemap_memory_index tile_index, void *param);
/* callback function to map a column,row pair to a memory index */
-typedef tilemap_memory_index (*tilemap_mapper_callback)(UINT32 col, UINT32 row, UINT32 num_cols, UINT32 num_rows);
+typedef tilemap_memory_index (*tilemap_mapper_func)(UINT32 col, UINT32 row, UINT32 num_cols, UINT32 num_rows);
@@ -426,7 +426,7 @@ void tilemap_init(running_machine *machine);
/* ----- tilemap creation and configuration ----- */
/* create a new tilemap; note that tilemaps are tracked by the core so there is no dispose */
-tilemap *tilemap_create(tile_get_info_callback tile_get_info, tilemap_mapper_callback mapper, int tilewidth, int tileheight, int cols, int rows);
+tilemap *tilemap_create(tile_get_info_func tile_get_info, tilemap_mapper_func mapper, int tilewidth, int tileheight, int cols, int rows);
/* specify a parameter to be passed into the tile_get_info callback */
void tilemap_set_user_data(tilemap *tmap, void *user_data);
diff --git a/src/emu/timer.c b/src/emu/timer.c
index 1f04b121e5e..2ae5f91d0f3 100644
--- a/src/emu/timer.c
+++ b/src/emu/timer.c
@@ -43,7 +43,7 @@ struct _emu_timer
{
emu_timer * next;
emu_timer * prev;
- timer_callback callback;
+ timer_fired_func callback;
INT32 param;
void * ptr;
const char * file;
@@ -458,7 +458,7 @@ int timer_count_anonymous(void)
isn't primed yet
-------------------------------------------------*/
-INLINE emu_timer *_timer_alloc_common(timer_callback callback, void *ptr, const char *file, int line, const char *func, int temp)
+INLINE emu_timer *_timer_alloc_common(timer_fired_func callback, void *ptr, const char *file, int line, const char *func, int temp)
{
attotime time = get_current_time();
emu_timer *timer = timer_new();
@@ -490,7 +490,7 @@ INLINE emu_timer *_timer_alloc_common(timer_callback callback, void *ptr, const
return timer;
}
-emu_timer *_timer_alloc_internal(timer_callback callback, void *ptr, const char *file, int line, const char *func)
+emu_timer *_timer_alloc_internal(timer_fired_func callback, void *ptr, const char *file, int line, const char *func)
{
return _timer_alloc_common(callback, ptr, file, line, func, FALSE);
}
@@ -585,7 +585,7 @@ void timer_adjust_periodic(emu_timer *which, attotime duration, INT32 param, att
period
-------------------------------------------------*/
-void _timer_pulse_internal(attotime period, void *ptr, INT32 param, timer_callback callback, const char *file, int line, const char *func)
+void _timer_pulse_internal(attotime period, void *ptr, INT32 param, timer_fired_func callback, const char *file, int line, const char *func)
{
emu_timer *timer = _timer_alloc_common(callback, ptr, file, line, func, FALSE);
timer_adjust_periodic(timer, period, param, period);
@@ -597,7 +597,7 @@ void _timer_pulse_internal(attotime period, void *ptr, INT32 param, timer_callba
calls the callback after the given duration
-------------------------------------------------*/
-void _timer_set_internal(attotime duration, void *ptr, INT32 param, timer_callback callback, const char *file, int line, const char *func)
+void _timer_set_internal(attotime duration, void *ptr, INT32 param, timer_fired_func callback, const char *file, int line, const char *func)
{
emu_timer *timer = _timer_alloc_common(callback, ptr, file, line, func, TRUE);
timer_adjust_oneshot(timer, duration, param);
diff --git a/src/emu/timer.h b/src/emu/timer.h
index 30ef72291cc..6bb18d954d7 100644
--- a/src/emu/timer.h
+++ b/src/emu/timer.h
@@ -54,7 +54,7 @@
***************************************************************************/
/* a timer callback looks like this */
-typedef void (*timer_callback)(running_machine *machine, void *ptr, INT32 param);
+typedef void (*timer_fired_func)(running_machine *machine, void *ptr, INT32 param);
/* opaque type for representing a timer */
typedef struct _emu_timer emu_timer;
@@ -106,7 +106,7 @@ int timer_count_anonymous(void);
/* ----- core timer management ----- */
/* allocate a permament timer that isn't primed yet */
-emu_timer *_timer_alloc_internal(timer_callback callback, void *param, const char *file, int line, const char *func);
+emu_timer *_timer_alloc_internal(timer_fired_func callback, void *param, const char *file, int line, const char *func);
/* adjust the time when this timer will fire and disable any periodic firings */
void timer_adjust_oneshot(emu_timer *which, attotime duration, INT32 param);
@@ -119,10 +119,10 @@ void timer_adjust_periodic(emu_timer *which, attotime duration, INT32 param, att
/* ----- anonymous timer management ----- */
/* allocate a one-shot timer, which calls the callback after the given duration */
-void _timer_set_internal(attotime druation, void *ptr, INT32 param, timer_callback callback, const char *file, int line, const char *func);
+void _timer_set_internal(attotime druation, void *ptr, INT32 param, timer_fired_func callback, const char *file, int line, const char *func);
/* allocate a pulse timer, which repeatedly calls the callback using the given period */
-void _timer_pulse_internal(attotime period, void *ptr, INT32 param, timer_callback callback, const char *file, int line, const char *func);
+void _timer_pulse_internal(attotime period, void *ptr, INT32 param, timer_fired_func callback, const char *file, int line, const char *func);
diff --git a/src/emu/uimenu.c b/src/emu/uimenu.c
index 7d4602f7504..34dcd003c36 100644
--- a/src/emu/uimenu.c
+++ b/src/emu/uimenu.c
@@ -76,7 +76,7 @@ enum
typedef struct _menu_state menu_state;
struct _menu_state
{
- ui_menu_handler handler; /* handler callback */
+ ui_menu_handler_func handler; /* handler callback */
UINT32 state; /* state value */
};
@@ -658,7 +658,7 @@ void ui_menu_stack_reset(void)
stack
-------------------------------------------------*/
-UINT32 ui_menu_stack_push(ui_menu_handler new_handler, UINT32 new_state)
+UINT32 ui_menu_stack_push(ui_menu_handler_func new_handler, UINT32 new_state)
{
menu_state *state = &menu_stack[++menu_stack_index];
assert(menu_stack_index < MENU_STACK_DEPTH);
diff --git a/src/emu/uimenu.h b/src/emu/uimenu.h
index 3bc42964eae..45f41720cdb 100644
--- a/src/emu/uimenu.h
+++ b/src/emu/uimenu.h
@@ -32,7 +32,7 @@
TYPE DEFINITIONS
***************************************************************************/
-typedef UINT32 (*ui_menu_handler)(UINT32 state);
+typedef UINT32 (*ui_menu_handler_func)(UINT32 state);
typedef struct _ui_menu_item ui_menu_item;
struct _ui_menu_item
@@ -73,7 +73,7 @@ int ui_menu_generic_keys(UINT32 *selected, int num_items, int visible_items);
/* menu stack management */
void ui_menu_stack_reset(void);
-UINT32 ui_menu_stack_push(ui_menu_handler new_handler, UINT32 new_state);
+UINT32 ui_menu_stack_push(ui_menu_handler_func new_handler, UINT32 new_state);
UINT32 ui_menu_stack_pop(void);
/* force game select menu */
diff --git a/src/emu/video.c b/src/emu/video.c
index bf96f0ad322..dd1694e5def 100644
--- a/src/emu/video.c
+++ b/src/emu/video.c
@@ -75,7 +75,7 @@ struct _internal_screen_info
/* VBLANK callbacks */
int vbl_cb_count; /* # of callbacks installed */
- video_screen_on_vbl vbl_cbs[MAX_VBL_CB]; /* the array of callbacks */
+ vblank_state_changed_func vbl_cbs[MAX_VBL_CB]; /* the array of callbacks */
/* movie recording */
mame_file * movie_file; /* handle to the open movie file */
@@ -1093,7 +1093,7 @@ UINT64 video_screen_get_frame_number(int scrnum)
VBLANK callback
-------------------------------------------------*/
-void video_screen_register_vbl_cb(running_machine *machine, void *screen, video_screen_on_vbl vbl_cb)
+void video_screen_register_vbl_cb(running_machine *machine, void *screen, vblank_state_changed_func vbl_cb)
{
int i, found;
internal_screen_info *scrinfo = NULL;
diff --git a/src/emu/video.h b/src/emu/video.h
index 01adb8c2a1f..3e3c1da9a48 100644
--- a/src/emu/video.h
+++ b/src/emu/video.h
@@ -89,12 +89,12 @@ struct _screen_config
/*-------------------------------------------------
- video_screen_on_vblank - callback that a
+ vblank_state_changed_func - callback that a
screen calls to notify of a change of
the VBLANK state
-------------------------------------------------*/
-typedef void (*video_screen_on_vbl)(running_machine *machine, screen_state *screen, int vblank_state);
+typedef void (*vblank_state_changed_func)(running_machine *machine, screen_state *screen, int vblank_state);
@@ -155,7 +155,7 @@ UINT64 video_screen_get_frame_number(int scrnum);
int video_screen_exists(int scrnum);
/* registers a VBLANK callback for the given screen*/
-void video_screen_register_vbl_cb(running_machine *machine, void *screen, video_screen_on_vbl vbl_cb);
+void video_screen_register_vbl_cb(running_machine *machine, void *screen, vblank_state_changed_func vbl_cb);
/* ----- video screen device interface ----- */
diff --git a/src/emu/video/poly.c b/src/emu/video/poly.c
index e455bab4949..ce642d6350e 100644
--- a/src/emu/video/poly.c
+++ b/src/emu/video/poly.c
@@ -139,7 +139,7 @@ struct _polygon_info
void * extra; /* extra data pointer */
UINT8 numparams; /* number of parameters for this polygon */
UINT8 numverts; /* number of vertices in this polygon */
- poly_draw_scanline callback; /* callback to handle a scanline's worth of work */
+ poly_draw_scanline_func callback; /* callback to handle a scanline's worth of work */
INT32 xorigin; /* X origin for all parameters */
INT32 yorigin; /* Y origin for all parameters */
poly_param param[MAX_VERTEX_PARAMS];/* array of parameter data */
@@ -489,7 +489,7 @@ void *poly_get_extra_data(poly_manager *poly)
triangle given 3 vertexes
-------------------------------------------------*/
-UINT32 poly_render_triangle(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3)
+UINT32 poly_render_triangle(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3)
{
float dxdy_v1v2, dxdy_v1v3, dxdy_v2v3;
const poly_vertex *tv;
@@ -672,7 +672,7 @@ UINT32 poly_render_triangle(poly_manager *poly, void *dest, const rectangle *cli
triangles in a fan
-------------------------------------------------*/
-UINT32 poly_render_triangle_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, int numverts, const poly_vertex *v)
+UINT32 poly_render_triangle_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, int numverts, const poly_vertex *v)
{
UINT32 pixels = 0;
int vertnum;
@@ -689,7 +689,7 @@ UINT32 poly_render_triangle_fan(poly_manager *poly, void *dest, const rectangle
render of an object, given specific extents
-------------------------------------------------*/
-UINT32 poly_render_triangle_custom(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int startscanline, int numscanlines, const poly_extent *extents)
+UINT32 poly_render_triangle_custom(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int startscanline, int numscanlines, const poly_extent *extents)
{
INT32 curscan, scaninc;
polygon_info *polygon;
@@ -796,7 +796,7 @@ UINT32 poly_render_triangle_custom(poly_manager *poly, void *dest, const rectang
given 4 vertexes
-------------------------------------------------*/
-UINT32 poly_render_quad(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3, const poly_vertex *v4)
+UINT32 poly_render_quad(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3, const poly_vertex *v4)
{
poly_edge fedgelist[3], bedgelist[3];
const poly_edge *ledge, *redge;
@@ -1022,7 +1022,7 @@ UINT32 poly_render_quad(poly_manager *poly, void *dest, const rectangle *cliprec
quads in a fan
-------------------------------------------------*/
-UINT32 poly_render_quad_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, int numverts, const poly_vertex *v)
+UINT32 poly_render_quad_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, int numverts, const poly_vertex *v)
{
UINT32 pixels = 0;
int vertnum;
@@ -1044,7 +1044,7 @@ UINT32 poly_render_quad_fan(poly_manager *poly, void *dest, const rectangle *cli
to 32 vertices
-------------------------------------------------*/
-UINT32 poly_render_polygon(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, int numverts, const poly_vertex *v)
+UINT32 poly_render_polygon(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, int numverts, const poly_vertex *v)
{
poly_edge fedgelist[MAX_POLYGON_VERTS - 1], bedgelist[MAX_POLYGON_VERTS - 1];
const poly_edge *ledge, *redge;
diff --git a/src/emu/video/poly.h b/src/emu/video/poly.h
index 2cfee063900..90858314c54 100644
--- a/src/emu/video/poly.h
+++ b/src/emu/video/poly.h
@@ -90,7 +90,7 @@ struct _poly_extent
/* callback routine to process a batch of scanlines in a triangle */
-typedef void (*poly_draw_scanline)(void *dest, INT32 scanline, const poly_extent *extent, const void *extradata, int threadid);
+typedef void (*poly_draw_scanline_func)(void *dest, INT32 scanline, const poly_extent *extent, const void *extradata, int threadid);
@@ -122,30 +122,30 @@ void *poly_get_extra_data(poly_manager *poly);
/* ----- core triangle rendering ----- */
/* render a single triangle given 3 vertexes */
-UINT32 poly_render_triangle(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3);
+UINT32 poly_render_triangle(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3);
/* render a set of triangles in a fan */
-UINT32 poly_render_triangle_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, int numverts, const poly_vertex *v);
+UINT32 poly_render_triangle_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, int numverts, const poly_vertex *v);
/* perform a custom render of an object, given specific extents */
-UINT32 poly_render_triangle_custom(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int startscanline, int numscanlines, const poly_extent *extents);
+UINT32 poly_render_triangle_custom(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int startscanline, int numscanlines, const poly_extent *extents);
/* ----- core quad rendering ----- */
/* render a single quad given 4 vertexes */
-UINT32 poly_render_quad(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3, const poly_vertex *v4);
+UINT32 poly_render_quad(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, const poly_vertex *v1, const poly_vertex *v2, const poly_vertex *v3, const poly_vertex *v4);
/* render a set of quads in a fan */
-UINT32 poly_render_quad_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, int numverts, const poly_vertex *v);
+UINT32 poly_render_quad_fan(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, int numverts, const poly_vertex *v);
/* ----- core polygon rendering ----- */
/* render a single polygon up to 32 vertices */
-UINT32 poly_render_polygon(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline callback, int paramcount, int numverts, const poly_vertex *v);
+UINT32 poly_render_polygon(poly_manager *poly, void *dest, const rectangle *cliprect, poly_draw_scanline_func callback, int paramcount, int numverts, const poly_vertex *v);
diff --git a/src/emu/video/vooddefs.h b/src/emu/video/vooddefs.h
index c9b43d2bb0b..fa22b51c98a 100644
--- a/src/emu/video/vooddefs.h
+++ b/src/emu/video/vooddefs.h
@@ -1603,7 +1603,7 @@ typedef struct _raster_info raster_info;
struct _raster_info
{
struct _raster_info *next; /* pointer to next entry with the same hash */
- poly_draw_scanline callback; /* callback pointer */
+ poly_draw_scanline_func callback; /* callback pointer */
UINT8 is_generic; /* TRUE if this is one of the generic rasterizers */
UINT8 display; /* display index */
UINT32 hits; /* how many hits (pixels) we've used this for */
diff --git a/src/lib/util/chd.h b/src/lib/util/chd.h
index 4559f31bcfa..f6aef5d8da3 100644
--- a/src/lib/util/chd.h
+++ b/src/lib/util/chd.h
@@ -176,10 +176,6 @@ typedef enum _chd_error chd_error;
typedef struct _chd_file chd_file;
-/* progress callback function */
-typedef void (*chd_progress_printf)(const char *format, ...);
-
-
/* extract header structure (NOT the on-disk header structure) */
typedef struct _chd_header chd_header;
struct _chd_header
diff --git a/src/mame/drivers/ksys573.c b/src/mame/drivers/ksys573.c
index ea01837e696..352e6740b9b 100644
--- a/src/mame/drivers/ksys573.c
+++ b/src/mame/drivers/ksys573.c
@@ -1782,11 +1782,11 @@ static WRITE32_HANDLER( gx700pwbf_io_w )
}
}
-static void gx700pwfbf_init( void (*output_callback)( int offset, int data ) )
+static void gx700pwfbf_init( void (*output_callback_func)( int offset, int data ) )
{
memset( gx700pwbf_output_data, 0, sizeof( gx700pwbf_output_data ) );
- gx700pwfbf_output_callback = output_callback;
+ gx700pwfbf_output_callback = output_callback_func;
memory_install_read32_handler ( 0, ADDRESS_SPACE_PROGRAM, 0x1f640000, 0x1f6400ff, 0, 0, gx700pwbf_io_r );
memory_install_write32_handler( 0, ADDRESS_SPACE_PROGRAM, 0x1f640000, 0x1f6400ff, 0, 0, gx700pwbf_io_w );
@@ -2317,11 +2317,11 @@ static WRITE32_HANDLER( gx894pwbba_w )
}
}
-static void gx894pwbba_init( void (*output_callback)( int offset, int data ) )
+static void gx894pwbba_init( void (*output_callback_func)( int offset, int data ) )
{
int gx894_ram_size = 24 * 1024 * 1024;
- gx894pwbba_output_callback = output_callback;
+ gx894pwbba_output_callback = output_callback_func;
memory_install_read32_handler ( 0, ADDRESS_SPACE_PROGRAM, 0x1f640000, 0x1f6400ff, 0, 0, gx894pwbba_r );
memory_install_write32_handler( 0, ADDRESS_SPACE_PROGRAM, 0x1f640000, 0x1f6400ff, 0, 0, gx894pwbba_w );
diff --git a/src/mame/drivers/namcoic.c b/src/mame/drivers/namcoic.c
index 045a01a8f9b..970863f87d9 100644
--- a/src/mame/drivers/namcoic.c
+++ b/src/mame/drivers/namcoic.c
@@ -1122,7 +1122,7 @@ void
namco_roz_init( int gfxbank, int maskregion )
{
int i;
- static const tile_get_info_callback roz_info[ROZ_TILEMAP_COUNT] =
+ static const tile_get_info_func roz_info[ROZ_TILEMAP_COUNT] =
{
roz_get_info0,
roz_get_info1
diff --git a/src/mame/includes/atari.h b/src/mame/includes/atari.h
index 523656ba854..dec43578805 100644
--- a/src/mame/includes/atari.h
+++ b/src/mame/includes/atari.h
@@ -589,7 +589,7 @@ typedef struct {
FUNC(40); FUNC(41); FUNC(42); FUNC(43); \
FUNC(44); FUNC(45); FUNC(46); FUNC(47);
-typedef void (*renderer_function)(VIDEO *video);
+typedef void (*atari_renderer_func)(VIDEO *video);
/*----------- defined in video/antic.c -----------*/
diff --git a/src/mame/machine/atarigen.c b/src/mame/machine/atarigen.c
index 61a03b5a513..c653e8b7556 100644
--- a/src/mame/machine/atarigen.c
+++ b/src/mame/machine/atarigen.c
@@ -65,7 +65,7 @@ struct atarivc_state_desc atarivc_state;
STATIC VARIABLES
***************************************************************************/
-static atarigen_int_callback update_int_callback;
+static atarigen_int_func update_int_callback;
static emu_timer * scanline_interrupt_timer;
static UINT8 eeprom_unlocked;
@@ -81,7 +81,7 @@ static UINT8 atarigen_sound_to_cpu;
static UINT8 timed_int;
static UINT8 ym2151_int;
-static atarigen_scanline_callback scanline_callback;
+static atarigen_scanline_func scanline_callback;
static UINT32 scanlines_per_callback;
static UINT32 actual_vc_latch0;
@@ -131,7 +131,7 @@ static TIMER_CALLBACK( atarivc_eof_update );
the interrupt sources.
---------------------------------------------------------------*/
-void atarigen_interrupt_reset(atarigen_int_callback update_int)
+void atarigen_interrupt_reset(atarigen_int_func update_int)
{
int i;
@@ -845,7 +845,7 @@ void atarigen_set_oki6295_vol(running_machine *machine, int volume)
atarigen_scanline_timer_reset: Sets up the scanline timer.
---------------------------------------------------------------*/
-void atarigen_scanline_timer_reset(int scrnum, atarigen_scanline_callback update_graphics, int frequency)
+void atarigen_scanline_timer_reset(int scrnum, atarigen_scanline_func update_graphics, int frequency)
{
/* set the scanline callback */
scanline_callback = update_graphics;
diff --git a/src/mame/machine/atarigen.h b/src/mame/machine/atarigen.h
index c08fa7c4fea..cff80eb47ab 100644
--- a/src/mame/machine/atarigen.h
+++ b/src/mame/machine/atarigen.h
@@ -28,9 +28,9 @@
TYPES & STRUCTURES
***************************************************************************/
-typedef void (*atarigen_int_callback)(running_machine *machine);
+typedef void (*atarigen_int_func)(running_machine *machine);
-typedef void (*atarigen_scanline_callback)(running_machine *machine, int scrnum, int scanline);
+typedef void (*atarigen_scanline_func)(running_machine *machine, int scrnum, int scanline);
struct atarivc_state_desc
{
@@ -95,7 +95,7 @@ extern struct atarivc_state_desc atarivc_state;
INTERRUPT HANDLING
---------------------------------------------------------------*/
-void atarigen_interrupt_reset(atarigen_int_callback update_int);
+void atarigen_interrupt_reset(atarigen_int_func update_int);
void atarigen_update_interrupts(void);
void atarigen_scanline_int_set(int scrnum, int scanline);
@@ -218,7 +218,7 @@ WRITE16_HANDLER( atarigen_playfield2_latched_msb_w );
VIDEO HELPERS
---------------------------------------------------------------*/
-void atarigen_scanline_timer_reset(int scrnum, atarigen_scanline_callback update_graphics, int frequency);
+void atarigen_scanline_timer_reset(int scrnum, atarigen_scanline_func update_graphics, int frequency);
int atarigen_get_hblank(running_machine *machine, int scrnum);
WRITE16_HANDLER( atarigen_halt_until_hblank_0_w );
WRITE16_HANDLER( atarigen_666_paletteram_w );
diff --git a/src/mame/machine/mcr.c b/src/mame/machine/mcr.c
index e06c759268f..d43dcef186e 100644
--- a/src/mame/machine/mcr.c
+++ b/src/mame/machine/mcr.c
@@ -62,7 +62,7 @@ static UINT8 m6840_irq_vector;
static UINT8 v493_irq_state;
static UINT8 v493_irq_vector;
-static timer_callback v493_callback;
+static timer_fired_func v493_callback;
static UINT8 zwackery_sound_data;
diff --git a/src/mame/video/atari.c b/src/mame/video/atari.c
index 36ead2eba9e..c0b986cb478 100644
--- a/src/mame/video/atari.c
+++ b/src/mame/video/atari.c
@@ -796,7 +796,7 @@ VIDEO_UPDATE( atari )
return 0;
}
-static renderer_function antic_renderer = antic_mode_0_xx;
+static atari_renderer_func antic_renderer = antic_mode_0_xx;
static void artifacts_gfx(UINT8 *src, UINT8 *dst, int width)
{
@@ -1060,7 +1060,7 @@ static int cycle(void)
return video_screen_get_hpos(0) * CYCLES_PER_LINE / Machine->screen[0].width;
}
-static void after(int cycles, timer_callback function, const char *funcname)
+static void after(int cycles, timer_fired_func function, const char *funcname)
{
attotime duration = attotime_make(0, attotime_to_attoseconds(video_screen_get_scan_period(0)) * cycles / CYCLES_PER_LINE);
(void)funcname;
@@ -1083,7 +1083,7 @@ static TIMER_CALLBACK( antic_issue_dli )
}
-static const renderer_function renderer[2][19][5] = {
+static const atari_renderer_func renderer[2][19][5] = {
/* no playfield narrow normal wide */
{
{antic_mode_0_xx,antic_mode_0_xx,antic_mode_0_xx,antic_mode_0_xx},
diff --git a/src/mame/video/atarimo.c b/src/mame/video/atarimo.c
index 2b1118cfc5d..933c9a1c4ae 100644
--- a/src/mame/video/atarimo.c
+++ b/src/mame/video/atarimo.c
@@ -84,7 +84,7 @@ struct atarimo_data
struct atarimo_mask specialmask; /* mask for the special value */
int specialvalue; /* resulting value to indicate "special" */
- atarimo_special_cb specialcb; /* callback routine for special entries */
+ atarimo_special_func specialcb; /* callback routine for special entries */
int codehighshift; /* shift count for the upper code */
struct atarimo_entry *spriteram; /* pointer to sprite RAM */
diff --git a/src/mame/video/atarimo.h b/src/mame/video/atarimo.h
index cba3f59f76c..34519bd7c0f 100644
--- a/src/mame/video/atarimo.h
+++ b/src/mame/video/atarimo.h
@@ -32,7 +32,7 @@
##########################################################################*/
/* callback for special processing */
-typedef int (*atarimo_special_cb)(bitmap_t *bitmap, const rectangle *clip, int code, int color, int xpos, int ypos, rectangle *mobounds);
+typedef int (*atarimo_special_func)(bitmap_t *bitmap, const rectangle *clip, int code, int color, int xpos, int ypos, rectangle *mobounds);
/* description for a four-word mask */
struct atarimo_entry
@@ -75,7 +75,7 @@ struct atarimo_desc
struct atarimo_entry specialmask; /* mask for the special value */
UINT16 specialvalue; /* resulting value to indicate "special" */
- atarimo_special_cb specialcb; /* callback routine for special entries */
+ atarimo_special_func specialcb; /* callback routine for special entries */
};
/* rectangle list */
diff --git a/src/mame/video/galaxian.c b/src/mame/video/galaxian.c
index 5c553092ac4..a6ebe66df97 100644
--- a/src/mame/video/galaxian.c
+++ b/src/mame/video/galaxian.c
@@ -512,7 +512,7 @@ static void state_save_register(void)
state_save_register_global(background_blue);
}
-static void video_start_common(running_machine *machine, tilemap_mapper_callback get_memory_offset)
+static void video_start_common(running_machine *machine, tilemap_mapper_func get_memory_offset)
{
bg_tilemap = tilemap_create(get_tile_info,get_memory_offset,8,8,32,32);
diff --git a/src/mame/video/konamiic.c b/src/mame/video/konamiic.c
index 0a31de37df6..4f59dd2bc93 100644
--- a/src/mame/video/konamiic.c
+++ b/src/mame/video/konamiic.c
@@ -4658,7 +4658,7 @@ static void K051316_vh_start(running_machine *machine,int chip, int gfx_memory_r
8*64, 9*64, 10*64, 11*64, 12*64, 13*64, 14*64, 15*64 },
128*8
};
- static const tile_get_info_callback get_tile_info[3] = { K051316_get_tile_info0,K051316_get_tile_info1,K051316_get_tile_info2 };
+ static const tile_get_info_func get_tile_info[3] = { K051316_get_tile_info0,K051316_get_tile_info1,K051316_get_tile_info2 };
/* find first empty slot to decode gfx */
for (gfx_index = 0; gfx_index < MAX_GFX_ELEMENTS; gfx_index++)
diff --git a/src/mame/video/m62.c b/src/mame/video/m62.c
index a699901aa56..217949cf7be 100644
--- a/src/mame/video/m62.c
+++ b/src/mame/video/m62.c
@@ -399,7 +399,7 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
}
}
-static void m62_start( tile_get_info_callback tile_get_info, int rows, int cols, int x1, int y1, int x2, int y2 )
+static void m62_start( tile_get_info_func tile_get_info, int rows, int cols, int x1, int y1, int x2, int y2 )
{
m62_background = tilemap_create( tile_get_info, tilemap_scan_rows, x1, y1, x2, y2 );
@@ -418,7 +418,7 @@ static void m62_start( tile_get_info_callback tile_get_info, int rows, int cols,
}
}
-static void m62_textlayer( tile_get_info_callback tile_get_info, int rows, int cols, int x1, int y1, int x2, int y2 )
+static void m62_textlayer( tile_get_info_func tile_get_info, int rows, int cols, int x1, int y1, int x2, int y2 )
{
m62_foreground = tilemap_create( tile_get_info, tilemap_scan_rows, x1, y1, x2, y2 );
diff --git a/src/mame/video/madalien.c b/src/mame/video/madalien.c
index f0a2cf52cca..0a4dbd5dbb8 100644
--- a/src/mame/video/madalien.c
+++ b/src/mame/video/madalien.c
@@ -150,7 +150,7 @@ static VIDEO_START( madalien )
{
int i;
- static const tilemap_mapper_callback scan_functions[4] =
+ static const tilemap_mapper_func scan_functions[4] =
{
scan_mode0, scan_mode1, scan_mode2, scan_mode3
};
diff --git a/src/mame/video/midvunit.c b/src/mame/video/midvunit.c
index 5f22d8bd9a7..13a0e0acbbc 100644
--- a/src/mame/video/midvunit.c
+++ b/src/mame/video/midvunit.c
@@ -306,7 +306,7 @@ static void process_dma_queue(running_machine *machine)
poly_extra_data *extra = poly_get_extra_data(poly);
UINT16 *dest = &midvunit_videoram[(page_control & 4) ? 0x40000 : 0x00000];
int textured = ((dma_data[0] & 0x300) == 0x100);
- poly_draw_scanline callback;
+ poly_draw_scanline_func callback;
poly_vertex vert[4];
/* if we're rendering to the same page we're viewing, it has changed */
diff --git a/src/mame/video/midzeus.c b/src/mame/video/midzeus.c
index 775f9df42e3..9a7d026c311 100644
--- a/src/mame/video/midzeus.c
+++ b/src/mame/video/midzeus.c
@@ -1059,7 +1059,7 @@ static void zeus_draw_model(UINT32 texdata, int logit)
static void zeus_draw_quad(const UINT32 *databuffer, UINT32 texdata, int logit)
{
- poly_draw_scanline callback;
+ poly_draw_scanline_func callback;
poly_extra_data *extra;
poly_vertex clipvert[8];
poly_vertex vert[4];
diff --git a/src/mame/video/midzeus2.c b/src/mame/video/midzeus2.c
index 7383f0305b4..4c62dc5ab15 100644
--- a/src/mame/video/midzeus2.c
+++ b/src/mame/video/midzeus2.c
@@ -1043,7 +1043,7 @@ static void zeus_draw_model(UINT32 baseaddr, UINT16 count, int logit)
static void zeus_draw_quad(const UINT32 *databuffer, UINT32 texoffs, int logit)
{
- poly_draw_scanline callback;
+ poly_draw_scanline_func callback;
poly_extra_data *extra;
poly_vertex clipvert[8];
poly_vertex vert[4];
diff --git a/src/mame/video/model2.c b/src/mame/video/model2.c
index d0f5e638272..3d6ad59ffb6 100644
--- a/src/mame/video/model2.c
+++ b/src/mame/video/model2.c
@@ -922,7 +922,7 @@ INLINE UINT16 get_texel( UINT32 base_x, UINT32 base_y, int x, int y, UINT32 *she
/***********************************************************************************************/
-static const poly_draw_scanline render_funcs[8] =
+static const poly_draw_scanline_func render_funcs[8] =
{
model2_3d_render_0, /* checker = 0, textured = 0, translucent = 0 */
model2_3d_render_1, /* checker = 0, textured = 0, translucent = 1 */
diff --git a/src/mame/video/model3.c b/src/mame/video/model3.c
index 7cb6fc5a479..b071b2f7308 100644
--- a/src/mame/video/model3.c
+++ b/src/mame/video/model3.c
@@ -1077,7 +1077,7 @@ static PLANE clip_plane[5];
static void render_one(TRIANGLE *tri)
{
poly_extra_data *extra = poly_get_extra_data(poly);
- poly_draw_scanline callback = NULL;
+ poly_draw_scanline_func callback = NULL;
tri->v[0].pz = 1.0f / tri->v[0].pz;
tri->v[1].pz = 1.0f / tri->v[1].pz;
diff --git a/src/mame/video/namcona1.c b/src/mame/video/namcona1.c
index d18c9142a20..fe76ddf2ec3 100644
--- a/src/mame/video/namcona1.c
+++ b/src/mame/video/namcona1.c
@@ -220,7 +220,7 @@ VIDEO_START( namcona1 )
{
int i;
gfx_element *gfx0,*gfx1;
- static const tile_get_info_callback get_info[4] =
+ static const tile_get_info_func get_info[4] =
{ tilemap_get_info0, tilemap_get_info1, tilemap_get_info2, tilemap_get_info3 };
for( i=0; i<NAMCONA1_NUM_TILEMAPS; i++ )
diff --git a/src/mame/video/segaic16.c b/src/mame/video/segaic16.c
index a55b7f0927b..2cabf418a33 100644
--- a/src/mame/video/segaic16.c
+++ b/src/mame/video/segaic16.c
@@ -1200,8 +1200,8 @@ static void segaic16_tilemap_16b_reset(struct tilemap_info *info)
void segaic16_tilemap_init(int which, int type, int colorbase, int xoffs, int numbanks)
{
struct tilemap_info *info = &bg_tilemap[which];
- tile_get_info_callback get_text_info;
- tile_get_info_callback get_tile_info;
+ tile_get_info_func get_text_info;
+ tile_get_info_func get_tile_info;
int pagenum;
int i;
diff --git a/src/mame/video/taitoic.c b/src/mame/video/taitoic.c
index 9aa89dbe3a5..113d213211b 100644
--- a/src/mame/video/taitoic.c
+++ b/src/mame/video/taitoic.c
@@ -755,7 +755,7 @@ static TILE_GET_INFO( PC080SN_get_fg_tile_info_1 )
common_get_PC080SN_fg_tile_info(machine,tileinfo,tile_index,PC080SN_bg_ram[1][1],PC080SN_bg_gfx[1]);
}
-static const tile_get_info_callback PC080SN_get_tile_info[PC080SN_MAX_CHIPS][2] =
+static const tile_get_info_func PC080SN_get_tile_info[PC080SN_MAX_CHIPS][2] =
{
{ PC080SN_get_bg_tile_info_0, PC080SN_get_fg_tile_info_0 },
{ PC080SN_get_bg_tile_info_1, PC080SN_get_fg_tile_info_1 }
@@ -2165,7 +2165,7 @@ static TILE_GET_INFO( TC0100SCN_get_tx_tile_info_2 )
/* This array changes with TC0100SCN_MAX_CHIPS */
-static const tile_get_info_callback TC0100SCN_get_tile_info[TC0100SCN_MAX_CHIPS][3] =
+static const tile_get_info_func TC0100SCN_get_tile_info[TC0100SCN_MAX_CHIPS][3] =
{
{ TC0100SCN_get_bg_tile_info_0, TC0100SCN_get_fg_tile_info_0, TC0100SCN_get_tx_tile_info_0 },
{ TC0100SCN_get_bg_tile_info_1, TC0100SCN_get_fg_tile_info_1, TC0100SCN_get_tx_tile_info_1 },
@@ -3013,7 +3013,7 @@ static TILE_GET_INFO( TC0480SCP_get_tx_tile_info )
common_get_tc0480tx_tile_info(machine,tileinfo,tile_index,TC0480SCP_tx_ram,TC0480SCP_tx_gfx);
}
-static const tile_get_info_callback tc480_get_tile_info[5] =
+static const tile_get_info_func tc480_get_tile_info[5] =
{
TC0480SCP_get_bg0_tile_info, TC0480SCP_get_bg1_tile_info,
TC0480SCP_get_bg2_tile_info, TC0480SCP_get_bg3_tile_info,
diff --git a/src/mame/video/wc90.c b/src/mame/video/wc90.c
index a7b0bcdd236..04d410cc827 100644
--- a/src/mame/video/wc90.c
+++ b/src/mame/video/wc90.c
@@ -299,9 +299,9 @@ static void draw_sprite_invalid(running_machine *machine, bitmap_t *bitmap, cons
logerror("8 pixel sprite size not supported\n" );
}
-typedef void (*draw_sprites_procdef)(running_machine *, bitmap_t *, const rectangle *, int, int, int, int, int );
+typedef void (*draw_sprites_func)(running_machine *, bitmap_t *, const rectangle *, int, int, int, int, int );
-static const draw_sprites_procdef draw_sprites_proc[16] = {
+static const draw_sprites_func draw_sprites_proc[16] = {
draw_sprite_invalid, /* 0000 = 08x08 */
draw_sprite_invalid, /* 0001 = 16x08 */
draw_sprite_invalid, /* 0010 = 32x08 */
diff --git a/src/mame/video/zaxxon.c b/src/mame/video/zaxxon.c
index 2aae436f4b0..018b56d19e5 100644
--- a/src/mame/video/zaxxon.c
+++ b/src/mame/video/zaxxon.c
@@ -124,7 +124,7 @@ static TILE_GET_INFO( congo_get_fg_tile_info )
*
*************************************/
-static void video_start_common(running_machine *machine, tile_get_info_callback fg_tile_info)
+static void video_start_common(running_machine *machine, tile_get_info_func fg_tile_info)
{
/* reset globals */
bg_enable = 0;