diff options
author | 2009-08-13 04:55:32 +0000 | |
---|---|---|
committer | 2009-08-13 04:55:32 +0000 | |
commit | 40cc74b98f4b106ef77e6902e298704437ced114 (patch) | |
tree | 8d05ca539e484280c3567960d740bb5cdf641e1e /src/emu/mame.h | |
parent | 259fb90602e9ad68211032f1545d7df2c20d23e1 (diff) |
> -----Original Message-----
> From: Atari Ace [mailto:atari_ace@verizon.net]
> Sent: Monday, August 03, 2009 10:52 PM
> To: submit@mamedev.org
> Cc: atariace@hotmail.com
> Subject: [patch] De-globalize romload.c/validity.c
>
> Hi mamedev,
>
> Static and global variables in the core of MAME have slowly been
> replaced with opaque structures latched onto the running machine. This
> patch extends this idiom to two more files, romload.c and validity.c.
> validity.c in fact didn't need any global state (it was used only to
> pass data between function calls), and romload.c already had a struct
> that largely served that purpose.
>
> ~aa
Diffstat (limited to 'src/emu/mame.h')
-rw-r--r-- | src/emu/mame.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/mame.h b/src/emu/mame.h index 399ea8df880..375d3a07331 100644 --- a/src/emu/mame.h +++ b/src/emu/mame.h @@ -133,6 +133,7 @@ typedef struct _palette_private palette_private; typedef struct _tilemap_private tilemap_private; typedef struct _streams_private streams_private; typedef struct _devices_private devices_private; +typedef struct _romload_private romload_private; typedef struct _input_port_private input_port_private; typedef struct _ui_input_private ui_input_private; typedef struct _cheat_private cheat_private; @@ -182,6 +183,7 @@ struct _running_machine tilemap_private * tilemap_data; /* internal data from tilemap.c */ streams_private * streams_data; /* internal data from streams.c */ devices_private * devices_data; /* internal data from devices.c */ + romload_private * romload_data; /* internal data from romload.c */ input_port_private * input_port_data; /* internal data from inptport.c */ ui_input_private * ui_input_data; /* internal data from uiinput.c */ cheat_private * cheat_data; /* internal data from cheat.c */ @@ -223,7 +225,7 @@ struct _mame_system_time /*************************************************************************** - GLOBAL VARAIBLES + GLOBAL VARIABLES ***************************************************************************/ extern const char mame_disclaimer[]; |