diff options
author | Aaron Giles <aaron@aarongiles.com> | 2009-01-14 06:00:48 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2009-01-14 06:00:48 +0000 |
commit | 81fce8af371a7a353876e52cbcb2204e20799f9a (patch) | |
tree | 9768ab91f2c4c1c014eac979f0abc28968ecf819 /src | |
parent | 40d9394d3d509a4e806f78d4610e8f32853922c3 (diff) |
From: Duke [mailto:startaq@gmail.com]
Sent: Friday, January 09, 2009 4:14 AM
To: submit@mamedev.org
Subject: Patch to remove useless INLINE defines
Hello,
this patch removes several occurrences of "#define INLINE" in CPU and
sound cores, which I assume are useless since the makefile already
defines this.
--Dirk
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/cpu/alph8201/alph8201.h | 4 | ||||
-rw-r--r-- | src/emu/cpu/g65816/g65816cm.h | 5 | ||||
-rw-r--r-- | src/emu/cpu/g65816/g65816ds.c | 3 | ||||
-rw-r--r-- | src/emu/cpu/m37710/m37710cm.h | 5 | ||||
-rw-r--r-- | src/emu/cpu/m37710/m7700ds.c | 4 | ||||
-rw-r--r-- | src/emu/cpu/mb88xx/mb88xx.h | 4 | ||||
-rw-r--r-- | src/emu/cpu/pic16c5x/pic16c5x.c | 4 | ||||
-rw-r--r-- | src/emu/cpu/spc700/spc700.c | 5 | ||||
-rw-r--r-- | src/emu/cpu/spc700/spc700.h | 4 | ||||
-rw-r--r-- | src/emu/cpu/spc700/spc700ds.c | 4 | ||||
-rw-r--r-- | src/emu/cpu/tms32010/tms32010.c | 4 | ||||
-rw-r--r-- | src/emu/cpu/tms32025/tms32025.c | 4 | ||||
-rw-r--r-- | src/emu/cpu/tms34010/34010ops.h | 4 | ||||
-rw-r--r-- | src/emu/sound/fm.h | 5 | ||||
-rw-r--r-- | src/emu/sound/ym2151.c | 1 |
15 files changed, 0 insertions, 60 deletions
diff --git a/src/emu/cpu/alph8201/alph8201.h b/src/emu/cpu/alph8201/alph8201.h index 4cccfbf0db4..43f02a1e264 100644 --- a/src/emu/cpu/alph8201/alph8201.h +++ b/src/emu/cpu/alph8201/alph8201.h @@ -12,10 +12,6 @@ #ifndef __ALPH8201_H__ #define __ALPH8201_H__ -#ifndef INLINE -#define INLINE static inline -#endif - #include "cpuintrf.h" enum diff --git a/src/emu/cpu/g65816/g65816cm.h b/src/emu/cpu/g65816/g65816cm.h index 1c564b4451f..97629f925bc 100644 --- a/src/emu/cpu/g65816/g65816cm.h +++ b/src/emu/cpu/g65816/g65816cm.h @@ -30,11 +30,6 @@ /* ================================ GENERAL =============================== */ /* ======================================================================== */ -/* Fallback on static if we don't have inline */ -#ifndef INLINE -#define INLINE static -#endif - /* This should be set to the default size of your processor (min 16 bit) */ #undef uint #define uint unsigned int diff --git a/src/emu/cpu/g65816/g65816ds.c b/src/emu/cpu/g65816/g65816ds.c index 68f95c34fab..fb6b481b6cc 100644 --- a/src/emu/cpu/g65816/g65816ds.c +++ b/src/emu/cpu/g65816/g65816ds.c @@ -24,9 +24,6 @@ author (Karl Stenerud) at karl@higashiyama-unet.ocn.ne.jp. #endif #define ADDRESS_65816(A) ((A)&0xffffff) -#ifndef INLINE -#define INLINE static -#endif typedef struct diff --git a/src/emu/cpu/m37710/m37710cm.h b/src/emu/cpu/m37710/m37710cm.h index c76091d41fa..81ef0c0923a 100644 --- a/src/emu/cpu/m37710/m37710cm.h +++ b/src/emu/cpu/m37710/m37710cm.h @@ -37,11 +37,6 @@ /* ================================ GENERAL =============================== */ /* ======================================================================== */ -/* Fallback on static if we don't have inline */ -#ifndef INLINE -#define INLINE static -#endif - /* This should be set to the default size of your processor (min 16 bit) */ #undef uint #define uint unsigned int diff --git a/src/emu/cpu/m37710/m7700ds.c b/src/emu/cpu/m37710/m7700ds.c index 21ed28a5fc6..2bb49ec2659 100644 --- a/src/emu/cpu/m37710/m7700ds.c +++ b/src/emu/cpu/m37710/m7700ds.c @@ -16,10 +16,6 @@ Based on G65C816 CPU Emulator by Karl Stenerud #define ADDRESS_24BIT(A) ((A)&0xffffff) -#ifndef INLINE -#define INLINE static -#endif - typedef struct { unsigned char name; diff --git a/src/emu/cpu/mb88xx/mb88xx.h b/src/emu/cpu/mb88xx/mb88xx.h index 759f7d446b7..656480796af 100644 --- a/src/emu/cpu/mb88xx/mb88xx.h +++ b/src/emu/cpu/mb88xx/mb88xx.h @@ -12,10 +12,6 @@ #ifndef __MB88XX_H__ #define __MB88XX_H__ -#ifndef INLINE -#define INLINE static inline -#endif - #include "cpuintrf.h" /*************************************************************************** diff --git a/src/emu/cpu/pic16c5x/pic16c5x.c b/src/emu/cpu/pic16c5x/pic16c5x.c index d4f7f847aee..0f1d074d461 100644 --- a/src/emu/cpu/pic16c5x/pic16c5x.c +++ b/src/emu/cpu/pic16c5x/pic16c5x.c @@ -55,10 +55,6 @@ #include "pic16c5x.h" -#ifndef INLINE -#define INLINE static inline -#endif - #define M_RDRAM(A) (((A) < 8) ? cpustate->internalram[A] : PIC16C5x_RAM_RDMEM(A)) #define M_WRTRAM(A,V) do { if ((A) < 8) cpustate->internalram[A] = (V); else PIC16C5x_RAM_WRMEM(A,V); } while (0) diff --git a/src/emu/cpu/spc700/spc700.c b/src/emu/cpu/spc700/spc700.c index 91c41e5e3dd..2c9136758d8 100644 --- a/src/emu/cpu/spc700/spc700.c +++ b/src/emu/cpu/spc700/spc700.c @@ -101,11 +101,6 @@ typedef struct /* ==================== ARCHITECTURE-DEPENDANT DEFINES ==================== */ /* ======================================================================== */ -/* Fallback on static if we don't have inline */ -#ifndef INLINE -#define INLINE static -#endif - /* This should be set to the default size of your processor (min 16 bit) */ #undef uint #define uint unsigned int diff --git a/src/emu/cpu/spc700/spc700.h b/src/emu/cpu/spc700/spc700.h index 57de6098a8c..82c917be6c6 100644 --- a/src/emu/cpu/spc700/spc700.h +++ b/src/emu/cpu/spc700/spc700.h @@ -12,10 +12,6 @@ extern CPU_GET_INFO( spc700 ); /* ============================= Configuration ============================ */ /* ======================================================================== */ -#ifndef INLINE -#define INLINE static -#endif - #undef uint #define uint unsigned int diff --git a/src/emu/cpu/spc700/spc700ds.c b/src/emu/cpu/spc700/spc700ds.c index af4cbf7d684..2bdc376fc30 100644 --- a/src/emu/cpu/spc700/spc700ds.c +++ b/src/emu/cpu/spc700/spc700ds.c @@ -19,10 +19,6 @@ author (Karl Stenerud) at karl@higashiyama-unet.ocn.ne.jp. #include "spc700ds.h" -#ifndef INLINE -#define INLINE static -#endif - typedef struct { diff --git a/src/emu/cpu/tms32010/tms32010.c b/src/emu/cpu/tms32010/tms32010.c index ef7c55ca11d..b7f9e333863 100644 --- a/src/emu/cpu/tms32010/tms32010.c +++ b/src/emu/cpu/tms32010/tms32010.c @@ -56,10 +56,6 @@ #include "tms32010.h" -#ifndef INLINE -#define INLINE static inline -#endif - #define M_RDROM(A) TMS32010_ROM_RDMEM(A) #define M_WRTROM(A,V) TMS32010_ROM_WRMEM(A,V) diff --git a/src/emu/cpu/tms32025/tms32025.c b/src/emu/cpu/tms32025/tms32025.c index aedeae15964..e1a17ec6e0f 100644 --- a/src/emu/cpu/tms32025/tms32025.c +++ b/src/emu/cpu/tms32025/tms32025.c @@ -123,10 +123,6 @@ Table 3-2. TMS32025/26 Memory Blocks #define CLK 4 /* 1 cycle equals 4 clock ticks */ /* PE/DI */ -#ifndef INLINE -#define INLINE static inline -#endif - #define SET_PC(x) do { cpustate->PC = (x); } while (0) diff --git a/src/emu/cpu/tms34010/34010ops.h b/src/emu/cpu/tms34010/34010ops.h index 290f0bbd109..b52f3f62793 100644 --- a/src/emu/cpu/tms34010/34010ops.h +++ b/src/emu/cpu/tms34010/34010ops.h @@ -14,10 +14,6 @@ #include "cpuintrf.h" -#ifndef INLINE -#define INLINE static inline -#endif - /* Size of the memory buffer allocated for the shiftr register */ #define SHIFTREG_SIZE (8 * 512 * sizeof(UINT16)) diff --git a/src/emu/sound/fm.h b/src/emu/sound/fm.h index 327308df89d..fda70b29f3e 100644 --- a/src/emu/sound/fm.h +++ b/src/emu/sound/fm.h @@ -85,11 +85,6 @@ typedef signed int INT32; /* signed 32bit */ #endif /* OSD_CPU_H */ #endif -#ifndef INLINE -#define INLINE static __inline__ -#endif - - typedef stream_sample_t FMSAMPLE; diff --git a/src/emu/sound/ym2151.c b/src/emu/sound/ym2151.c index 61a3e015709..7732b60d184 100644 --- a/src/emu/sound/ym2151.c +++ b/src/emu/sound/ym2151.c @@ -16,7 +16,6 @@ /*#define FM_EMU*/ #ifdef FM_EMU - #define INLINE static __inline__ #ifdef USE_MAME_TIMERS #undef USE_MAME_TIMERS #endif |