Mercurial > sdl-ios-xcode
changeset 3212:759032c318d8
This is a cosmetic fix, I found a stupid typo
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Thu, 02 Jul 2009 21:47:02 +0000 |
parents | 8c7d86ae6509 |
children | 1f0f9172a1ff |
files | src/atomic/dummy/SDL_atomic.c src/atomic/linux/SDL_atomic.c src/atomic/macosx/SDL_atomic.c src/atomic/win32/SDL_atomic.c |
diffstat | 4 files changed, 144 insertions(+), 144 deletions(-) [+] |
line wrap: on
line diff
--- a/src/atomic/dummy/SDL_atomic.c Thu Jul 02 16:53:56 2009 +0000 +++ b/src/atomic/dummy/SDL_atomic.c Thu Jul 02 21:47:02 2009 +0000 @@ -170,7 +170,7 @@ #ifdef nativeExchange8 return nativeExchange8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -241,7 +241,7 @@ #ifdef nativeFetchThenIncrement8 return nativeFetchThenIncrement8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -258,7 +258,7 @@ #ifdef nativeFetchThenDecrement8 return nativeFetchThenDecrement8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -275,7 +275,7 @@ #ifdef nativeFetchThenAdd8 return nativeFetchThenAdd8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -292,7 +292,7 @@ #ifdef nativeFetchThenSubtract8 return nativeFetchThenSubtract8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -309,7 +309,7 @@ #ifdef nativeIncrementThenFetch8 return nativeIncrementThenFetch8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -326,7 +326,7 @@ #ifdef nativeDecrementThenFetch8 return nativeDecrementThenFetch8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -343,7 +343,7 @@ #ifdef nativeAddThenFetch8 return nativeAddThenFetch8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -360,7 +360,7 @@ #ifdef nativeSubtractThenFetch8 return nativeSubtractThenFetch8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -379,7 +379,7 @@ #ifdef nativeExchange16 return nativeExchange16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -450,7 +450,7 @@ #ifdef nativeFetchThenIncrement16 return nativeFetchThenIncrement16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -467,7 +467,7 @@ #ifdef nativeFetchThenDecrement16 return nativeFetchThenDecrement16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -484,7 +484,7 @@ #ifdef nativeFetchThenAdd16 return nativeFetchThenAdd16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -501,7 +501,7 @@ #ifdef nativeFetchThenSubtract16 return nativeFetchThenSubtract16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -518,7 +518,7 @@ #ifdef nativeIncrementThenFetch16 return nativeIncrementThenFetch16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -535,7 +535,7 @@ #ifdef nativeDecrementThenFetch16 return nativeDecrementThenFetch16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -552,7 +552,7 @@ #ifdef nativeAddThenFetch16 return nativeAddThenFetch16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -569,7 +569,7 @@ #ifdef nativeSubtractThenFetch16 return nativeSubtractThenFetch16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -588,7 +588,7 @@ #ifdef nativeExchange32 return nativeExchange32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -659,7 +659,7 @@ #ifdef nativeFetchThenIncrement32 return nativeFetchThenIncrement32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -676,7 +676,7 @@ #ifdef nativeFetchThenDecrement32 return nativeFetchThenDecrement32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -693,7 +693,7 @@ #ifdef nativeFetchThenAdd32 return nativeFetchThenAdd32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -710,7 +710,7 @@ #ifdef nativeFetchThenSubtract32 return nativeFetchThenSubtract32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -727,7 +727,7 @@ #ifdef nativeIncrementThenFetch32 return nativeIncrementThenFetch32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -744,7 +744,7 @@ #ifdef nativeDecrementThenFetch32 return nativeDecrementThenFetch32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -761,7 +761,7 @@ #ifdef nativeAddThenFetch32 return nativeAddThenFetch32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -778,7 +778,7 @@ #ifdef nativeSubtractThenFetch32 return nativeSubtractThenFetch32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -798,7 +798,7 @@ #ifdef nativeExchange64 return nativeExchange64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -869,7 +869,7 @@ #ifdef nativeFetchThenIncrement64 return nativeFetchThenIncrement64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -886,7 +886,7 @@ #ifdef nativeFetchThenDecrement64 return nativeFetchThenDecrement64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -903,7 +903,7 @@ #ifdef nativeFetchThenAdd64 return nativeFetchThenAdd64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -920,7 +920,7 @@ #ifdef nativeFetchThenSubtract64 return nativeFetchThenSubtract64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -937,7 +937,7 @@ #ifdef nativeIncrementThenFetch64 return nativeIncrementThenFetch64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -954,7 +954,7 @@ #ifdef nativeDecrementThenFetch64 return nativeDecrementThenFetch64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -971,7 +971,7 @@ #ifdef nativeAddThenFetch64 return nativeAddThenFetch64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -988,7 +988,7 @@ #ifdef nativeSubtractThenFetch64 return nativeSubtractThenFetch64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)-= value;
--- a/src/atomic/linux/SDL_atomic.c Thu Jul 02 16:53:56 2009 +0000 +++ b/src/atomic/linux/SDL_atomic.c Thu Jul 02 21:47:02 2009 +0000 @@ -142,7 +142,7 @@ #ifdef nativeExchange8 return nativeExchange8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -213,7 +213,7 @@ #ifdef nativeFetchThenIncrement8 return nativeFetchThenIncrement8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -230,7 +230,7 @@ #ifdef nativeFetchThenDecrement8 return nativeFetchThenDecrement8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -247,7 +247,7 @@ #ifdef nativeFetchThenAdd8 return nativeFetchThenAdd8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -264,7 +264,7 @@ #ifdef nativeFetchThenSubtract8 return nativeFetchThenSubtract8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -281,7 +281,7 @@ #ifdef nativeIncrementThenFetch8 return nativeIncrementThenFetch8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -298,7 +298,7 @@ #ifdef nativeDecrementThenFetch8 return nativeDecrementThenFetch8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -315,7 +315,7 @@ #ifdef nativeAddThenFetch8 return nativeAddThenFetch8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -332,7 +332,7 @@ #ifdef nativeSubtractThenFetch8 return nativeSubtractThenFetch8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -351,7 +351,7 @@ #ifdef nativeExchange16 return nativeExchange16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -422,7 +422,7 @@ #ifdef nativeFetchThenIncrement16 return nativeFetchThenIncrement16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -439,7 +439,7 @@ #ifdef nativeFetchThenDecrement16 return nativeFetchThenDecrement16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -456,7 +456,7 @@ #ifdef nativeFetchThenAdd16 return nativeFetchThenAdd16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -473,7 +473,7 @@ #ifdef nativeFetchThenSubtract16 return nativeFetchThenSubtract16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -490,7 +490,7 @@ #ifdef nativeIncrementThenFetch16 return nativeIncrementThenFetch16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -507,7 +507,7 @@ #ifdef nativeDecrementThenFetch16 return nativeDecrementThenFetch16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -524,7 +524,7 @@ #ifdef nativeAddThenFetch16 return nativeAddThenFetch16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -541,7 +541,7 @@ #ifdef nativeSubtractThenFetch16 return nativeSubtractThenFetch16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -560,7 +560,7 @@ #ifdef nativeExchange32 return nativeExchange32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -631,7 +631,7 @@ #ifdef nativeFetchThenIncrement32 return nativeFetchThenIncrement32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -648,7 +648,7 @@ #ifdef nativeFetchThenDecrement32 return nativeFetchThenDecrement32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -665,7 +665,7 @@ #ifdef nativeFetchThenAdd32 return nativeFetchThenAdd32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -682,7 +682,7 @@ #ifdef nativeFetchThenSubtract32 return nativeFetchThenSubtract32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -699,7 +699,7 @@ #ifdef nativeIncrementThenFetch32 return nativeIncrementThenFetch32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -716,7 +716,7 @@ #ifdef nativeDecrementThenFetch32 return nativeDecrementThenFetch32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -733,7 +733,7 @@ #ifdef nativeAddThenFetch32 return nativeAddThenFetch32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -750,7 +750,7 @@ #ifdef nativeSubtractThenFetch32 return nativeSubtractThenFetch32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -770,7 +770,7 @@ #ifdef nativeExchange64 return nativeExchange64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -841,7 +841,7 @@ #ifdef nativeFetchThenIncrement64 return nativeFetchThenIncrement64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -858,7 +858,7 @@ #ifdef nativeFetchThenDecrement64 return nativeFetchThenDecrement64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -875,7 +875,7 @@ #ifdef nativeFetchThenAdd64 return nativeFetchThenAdd64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -892,7 +892,7 @@ #ifdef nativeFetchThenSubtract64 return nativeFetchThenSubtract64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -909,7 +909,7 @@ #ifdef nativeIncrementThenFetch64 return nativeIncrementThenFetch64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -926,7 +926,7 @@ #ifdef nativeDecrementThenFetch64 return nativeDecrementThenFetch64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -943,7 +943,7 @@ #ifdef nativeAddThenFetch64 return nativeAddThenFetch64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -960,7 +960,7 @@ #ifdef nativeSubtractThenFetch64 return nativeSubtractThenFetch64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)-= value;
--- a/src/atomic/macosx/SDL_atomic.c Thu Jul 02 16:53:56 2009 +0000 +++ b/src/atomic/macosx/SDL_atomic.c Thu Jul 02 21:47:02 2009 +0000 @@ -170,7 +170,7 @@ #ifdef nativeExchange8 return nativeExchange8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -241,7 +241,7 @@ #ifdef nativeFetchThenIncrement8 return nativeFetchThenIncrement8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -258,7 +258,7 @@ #ifdef nativeFetchThenDecrement8 return nativeFetchThenDecrement8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -275,7 +275,7 @@ #ifdef nativeFetchThenAdd8 return nativeFetchThenAdd8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -292,7 +292,7 @@ #ifdef nativeFetchThenSubtract8 return nativeFetchThenSubtract8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -309,7 +309,7 @@ #ifdef nativeIncrementThenFetch8 return nativeIncrementThenFetch8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -326,7 +326,7 @@ #ifdef nativeDecrementThenFetch8 return nativeDecrementThenFetch8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -343,7 +343,7 @@ #ifdef nativeAddThenFetch8 return nativeAddThenFetch8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -360,7 +360,7 @@ #ifdef nativeSubtractThenFetch8 return nativeSubtractThenFetch8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -379,7 +379,7 @@ #ifdef nativeExchange16 return nativeExchange16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -450,7 +450,7 @@ #ifdef nativeFetchThenIncrement16 return nativeFetchThenIncrement16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -467,7 +467,7 @@ #ifdef nativeFetchThenDecrement16 return nativeFetchThenDecrement16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -484,7 +484,7 @@ #ifdef nativeFetchThenAdd16 return nativeFetchThenAdd16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -501,7 +501,7 @@ #ifdef nativeFetchThenSubtract16 return nativeFetchThenSubtract16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -518,7 +518,7 @@ #ifdef nativeIncrementThenFetch16 return nativeIncrementThenFetch16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -535,7 +535,7 @@ #ifdef nativeDecrementThenFetch16 return nativeDecrementThenFetch16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -552,7 +552,7 @@ #ifdef nativeAddThenFetch16 return nativeAddThenFetch16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -569,7 +569,7 @@ #ifdef nativeSubtractThenFetch16 return nativeSubtractThenFetch16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -588,7 +588,7 @@ #ifdef nativeExchange32 return nativeExchange32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -659,7 +659,7 @@ #ifdef nativeFetchThenIncrement32 return nativeFetchThenIncrement32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -676,7 +676,7 @@ #ifdef nativeFetchThenDecrement32 return nativeFetchThenDecrement32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -693,7 +693,7 @@ #ifdef nativeFetchThenAdd32 return nativeFetchThenAdd32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -710,7 +710,7 @@ #ifdef nativeFetchThenSubtract32 return nativeFetchThenSubtract32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -727,7 +727,7 @@ #ifdef nativeIncrementThenFetch32 return nativeIncrementThenFetch32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -744,7 +744,7 @@ #ifdef nativeDecrementThenFetch32 return nativeDecrementThenFetch32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -761,7 +761,7 @@ #ifdef nativeAddThenFetch32 return nativeAddThenFetch32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -778,7 +778,7 @@ #ifdef nativeSubtractThenFetch32 return nativeSubtractThenFetch32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -798,7 +798,7 @@ #ifdef nativeExchange64 return nativeExchange64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -869,7 +869,7 @@ #ifdef nativeFetchThenIncrement64 return nativeFetchThenIncrement64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -886,7 +886,7 @@ #ifdef nativeFetchThenDecrement64 return nativeFetchThenDecrement64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -903,7 +903,7 @@ #ifdef nativeFetchThenAdd64 return nativeFetchThenAdd64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -920,7 +920,7 @@ #ifdef nativeFetchThenSubtract64 return nativeFetchThenSubtract64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -937,7 +937,7 @@ #ifdef nativeIncrementThenFetch64 return nativeIncrementThenFetch64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -954,7 +954,7 @@ #ifdef nativeDecrementThenFetch64 return nativeDecrementThenFetch64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -971,7 +971,7 @@ #ifdef nativeAddThenFetch64 return nativeAddThenFetch64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -988,7 +988,7 @@ #ifdef nativeSubtractThenFetch64 return nativeSubtractThenFetch64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)-= value;
--- a/src/atomic/win32/SDL_atomic.c Thu Jul 02 16:53:56 2009 +0000 +++ b/src/atomic/win32/SDL_atomic.c Thu Jul 02 21:47:02 2009 +0000 @@ -170,7 +170,7 @@ #ifdef nativeExchange8 return nativeExchange8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -241,7 +241,7 @@ #ifdef nativeFetchThenIncrement8 return nativeFetchThenIncrement8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -258,7 +258,7 @@ #ifdef nativeFetchThenDecrement8 return nativeFetchThenDecrement8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -275,7 +275,7 @@ #ifdef nativeFetchThenAdd8 return nativeFetchThenAdd8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -292,7 +292,7 @@ #ifdef nativeFetchThenSubtract8 return nativeFetchThenSubtract8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -309,7 +309,7 @@ #ifdef nativeIncrementThenFetch8 return nativeIncrementThenFetch8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -326,7 +326,7 @@ #ifdef nativeDecrementThenFetch8 return nativeDecrementThenFetch8(ptr); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -343,7 +343,7 @@ #ifdef nativeAddThenFetch8 return nativeAddThenFetch8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -360,7 +360,7 @@ #ifdef nativeSubtractThenFetch8 return nativeSubtractThenFetch8(ptr, value); #else - Uint8 tmp = 0;; + Uint8 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -379,7 +379,7 @@ #ifdef nativeExchange16 return nativeExchange16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -450,7 +450,7 @@ #ifdef nativeFetchThenIncrement16 return nativeFetchThenIncrement16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -467,7 +467,7 @@ #ifdef nativeFetchThenDecrement16 return nativeFetchThenDecrement16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -484,7 +484,7 @@ #ifdef nativeFetchThenAdd16 return nativeFetchThenAdd16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -501,7 +501,7 @@ #ifdef nativeFetchThenSubtract16 return nativeFetchThenSubtract16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -518,7 +518,7 @@ #ifdef nativeIncrementThenFetch16 return nativeIncrementThenFetch16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -535,7 +535,7 @@ #ifdef nativeDecrementThenFetch16 return nativeDecrementThenFetch16(ptr); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -552,7 +552,7 @@ #ifdef nativeAddThenFetch16 return nativeAddThenFetch16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -569,7 +569,7 @@ #ifdef nativeSubtractThenFetch16 return nativeSubtractThenFetch16(ptr, value); #else - Uint16 tmp = 0;; + Uint16 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -588,7 +588,7 @@ #ifdef nativeExchange32 return nativeExchange32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -659,7 +659,7 @@ #ifdef nativeFetchThenIncrement32 return nativeFetchThenIncrement32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -676,7 +676,7 @@ #ifdef nativeFetchThenDecrement32 return nativeFetchThenDecrement32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -693,7 +693,7 @@ #ifdef nativeFetchThenAdd32 return nativeFetchThenAdd32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -710,7 +710,7 @@ #ifdef nativeFetchThenSubtract32 return nativeFetchThenSubtract32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -727,7 +727,7 @@ #ifdef nativeIncrementThenFetch32 return nativeIncrementThenFetch32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -744,7 +744,7 @@ #ifdef nativeDecrementThenFetch32 return nativeDecrementThenFetch32(ptr); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -761,7 +761,7 @@ #ifdef nativeAddThenFetch32 return nativeAddThenFetch32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -778,7 +778,7 @@ #ifdef nativeSubtractThenFetch32 return nativeSubtractThenFetch32(ptr, value); #else - Uint32 tmp = 0;; + Uint32 tmp = 0; privateWaitLock(); (*ptr)-= value; @@ -798,7 +798,7 @@ #ifdef nativeExchange64 return nativeExchange64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -869,7 +869,7 @@ #ifdef nativeFetchThenIncrement64 return nativeFetchThenIncrement64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -886,7 +886,7 @@ #ifdef nativeFetchThenDecrement64 return nativeFetchThenDecrement64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -903,7 +903,7 @@ #ifdef nativeFetchThenAdd64 return nativeFetchThenAdd64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -920,7 +920,7 @@ #ifdef nativeFetchThenSubtract64 return nativeFetchThenSubtract64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); tmp = *ptr; @@ -937,7 +937,7 @@ #ifdef nativeIncrementThenFetch64 return nativeIncrementThenFetch64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)+= 1; @@ -954,7 +954,7 @@ #ifdef nativeDecrementThenFetch64 return nativeDecrementThenFetch64(ptr); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)-= 1; @@ -971,7 +971,7 @@ #ifdef nativeAddThenFetch64 return nativeAddThenFetch64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)+= value; @@ -988,7 +988,7 @@ #ifdef nativeSubtractThenFetch64 return nativeSubtractThenFetch64(ptr, value); #else - Uint64 tmp = 0;; + Uint64 tmp = 0; privateWaitLock(); (*ptr)-= value;