From: Atari Ace [mailto:atari_ace@verizon.net]

Subject: [patch] Small deprecat.h related cleanup

Hi mamedev,

While doing some work on eliminating some uses of deprecat.h, I came
across a few files that didn't have it that used deprecated features.
A little investigation revealed they were getting it through
debugger.h, typically by referencing m68000.h.  Since deprecat.h is
intended to document the files that need updating (otherwise it would
just be included in a common header), I reworked debugger.h to not
import it when the debugger is not enabled, and fixed the files that
broke as a result.

~aa
This commit is contained in:
Aaron Giles 2008-05-01 13:52:28 +00:00
parent 78f2c75751
commit a910dafd37
15 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#include "deprecat.h"
/* ======================================================================== */
/* ============================= CONFIGURATION ============================ */
/* ======================================================================== */

View File

@ -51,6 +51,7 @@
added save state support.
*/
#include "deprecat.h"
#include "debugger.h"
#include "m37710cm.h"

View File

@ -29,6 +29,7 @@
#define HAS_M65C02 1
#endif
#include "deprecat.h"
#include "debugger.h"
#include "m6502.h"
#include "ops02.h"

View File

@ -37,6 +37,7 @@ addresses take place.
*/
#include "deprecat.h"
#include "debugger.h"
#include "m6509.h"

View File

@ -972,6 +972,8 @@ void m68k_set_context(void* src)
#if M68K_COMPILE_FOR_MAME == OPT_ON
#include "deprecat.h"
static struct {
UINT16 sr;
UINT8 stopped;

View File

@ -678,7 +678,7 @@ static void ppc403_spu_w(UINT32 a, UINT8 d)
case 0x9:
ppc.spu.sptb = d;
ppc403_spu_tx_callback(Machine, NULL, cpu_getactivecpu());
ppc403_spu_tx_callback(NULL/* Machine */, NULL, cpu_getactivecpu());
break;
default:

View File

@ -16,7 +16,9 @@
#include "mame.h"
#include "memory.h"
#ifdef ENABLE_DEBUGGER
#include "deprecat.h"
#endif
/***************************************************************************

View File

@ -15,6 +15,7 @@
#ifndef __DEPRECAT_H__
#define __DEPRECAT_H__
#include "mamecore.h"
/*************************************

View File

@ -152,6 +152,7 @@ Stephh's notes (based on the games M68000 code and some tests) :
*/
#include "driver.h"
#include "deprecat.h"
#include "cpu/m68000/m68000.h"
#include "cpu/z80/z80.h"
#include "sound/dac.h"

View File

@ -584,6 +584,7 @@ Stephh's inputs notes (based on some tests on the "parent" set) :
***************************************************************************/
#include "driver.h"
#include "deprecat.h"
#include "machine/eeprom.h"
#include "cpu/m68000/m68000.h"
#include "sound/qsound.h"

View File

@ -33,6 +33,7 @@ from 2.bin to 9.bin program eproms
*/
#include "driver.h"
#include "deprecat.h"
#include "cpu/m68000/m68kmame.h"
#include "cps1.h"
#include "sound/2203intf.h"

View File

@ -19,6 +19,7 @@
***************************************************************************/
#include "driver.h"
#include "deprecat.h"
#include "cpu/m68000/m68000.h"
#include "sound/gaelco.h"
#include "rendlay.h"

View File

@ -9,6 +9,7 @@ The DS5002FP has 32KB undumped gameplay code making the game unplayable :_(
***************************************************************************/
#include "driver.h"
#include "deprecat.h"
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"

View File

@ -31,6 +31,7 @@ EEPROM chip: 93C46
***************************************************************************/
#include "driver.h"
#include "deprecat.h"
#include "machine/eeprom.h"
#include "cpu/m68000/m68000.h"
#include "sound/saa1099.h"

View File

@ -6,6 +6,7 @@ this could get messy if games change their own code after initial loading as we'
*/
#include "driver.h"
#include "deprecat.h"
#include "cpu/m68000/m68000.h"
#include "machine/fd1094.h"