diff options
author | 2010-01-10 00:29:26 +0000 | |
---|---|---|
committer | 2010-01-10 00:29:26 +0000 | |
commit | 4498faacd93cbb7f204d1b47e5d12bd417cf43b3 (patch) | |
tree | eebf7c70b83ce57ba2707407872a01fe3ef7bb3c /src/emu/cpu/lh5801 | |
parent | 43d93150b5bc214537d5198cd9e7f01f2020eff8 (diff) |
First round of an attempted cleanup of header files in the system.
- Created new central header "emu.h"; this should be included
by pretty much any driver or device as the first include. This
file in turn includes pretty much everything a driver or device
will need, minus any other devices it references. Note that
emu.h should *never* be included by another header file.
- Updated all files in the core (src/emu) to use emu.h.
- Removed a ton of redundant and poorly-tracked header includes
from within other header files.
- Temporarily changed driver.h to map to emu.h until we update
files outside of the core.
Added class wrapper around tagmap so it can be directly included
and accessed within objects that need it. Updated all users to
embed tagmap objects and changed them to call through the class.
Added nicer functions for finding devices, ports, and regions in
a machine:
machine->device("tag") -- return the named device, or NULL
machine->port("tag") -- return the named port, or NULL
machine->region("tag"[, &length[, &flags]]) -- return the
named region and optionally its length and flags
Made the device tag an astring. This required touching a lot of
code that printed the device to explicitly fetch the C-string
from it. (Thank you gcc for flagging that issue!)
Diffstat (limited to 'src/emu/cpu/lh5801')
-rw-r--r-- | src/emu/cpu/lh5801/5801dasm.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/lh5801/lh5801.c | 1 | ||||
-rw-r--r-- | src/emu/cpu/lh5801/lh5801.h | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cpu/lh5801/5801dasm.c b/src/emu/cpu/lh5801/5801dasm.c index 63112920184..840205042fd 100644 --- a/src/emu/cpu/lh5801/5801dasm.c +++ b/src/emu/cpu/lh5801/5801dasm.c @@ -19,7 +19,7 @@ * *****************************************************************************/ -#include "cpuintrf.h" +#include "emu.h" #include "debugger.h" #include "lh5801.h" diff --git a/src/emu/cpu/lh5801/lh5801.c b/src/emu/cpu/lh5801/lh5801.c index 8fb559c6714..e9655be9b97 100644 --- a/src/emu/cpu/lh5801/lh5801.c +++ b/src/emu/cpu/lh5801/lh5801.c @@ -18,6 +18,7 @@ * *****************************************************************************/ +#include "emu.h" #include "debugger.h" #include "lh5801.h" diff --git a/src/emu/cpu/lh5801/lh5801.h b/src/emu/cpu/lh5801/lh5801.h index 1460322a83e..cc592d42ab8 100644 --- a/src/emu/cpu/lh5801/lh5801.h +++ b/src/emu/cpu/lh5801/lh5801.h @@ -63,7 +63,6 @@ pb 8bit io pc 8bit */ -#include "cpuintrf.h" typedef UINT8 (*lh5801_in_func)(const device_config *device); |