diff options
author | 2008-05-22 03:23:28 +0000 | |
---|---|---|
committer | 2008-05-22 03:23:28 +0000 | |
commit | a300da217858eca134d8123bc40de809128b7bff (patch) | |
tree | ad4b51c652e9073b4422f7537a355b2e5fa014fa /src/emu/machine/tmp68301.h | |
parent | 98a8e739479b1339c5de45a1b1c9da3b8060ee15 (diff) |
From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] More Machine->machine changes, add machine to irq
callbacks
Hi mamedev,
Here are two more patches to eliminate Machine globals. The first
patch was autogenerated by the attached fixup script. That script has
been updated to catch additional cases which it previously missed
(when Machine is the last parameter to a function or Machine is used
in an assignment). This makes ~50 more files deprecat.h free.
A sizable chunk (~20%) of the remaining uses of the Machine global in
the drivers are due to irq callbacks for sound and machine updates.
Typically such callbacks need to call cpunum_set_input_line, which
requires a machine parameter, so if the callbacks don't pass the
machine parameter, these routines have no choice but to reference the
global variable.
The second patch attempts to address most cases of this by adding the
machine parameter to the callback interfaces. This allows us to
remove #include "deprecat.h" from ~150 files, at the cost of having to
fix up hundreds of callbacks.
In total, these patches reduced the number of files with deprecat.h
from 783 to 575.
~aa
Diffstat (limited to 'src/emu/machine/tmp68301.h')
-rw-r--r-- | src/emu/machine/tmp68301.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/machine/tmp68301.h b/src/emu/machine/tmp68301.h index 55efe169220..6aab3cec760 100644 --- a/src/emu/machine/tmp68301.h +++ b/src/emu/machine/tmp68301.h @@ -9,8 +9,8 @@ extern UINT16 *tmp68301_regs; WRITE16_HANDLER( tmp68301_regs_w ); // Interrupts -void tmp68301_external_interrupt_0(void); -void tmp68301_external_interrupt_1(void); -void tmp68301_external_interrupt_2(void); +void tmp68301_external_interrupt_0(running_machine *machine); +void tmp68301_external_interrupt_1(running_machine *machine); +void tmp68301_external_interrupt_2(running_machine *machine); #endif |