summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/audio/generic.c2
-rw-r--r--src/emu/cpu/i8008/i8008.c2
-rw-r--r--src/emu/devintrf.c10
-rw-r--r--src/emu/devintrf.h4
-rw-r--r--src/emu/inptport.c14
-rw-r--r--src/emu/inptport.h4
-rw-r--r--src/emu/machine/generic.c10
-rw-r--r--src/emu/mame.c2
-rw-r--r--src/emu/mame.h2
-rw-r--r--src/emu/mconfig.c2
-rw-r--r--src/emu/sound/cdp1869.c2
-rw-r--r--src/emu/streams.c8
-rw-r--r--src/emu/uimenu.c2
-rw-r--r--src/emu/validity.c8
-rw-r--r--src/emu/video/generic.c2
15 files changed, 37 insertions, 37 deletions
diff --git a/src/emu/audio/generic.c b/src/emu/audio/generic.c
index 41eb35a0314..217f7b0dcad 100644
--- a/src/emu/audio/generic.c
+++ b/src/emu/audio/generic.c
@@ -39,7 +39,7 @@ struct _generic_audio_private
int generic_sound_init(running_machine *machine)
{
generic_audio_private *state;
-
+
state = machine->generic_audio_data = auto_alloc_clear(machine, generic_audio_private);
/* register globals with the save state system */
diff --git a/src/emu/cpu/i8008/i8008.c b/src/emu/cpu/i8008/i8008.c
index 12a13c0434a..f479d0cfae9 100644
--- a/src/emu/cpu/i8008/i8008.c
+++ b/src/emu/cpu/i8008/i8008.c
@@ -377,7 +377,7 @@ static void execute_one(i8008_state *cpustate, int opcode)
case 6 : // LrI
cpustate->icount -= 8;
if (REG_1==7) cpustate->icount -= 1; // LMI
- SET_REG(cpustate,REG_1, ARG(cpustate));
+ SET_REG(cpustate,REG_1, ARG(cpustate));
break;
case 7 : // RET
cpustate->icount -= 5;
diff --git a/src/emu/devintrf.c b/src/emu/devintrf.c
index e7e1d4023a6..054f6362935 100644
--- a/src/emu/devintrf.c
+++ b/src/emu/devintrf.c
@@ -88,7 +88,7 @@ INLINE int device_matches_type(const device_config *device, device_type type)
***************************************************************************/
/*-------------------------------------------------
- device_list_init - initialize a device list
+ device_list_init - initialize a device list
structure, optionally allocating a map for it
-------------------------------------------------*/
@@ -107,7 +107,7 @@ void device_list_init(device_list *devlist, int allocmap)
/*-------------------------------------------------
- device_list_deinit - free memory attached to
+ device_list_deinit - free memory attached to
a device list and clear out the structure
-------------------------------------------------*/
@@ -116,7 +116,7 @@ void device_list_deinit(device_list *devlist)
/* release all devices */
while (devlist->head != NULL)
device_list_remove(devlist, devlist->head->tag);
-
+
/* release the map memory */
if (devlist->map != NULL)
tagmap_free(devlist->map);
@@ -148,7 +148,7 @@ device_config *device_list_add(device_list *devlist, const device_config *owner,
/* allocate a new device */
device = (device_config *)alloc_array_or_die(UINT8, sizeof(*device) + strlen(tag) + configlen);
-
+
/* add to the map */
tmerr = tagmap_add_unique_hash(devlist->map, tag, device);
if (tmerr == TMERR_DUPLICATE)
@@ -391,7 +391,7 @@ const device_config *device_list_next(const device_config *prevdevice, device_ty
/*-------------------------------------------------
- device_list_find_by_tag_slow - retrieve a
+ device_list_find_by_tag_slow - retrieve a
device configuration based on a tag
-------------------------------------------------*/
diff --git a/src/emu/devintrf.h b/src/emu/devintrf.h
index 5e2e23cb5d5..76cb726f195 100644
--- a/src/emu/devintrf.h
+++ b/src/emu/devintrf.h
@@ -347,10 +347,10 @@ struct _device_list
/* ----- device configuration ----- */
/* initialize a device list structure, optionally allocating a map for it */
-void device_list_init(device_list *devlist, int allocmap);
+void device_list_init(device_list *devlist, int allocmap);
/* free memory attached to a device list and clear out the structure */
-void device_list_deinit(device_list *devlist);
+void device_list_deinit(device_list *devlist);
/* add a new device to the end of a device list */
device_config *device_list_add(device_list *devlist, const device_config *owner, device_type type, const char *tag, UINT32 clock);
diff --git a/src/emu/inptport.c b/src/emu/inptport.c
index c2a9672e7f7..1756a79c7b7 100644
--- a/src/emu/inptport.c
+++ b/src/emu/inptport.c
@@ -250,7 +250,7 @@ struct _input_port_private
{
/* global state */
UINT8 safe_to_read; /* clear at start; set after state is loaded */
-
+
/* types */
input_type_state * typestatelist; /* list of live type states */
input_type_state * type_to_typestate[__ipt_max][MAX_PLAYERS]; /* map from type/player to type state */
@@ -743,7 +743,7 @@ void input_port_list_deinit(input_port_list *portlist)
/* iterate over all ports and free them */
while (portlist->head != NULL)
port_config_free(&portlist->head);
-
+
/* free the map if present */
if (portlist->map != NULL)
tagmap_free(portlist->map);
@@ -752,8 +752,8 @@ void input_port_list_deinit(input_port_list *portlist)
/*-------------------------------------------------
- input_port_by_tag_slow - return a pointer to
- the port_config associated with the given
+ input_port_by_tag_slow - return a pointer to
+ the port_config associated with the given
port tag
-------------------------------------------------*/
@@ -1463,7 +1463,7 @@ static INT32 apply_analog_settings(INT32 value, analog_field_state *analog)
/*-------------------------------------------------
input_port_write_direct - write a value
- to a port
+ to a port
-------------------------------------------------*/
void input_port_write_direct(const input_port_config *port, input_port_value data, input_port_value mem_mask)
@@ -1491,7 +1491,7 @@ void input_port_write_direct(const input_port_config *port, input_port_value dat
/*-------------------------------------------------
input_port_write - write a value to a
- port specified by tag
+ port specified by tag
-------------------------------------------------*/
void input_port_write(running_machine *machine, const char *tag, input_port_value value, input_port_value mask)
@@ -1505,7 +1505,7 @@ void input_port_write(running_machine *machine, const char *tag, input_port_valu
/*-------------------------------------------------
input_port_write_safe - write a value to
- a port, ignore if the port does not exist
+ a port, ignore if the port does not exist
-------------------------------------------------*/
void input_port_write_safe(running_machine *machine, const char *tag, input_port_value value, input_port_value mask)
diff --git a/src/emu/inptport.h b/src/emu/inptport.h
index 8f25a022a20..c6af78b0b32 100644
--- a/src/emu/inptport.h
+++ b/src/emu/inptport.h
@@ -1152,7 +1152,7 @@ const char *input_port_string_from_token(const input_port_token token);
***************************************************************************/
/*-------------------------------------------------
- input_port_by_tag - return the config that
+ input_port_by_tag - return the config that
matches the given tag
-------------------------------------------------*/
@@ -1161,7 +1161,7 @@ INLINE const input_port_config *input_port_by_tag(const input_port_list *portlis
/* use the map if we have it */
if (portlist->map != NULL)
return tagmap_find_hash_only(portlist->map, tag);
-
+
/* otherwise, do it the slow way */
return input_port_by_tag_slow(portlist, tag);
}
diff --git a/src/emu/machine/generic.c b/src/emu/machine/generic.c
index 9dc6bf0a525..71b06b336a5 100644
--- a/src/emu/machine/generic.c
+++ b/src/emu/machine/generic.c
@@ -77,7 +77,7 @@ void generic_machine_init(running_machine *machine)
{
generic_machine_private *state;
int counternum;
-
+
/* allocate our state */
machine->generic_machine_data = auto_alloc_clear(machine, generic_machine_private);
state = machine->generic_machine_data;
@@ -123,7 +123,7 @@ void generic_machine_init(running_machine *machine)
***************************************************************************/
/*-------------------------------------------------
- get_dispensed_tickets - return the number of
+ get_dispensed_tickets - return the number of
tickets dispensed
-------------------------------------------------*/
@@ -135,7 +135,7 @@ int get_dispensed_tickets(running_machine *machine)
/*-------------------------------------------------
- increment_dispensed_tickets - increment the
+ increment_dispensed_tickets - increment the
number of dispensed tickets
-------------------------------------------------*/
@@ -245,7 +245,7 @@ void coin_counter_w(running_machine *machine, int num, int on)
/*-------------------------------------------------
- coin_counter_get_count - return the coin count
+ coin_counter_get_count - return the coin count
for a given coin
-------------------------------------------------*/
@@ -272,7 +272,7 @@ void coin_lockout_w(running_machine *machine, int num,int on)
/*-------------------------------------------------
- coin_lockout_get_state - return current lockout
+ coin_lockout_get_state - return current lockout
state for a particular coin
-------------------------------------------------*/
diff --git a/src/emu/mame.c b/src/emu/mame.c
index 8464a629560..b11ebc79965 100644
--- a/src/emu/mame.c
+++ b/src/emu/mame.c
@@ -1402,7 +1402,7 @@ static running_machine *create_machine(const game_driver *driver)
if (machine->mame_data == NULL)
goto error;
memset(machine->mame_data, 0, sizeof(*machine->mame_data));
-
+
/* allocate memory for the memory region map */
machine->mame_data->regionmap = tagmap_alloc();
if (machine->mame_data->regionmap == NULL)
diff --git a/src/emu/mame.h b/src/emu/mame.h
index aa699fc7885..802d588eb5f 100644
--- a/src/emu/mame.h
+++ b/src/emu/mame.h
@@ -211,7 +211,7 @@ struct _running_machine
/* debugger-related information */
UINT32 debug_flags; /* the current debug flags */
-
+
/* generic pointers */
generic_pointers generic; /* generic pointers */
diff --git a/src/emu/mconfig.c b/src/emu/mconfig.c
index ed0d1704299..4ef8dc8c776 100644
--- a/src/emu/mconfig.c
+++ b/src/emu/mconfig.c
@@ -70,7 +70,7 @@ machine_config *machine_config_alloc(const machine_config_token *tokens)
/* allocate a new configuration object */
config = alloc_clear_or_die(machine_config);
-
+
/* initialize the device list */
device_list_init(&config->devicelist, TRUE);
diff --git a/src/emu/sound/cdp1869.c b/src/emu/sound/cdp1869.c
index 9322b99a2e8..35b9c099b20 100644
--- a/src/emu/sound/cdp1869.c
+++ b/src/emu/sound/cdp1869.c
@@ -8,7 +8,7 @@
TODO:
- - remove CDP1802 dependency
+ - remove CDP1802 dependency
- white noise
- scanline based update
- CMSEL output
diff --git a/src/emu/streams.c b/src/emu/streams.c
index 72f7f2e828b..4445e94c3f3 100644
--- a/src/emu/streams.c
+++ b/src/emu/streams.c
@@ -939,22 +939,22 @@ static stream_sample_t *generate_resampled_data(stream_input *input, UINT32 nums
while (numsamples != 0)
{
int nextfrac, startfrac, endfrac;
-
+
/* fill in with point samples until we hit a boundary */
while ((nextfrac = basefrac + step) < FRAC_ONE && numsamples--)
{
*dest++ = (source[0] * gain) >> 8;
basefrac = nextfrac;
}
-
+
/* if we're done, we're done */
if ((INT32)numsamples-- < 0)
break;
-
+
/* compute starting and ending fractional positions */
startfrac = basefrac >> (FRAC_BITS - 12);
endfrac = nextfrac >> (FRAC_BITS - 12);
-
+
/* blend between the two samples accordingly */
sample = (source[0] * (0x1000 - startfrac) + source[1] * (endfrac - 0x1000)) / (endfrac - startfrac);
*dest++ = (sample * gain) >> 8;
diff --git a/src/emu/uimenu.c b/src/emu/uimenu.c
index 12e84b10997..6923eb5be52 100644
--- a/src/emu/uimenu.c
+++ b/src/emu/uimenu.c
@@ -2431,7 +2431,7 @@ static void menu_bookkeeping_populate(running_machine *machine, ui_menu *menu, a
for (ctrnum = 0; ctrnum < COIN_COUNTERS; ctrnum++)
{
int count = coin_counter_get_count(machine, ctrnum);
-
+
/* display the coin counter number */
astring_catprintf(tempstring, "Coin %c: ", ctrnum + 'A');
diff --git a/src/emu/validity.c b/src/emu/validity.c
index e33b51d09e1..7bb79ae4b3e 100644
--- a/src/emu/validity.c
+++ b/src/emu/validity.c
@@ -326,7 +326,7 @@ static int validate_driver(int drivnum, const machine_config *config, tagmap *na
mame_printf_error("%s: %s is a duplicate name (%s, %s)\n", driver->source_file, driver->name, match->source_file, match->name);
error = TRUE;
}
-
+
/* check for duplicate descriptions */
if (tagmap_add(descriptions, driver->description, (void *)driver) == TMERR_DUPLICATE)
{
@@ -1058,7 +1058,7 @@ static int validate_inputs(int drivnum, const machine_config *config, tagmap *de
mame_printf_error("%s: %s has input port errors:\n%s\n", driver->source_file, driver->name, errorbuf);
error = TRUE;
}
-
+
/* check for duplicate tags */
for (port = portlist->head; port != NULL; port = port->next)
if (port->tag != NULL)
@@ -1420,7 +1420,7 @@ int mame_validitychecks(const game_driver *curdriver)
int error = FALSE;
UINT16 lsbtest;
UINT8 a, b;
-
+
tagmap *names = tagmap_alloc();
tagmap *descriptions = tagmap_alloc();
tagmap *roms = tagmap_alloc();
@@ -1472,7 +1472,7 @@ int mame_validitychecks(const game_driver *curdriver)
tagmap_add(defstr, string, (void *)(FPTR)strnum);
}
prep += get_profile_ticks();
-
+
/* iterate over all drivers */
for (drivnum = 0; drivers[drivnum]; drivnum++)
{
diff --git a/src/emu/video/generic.c b/src/emu/video/generic.c
index af79d3c6b01..379e0fdf5fc 100644
--- a/src/emu/video/generic.c
+++ b/src/emu/video/generic.c
@@ -231,7 +231,7 @@ INLINE void set_color_888(running_machine *machine, pen_t color, int rshift, int
void generic_video_init(running_machine *machine)
{
generic_video_private *state;
-
+
state = machine->generic_video_data = auto_alloc_clear(machine, generic_video_private);
state_save_register_item(machine, "video", NULL, 0, state->flip_screen_x);