summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-08-28 08:50:34 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-08-28 08:50:34 +0000
commitf8f967838707a269a1302b378d7a92c4e580391c (patch)
tree3b1149fdb404310a78cc104f214647a9b449401d /src/emu
parent66a19bd16beac7df125119e2a88917e1d8173a42 (diff)
From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Monday, August 25, 2008 8:16 AM Subject: [patch] Remove useless backslashes Hi mamedev, I've been using pmd 4.2.2 to analyze the MAME codebase for duplicate code, and it's C parser complains about useless backslashes and dangling defines in #if...#endif sections. Here's a patch that fixes this, and additionally fixes one real bug, a string in djmain.c was malformed, it's curious it compiled. ~aa
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/cpu/cp1610/cp1610.c1
-rw-r--r--src/emu/cpu/m6502/ill02.h1
-rw-r--r--src/emu/cpu/tms32025/tms32025.c2
-rw-r--r--src/emu/machine/roc10937.c4
4 files changed, 5 insertions, 3 deletions
diff --git a/src/emu/cpu/cp1610/cp1610.c b/src/emu/cpu/cp1610/cp1610.c
index ec7780b634f..442f63c97e7 100644
--- a/src/emu/cpu/cp1610/cp1610.c
+++ b/src/emu/cpu/cp1610/cp1610.c
@@ -101,6 +101,7 @@ static cp1610_Regs cp1610;
}
#if 0
+#define SET_COV(n,m) \
if ((n&0x7fff)+(m&0x7fff) > 0x7fff) \
{ \
if (!(cp1610.flags & C))\
diff --git a/src/emu/cpu/m6502/ill02.h b/src/emu/cpu/m6502/ill02.h
index 40b4c2164de..8b1e52741e8 100644
--- a/src/emu/cpu/m6502/ill02.h
+++ b/src/emu/cpu/m6502/ill02.h
@@ -233,6 +233,7 @@
S = A & X; \
tmp = S & (EAH+1)
#if 0
+#define SSH \
tmp = S = A & X; \
tmp &= (UINT8)(cpu_readop_arg((PCW + 1) & 0xffff) + 1)
#endif
diff --git a/src/emu/cpu/tms32025/tms32025.c b/src/emu/cpu/tms32025/tms32025.c
index 6d5ae0f6ee5..d0d137100e3 100644
--- a/src/emu/cpu/tms32025/tms32025.c
+++ b/src/emu/cpu/tms32025/tms32025.c
@@ -291,7 +291,7 @@ INLINE void CLR1(UINT16 flag) { R.STR1 &= ~flag; R.STR1 |= 0x0180; }
INLINE void SET1(UINT16 flag) { R.STR1 |= flag; R.STR1 |= 0x0180; }
INLINE void MODIFY_DP (int data) { R.STR0 &= ~DP_REG; R.STR0 |= (data & DP_REG); R.STR0 |= 0x0400; }
INLINE void MODIFY_PM (int data) { R.STR1 &= ~PM_REG; R.STR1 |= (data & PM_REG); R.STR1 |= 0x0180; }
-INLINE void MODIFY_ARP(int data) { R.STR1 &= ~ARB_REG; R.STR1 |= (R.STR0 & ARP_REG); R.STR1 |= 0x0180; \
+INLINE void MODIFY_ARP(int data) { R.STR1 &= ~ARB_REG; R.STR1 |= (R.STR0 & ARP_REG); R.STR1 |= 0x0180;
R.STR0 &= ~ARP_REG; R.STR0 |= ((data << 13) & ARP_REG); R.STR0 |= 0x0400; }
#ifdef UNUSED_FUNCTION
INLINE void MODIFY_ARB(int data) { R.STR1 &= ~ARB_REG; R.STR1 |= ((data << 13) & ARB_REG); R.STR1 |= 0x0180; }
diff --git a/src/emu/machine/roc10937.c b/src/emu/machine/roc10937.c
index 4b23c8b1df7..bd00d833247 100644
--- a/src/emu/machine/roc10937.c
+++ b/src/emu/machine/roc10937.c
@@ -38,8 +38,8 @@ static struct
//
static const char roc10937ASCII[]=
//0123456789ABCDEF0123456789ABC DEF01 23456789ABCDEF0123456789ABCDEF
- "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?"\
- "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?"\
+ "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?"
+ "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?"
"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ ?\"#$%%'()*+;-./0123456789&%<=>?";
/*