diff options
author | 2008-04-24 05:59:39 +0000 | |
---|---|---|
committer | 2008-04-24 05:59:39 +0000 | |
commit | 737ff539301408ff336f32fbb653ede921d595ac (patch) | |
tree | e1b7c978b10a9b99d3201b4d11865ffbd33e41da /src/emu/cpu/tms32031 | |
parent | 38ee64ae77e633afc7dc7d6a289b6186754c2085 (diff) |
From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Eliminate assignments in conditionals
Hi mamedev,
Assignments in conditionals are never really needed in C and are
occasionally just plain bugs (== gets typed as =). As such, it would
be good to remove these from MAME so that compilers that warn on this
construct can flag the likely bugs (MSVC does this for example). The
attached patch does just that. In addition, it refactors some
repeated code which had this in taito_f3.c into a couple macros. Using
inline functions would unfortunately have required more significant
changes, perhaps I'll tackle that another day.
~aa
Diffstat (limited to 'src/emu/cpu/tms32031')
0 files changed, 0 insertions, 0 deletions