summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-12-12 06:11:15 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-12-12 06:11:15 +0000
commitb400e7978bb626a14196fae7b45bb89dfeeae249 (patch)
tree454f1b103d0f8e80e719dbf37251b2304c07a91e /src/emu/debug
parent9dc496610928a3adee6c2d46f954634fcb83063a (diff)
From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Thursday, December 11, 2008 6:52 PM To: submit@mamedev.org Cc: atariace@hotmail.com Subject: [patch] deprecat.h cpu cleanup Hi mamedev, This patch purges the last few uses of deprecat.h from the cpu cores, plus a handful of other Machine cases elsewhere that were found by script inspection. ~aa -- Hi mamedev, This patch eliminates most uses of deprecat.h in the sound cores by attaching the device to the state object and using it where appropriate. Given that all the cpu objects use this convention, and three sound cores already do this, this seemed an appropriate approach. ~aa
Diffstat (limited to 'src/emu/debug')
-rw-r--r--src/emu/debug/debugcmt.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/emu/debug/debugcmt.c b/src/emu/debug/debugcmt.c
index e60d3580e5e..8b7912dc5d8 100644
--- a/src/emu/debug/debugcmt.c
+++ b/src/emu/debug/debugcmt.c
@@ -21,7 +21,6 @@
***************************************************************************/
#include "driver.h"
-#include "deprecat.h"
#include "xmlfile.h"
#include "debugcmt.h"
#include "debugcpu.h"
@@ -86,7 +85,7 @@ static comment_group *debug_comments;
static int debug_comment_load_xml(running_machine *machine, mame_file *file);
static void debug_comment_exit(running_machine *machine);
-static void debug_comment_free(void);
+static void debug_comment_free(running_machine *machine);
@@ -556,7 +555,7 @@ error:
static void debug_comment_exit(running_machine *machine)
{
debug_comment_save(machine);
- debug_comment_free();
+ debug_comment_free(machine);
}
@@ -564,12 +563,12 @@ static void debug_comment_exit(running_machine *machine)
debug_comment_free - cleans up memory
-------------------------------------------------------------------------*/
-static void debug_comment_free(void)
+static void debug_comment_free(running_machine *machine)
{
int i, j;
- for (i = 0; i < ARRAY_LENGTH(Machine->cpu); i++)
- if (Machine->cpu[i] != NULL)
+ for (i = 0; i < ARRAY_LENGTH(machine->cpu); i++)
+ if (machine->cpu[i] != NULL)
{
for (j = 0; j < debug_comments[i].comment_count; j++)
{