diff options
author | 2011-04-18 20:06:43 +0000 | |
---|---|---|
committer | 2011-04-18 20:06:43 +0000 | |
commit | fecfc465df47655554aeb0ea33eccb0f33d498a7 (patch) | |
tree | 842317d1595fa823a6bd290b7667a66d2fc09a81 /src/emu/machine/eeprom.c | |
parent | 4e7f194a638d0955374d2acf984017d5b1ed0e65 (diff) |
Switch from m_machine to machine() everywhere. In some cases this
meant adding a machine() accessor but it's worth it for consistency.
This will allow future changes from reference to pointer to happen
transparently for devices. [Aaron Giles]
Simple S&R:
m_machine( *[^ (!=;])
machine()\1
Diffstat (limited to 'src/emu/machine/eeprom.c')
-rw-r--r-- | src/emu/machine/eeprom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/machine/eeprom.c b/src/emu/machine/eeprom.c index 5c5a3bbe9e0..14cfbefa011 100644 --- a/src/emu/machine/eeprom.c +++ b/src/emu/machine/eeprom.c @@ -302,11 +302,11 @@ void eeprom_device::nvram_read(emu_file &file) UINT32 eeprom_length = 1 << m_config.m_address_bits; UINT32 eeprom_bytes = eeprom_length * m_config.m_data_bits / 8; - UINT8 *buffer = auto_alloc_array(m_machine, UINT8, eeprom_bytes); + UINT8 *buffer = auto_alloc_array(machine(), UINT8, eeprom_bytes); file.read(buffer, eeprom_bytes); for (offs_t offs = 0; offs < eeprom_bytes; offs++) m_addrspace[0]->write_byte(offs, buffer[offs]); - auto_free(m_machine, buffer); + auto_free(machine(), buffer); } @@ -320,11 +320,11 @@ void eeprom_device::nvram_write(emu_file &file) UINT32 eeprom_length = 1 << m_config.m_address_bits; UINT32 eeprom_bytes = eeprom_length * m_config.m_data_bits / 8; - UINT8 *buffer = auto_alloc_array(m_machine, UINT8, eeprom_bytes); + UINT8 *buffer = auto_alloc_array(machine(), UINT8, eeprom_bytes); for (offs_t offs = 0; offs < eeprom_bytes; offs++) buffer[offs] = m_addrspace[0]->read_byte(offs); file.write(buffer, eeprom_bytes); - auto_free(m_machine, buffer); + auto_free(machine(), buffer); } |