From fecfc465df47655554aeb0ea33eccb0f33d498a7 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 18 Apr 2011 20:06:43 +0000 Subject: 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 --- src/emu/machine/eeprom.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/emu/machine/eeprom.c') 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); } -- cgit v1.2.3-70-g09d2