summaryrefslogtreecommitdiff
path: root/audio/xmms-nsf/files/patch-src_nes_handler.c
blob: 8da5cc3e93f204135404e4cd64a0bb059e0119c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- src/nes/handler.c.orig	2001-01-07 04:17:57 UTC
+++ src/nes/handler.c
@@ -10,9 +10,9 @@
 static NES_READ_HANDLER  *(nprh[0x10]) = { 0, };
 static NES_WRITE_HANDLER *(npwh[0x10]) = { 0, };
 #define EXTREADWRITE(p) \
-static Uint __fastcall ExtRd##p##(Uint A) \
+static Uint __fastcall ExtRd##p (Uint A) \
 { \
-	NES_READ_HANDLER *ph = nprh[0x##p##]; \
+	NES_READ_HANDLER *ph = nprh[0x##p ]; \
 	do \
 	{ \
 		if (ph->min <= A && A <= ph->max) \
@@ -22,9 +22,9 @@ static Uint __fastcall ExtRd##p##(Uint A
 	} while ((ph = ph->next) != 0); \
 	return 0; \
 } \
-static void __fastcall ExtWr##p##(Uint A, Uint V) \
+static void __fastcall ExtWr##p (Uint A, Uint V) \
 { \
-	NES_WRITE_HANDLER *ph = npwh[0x##p##]; \
+	NES_WRITE_HANDLER *ph = npwh[0x##p ]; \
 	do \
 	{ \
 		if (ph->min <= A && A <= ph->max) \