mame/src/emu/cpu/m37710
Aaron Giles ef0a31ca13 From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Sunday, June 07, 2009 9:54 AM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] "Regularize" some interfaces in MAME

Hi mamedev,

This patch adjusts the code in a few places to be more regular in it
object approach.  It recognizes five idioms.

1.  device_configs should be passed const.  dsp56k.h took a non-const
device_config for no particular reason, necessitating casting where
used.  A few other places cast to non-const, in most cases
unnecessarily.
2.  running_machines should be passed non-const.  A few places used
const in different ways on running_machines, instead of the idiomatic
non-const running_machine.
3.  Eliminate passing running_machine explicitly where it can be
computed.  esrip.c, m37710.c, sfbonus.c had cases where the machine
could easily be eliminated.
4.  Pass the object machine/config first.  In some cases this makes
the interface object oriented, in some cases it simply makes it more
idiomatic with the rest of MAME.
5.  Prefer (screen, bitmap, cliprect) to (machine, bitmap, cliprect).
Fully implementing this would be a large patch, this patch simply does
it for the one core 'device', tms9928a.c.
2009-06-08 06:24:21 +00:00
..
m7700ds.c From: Duke [mailto:startaq@gmail.com] 2009-01-14 06:00:48 +00:00
m7700ds.h structure, lower-casing functions and re-inclusion updates of the src\emu\cpu headers J - M. 2008-08-12 03:40:09 +00:00
m37710.c From: Atari Ace [mailto:atari_ace@verizon.net] 2009-06-08 06:24:21 +00:00
m37710.h CPU header cleanups.... 2008-12-18 09:38:12 +00:00
m37710cm.h CPU cores now compile cleanly. 2009-03-15 17:12:40 +00:00
m37710o0.c Initial checkin of MAME 0.121. 2007-12-17 15:19:59 +00:00
m37710o1.c Initial checkin of MAME 0.121. 2007-12-17 15:19:59 +00:00
m37710o2.c Initial checkin of MAME 0.121. 2007-12-17 15:19:59 +00:00
m37710o3.c Initial checkin of MAME 0.121. 2007-12-17 15:19:59 +00:00
m37710op.h Added missing casts and made other tweaks. The entire project 2009-04-27 09:18:17 +00:00