diff options
author | Aaron Giles <aaron@aarongiles.com> | 2009-06-08 06:24:21 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2009-06-08 06:24:21 +0000 |
commit | ef0a31ca13fd0598fd9d694d5bc0bee0a0f23f3b (patch) | |
tree | 218ccdde1d5bd32fcc015ca18dce4cf845db0d76 /src/mame/drivers/megadriv.c | |
parent | ce83de86a8c88053081d9f5cb8c6b83baf606fb9 (diff) |
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.
Diffstat (limited to 'src/mame/drivers/megadriv.c')
0 files changed, 0 insertions, 0 deletions