diff options
author | Aaron Giles <aaron@aarongiles.com> | 2007-12-26 16:55:35 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2007-12-26 16:55:35 +0000 |
commit | 28d23853ae0f6d69080f4d3cb960257502d4be90 (patch) | |
tree | d1cac859cbab17796198424cc9cd625a2b8c3911 /src/mame/machine | |
parent | 6e449526786d9c6c42f6f668d69efcb4ac8fe761 (diff) |
(From AtariAce)
This patch should complete the addition of static qualifiers to all
MAME symbols that aren't explicitly exported. It primarily handles
generated code (e.g. amspdwy.c), plus a handful of cases I'd
previously missed and some new cases introduced in the last update.
One interesting bit was the discovery that the 32-bit scanline
routines in drawgfx.c are unused. I debated eliminating them but
decided instead to just export them. Various internal drawgfx
functions were conditionally removed by examining a new RAW define,
although one routine (blockmove_8toN_alphaone) was determined to be
dead code.
While investigating constifying MESS, I came across a few core APIs
that were missing const qualifiers which this patch fixes. I also
consted up tx1.c while I was at it.
Diffstat (limited to 'src/mame/machine')
-rw-r--r-- | src/mame/machine/amiga.c | 2 | ||||
-rw-r--r-- | src/mame/machine/tx1.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/amiga.c b/src/mame/machine/amiga.c index 0be6e7d78cf..e1979afdd15 100644 --- a/src/mame/machine/amiga.c +++ b/src/mame/machine/amiga.c @@ -1529,7 +1529,7 @@ attotime amiga_get_serial_char_period(void) * *************************************/ -void amiga_add_autoconfig(amiga_autoconfig_device *device) +void amiga_add_autoconfig(const amiga_autoconfig_device *device) { autoconfig_device *dev, **d; diff --git a/src/mame/machine/tx1.c b/src/mame/machine/tx1.c index 5421bb54853..f1e59ec4348 100644 --- a/src/mame/machine/tx1.c +++ b/src/mame/machine/tx1.c @@ -229,7 +229,7 @@ static void sn_divide(void) SN74S516.ZWfl = 0; } -void sn74s516_update(const int ins) +static void sn74s516_update(const int ins) { SN74S516.state = state_table[SN74S516.state][ins]; |