aboutsummaryrefslogtreecommitdiff
path: root/audio/xmms-nsf/files/patch-src__nes__handler.c
blob: 8c28ac55d0056b95fa403257abc7e6984c34f4e6 (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	Sun Jan  7 05:17:57 2001
+++ ./src/nes/handler.c	Wed Jan 10 20:10:34 2007
@@ -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 @@
 	} 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) \