diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-05-22 04:24:14 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-05-22 04:24:14 +0000 |
| commit | bc9abb12a5632d450f6f6ba831c48ac0c020386e (patch) | |
| tree | 0d10b29cfa563188f857799feb86847ce67235a5 | |
| parent | af7eea9751fea1ab5717ae575eb578135d9a45e1 (diff) | |
| download | pcsxr-bc9abb12a5632d450f6f6ba831c48ac0c020386e.tar.gz | |
OS X: Minor changes
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90493 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rwxr-xr-x | libpcsxcore/psxcommon.h | 4 | ||||
| -rw-r--r-- | macosx/Pcsxr-QL/MyQuickLook.h | 10 | ||||
| -rwxr-xr-x | macosx/PcsxrController.h | 2 | ||||
| -rwxr-xr-x | macosx/PcsxrMemoryObject.h | 4 | ||||
| -rwxr-xr-x | macosx/PcsxrMemoryObject.m | 4 | ||||
| -rw-r--r-- | macosx/pcsxr.pch | 2 | ||||
| -rwxr-xr-x | macosx/plugins/DFInput/macsrc/PadController.h | 6 | ||||
| -rwxr-xr-x | macosx/plugins/DFSound/macsrc/PluginController.m | 4 | ||||
| -rwxr-xr-x | macosx/plugins/DFXVideo/macsrc/PluginConfigController.m | 4 | ||||
| -rwxr-xr-x | macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m | 4 | ||||
| -rwxr-xr-x | plugins/bladesio1/sio1.h | 4 | ||||
| -rwxr-xr-x | plugins/dfcdrom/cdr.h | 4 | ||||
| -rwxr-xr-x | plugins/dfinput/pad.h | 4 | ||||
| -rwxr-xr-x | plugins/dfnet/dfnet.h | 4 | ||||
| -rwxr-xr-x | plugins/dfsound/spu.c | 4 | ||||
| -rwxr-xr-x | plugins/dfxvideo/gpu.c | 4 | ||||
| -rwxr-xr-x | plugins/peopsxgl/gpu.c | 4 |
17 files changed, 36 insertions, 36 deletions
diff --git a/libpcsxcore/psxcommon.h b/libpcsxcore/psxcommon.h index 1eaffc1d..7e7713e8 100755 --- a/libpcsxcore/psxcommon.h +++ b/libpcsxcore/psxcommon.h @@ -92,7 +92,7 @@ typedef uint8_t boolean; //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -105,7 +105,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/macosx/Pcsxr-QL/MyQuickLook.h b/macosx/Pcsxr-QL/MyQuickLook.h index 91146705..76709dac 100644 --- a/macosx/Pcsxr-QL/MyQuickLook.h +++ b/macosx/Pcsxr-QL/MyQuickLook.h @@ -16,14 +16,14 @@ // Apple deprecated __private_extern__ in Xcode 4.6. // This is a convenience declaration to retain the old behavior. -#define __private_extern__ __attribute__((visibility("hidden"))) +#define __private_extern __attribute__((visibility("hidden"))) // The thumbnail generation function to be implemented in GenerateThumbnailForURL.c -__private_extern__ OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize); -__private_extern__ void CancelThumbnailGeneration(void* thisInterface, QLThumbnailRequestRef thumbnail); +__private_extern OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize); +__private_extern void CancelThumbnailGeneration(void* thisInterface, QLThumbnailRequestRef thumbnail); // The preview generation function to be implemented in GeneratePreviewForURL.c -__private_extern__ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options); -__private_extern__ void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview); +__private_extern OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options); +__private_extern void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview); #endif diff --git a/macosx/PcsxrController.h b/macosx/PcsxrController.h index f7fde0a9..b271ae55 100755 --- a/macosx/PcsxrController.h +++ b/macosx/PcsxrController.h @@ -8,7 +8,7 @@ @class ConfigurationController; @class CheatController; -__private_extern__ void ShowHelpAndExit(FILE* output, int exitCode); +__private_extern void ShowHelpAndExit(FILE* output, int exitCode); extern BOOL wasFinderLaunch; @interface PcsxrController : NSObject <NSApplicationDelegate> diff --git a/macosx/PcsxrMemoryObject.h b/macosx/PcsxrMemoryObject.h index 94b5bd30..5a7a3b37 100755 --- a/macosx/PcsxrMemoryObject.h +++ b/macosx/PcsxrMemoryObject.h @@ -11,13 +11,13 @@ extern NSString *const memoryAnimateTimerKey; -typedef enum _PCSXRMemFlags { +typedef NS_ENUM(char, PCSXRMemFlags) { memFlagDeleted, memFlagFree, memFlagUsed, memFlagLink, memFlagEndLink -} PCSXRMemFlags; +}; @interface PcsxrMemoryObject : NSObject diff --git a/macosx/PcsxrMemoryObject.m b/macosx/PcsxrMemoryObject.m index 55753914..a26f1829 100755 --- a/macosx/PcsxrMemoryObject.m +++ b/macosx/PcsxrMemoryObject.m @@ -30,7 +30,7 @@ NSString *const memoryAnimateTimerKey = @"PCSXR Memory Card Image Animate"; { NSMutableArray *imagesArray = [[NSMutableArray alloc] initWithCapacity:block->IconCount]; for (int i = 0; i < block->IconCount; i++) { - NSImage *memImage = nil; + NSImage *memImage; { NSBitmapImageRep *imageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:16 pixelsHigh:16 bitsPerSample:8 samplesPerPixel:3 hasAlpha:NO isPlanar:NO colorSpaceName:NSCalibratedRGBColorSpace bytesPerRow:0 bitsPerPixel:0]; @@ -201,7 +201,7 @@ static NSString *MemLabelEndLink; @synthesize blockSize; @synthesize startingIndex; -#pragma mark Non-synthesize Properties +#pragma mark Non-synthesized Properties - (unsigned)memIconCount { return (unsigned)[memImages count]; diff --git a/macosx/pcsxr.pch b/macosx/pcsxr.pch index 14e239c2..88532683 100644 --- a/macosx/pcsxr.pch +++ b/macosx/pcsxr.pch @@ -11,7 +11,7 @@ // Apple deprecated __private_extern__ in Xcode 4.6. // This is a convenience declaration to retain the old behavior. -#define __private_extern__ __attribute__((visibility("hidden"))) +#define __private_extern __attribute__((visibility("hidden"))) #include <sys/time.h> #include <unistd.h> diff --git a/macosx/plugins/DFInput/macsrc/PadController.h b/macosx/plugins/DFInput/macsrc/PadController.h index 2f3a348c..bc99f82a 100755 --- a/macosx/plugins/DFInput/macsrc/PadController.h +++ b/macosx/plugins/DFInput/macsrc/PadController.h @@ -35,6 +35,6 @@ - (IBAction)ok:(id)sender; @end -__private_extern__ NSDictionary *DefaultPadArray(int padnum); -__private_extern__ void LoadPadArray(int padnum, NSDictionary *nsPrefs); -__private_extern__ NSDictionary *SavePadArray(int padnum); +__private_extern NSDictionary *DefaultPadArray(int padnum); +__private_extern void LoadPadArray(int padnum, NSDictionary *nsPrefs); +__private_extern NSDictionary *SavePadArray(int padnum); diff --git a/macosx/plugins/DFSound/macsrc/PluginController.m b/macosx/plugins/DFSound/macsrc/PluginController.m index c06914c6..05104d48 100755 --- a/macosx/plugins/DFSound/macsrc/PluginController.m +++ b/macosx/plugins/DFSound/macsrc/PluginController.m @@ -11,7 +11,7 @@ //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -24,7 +24,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m index d546dca0..7b79adfd 100755 --- a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m @@ -14,7 +14,7 @@ //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -27,7 +27,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m index 9f8daad1..c882c00b 100755 --- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m +++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m @@ -21,7 +21,7 @@ //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -34,7 +34,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/bladesio1/sio1.h b/plugins/bladesio1/sio1.h index 80f2a6cb..1d328a42 100755 --- a/plugins/bladesio1/sio1.h +++ b/plugins/bladesio1/sio1.h @@ -32,7 +32,7 @@ extern "C" { #endif #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -45,7 +45,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/dfcdrom/cdr.h b/plugins/dfcdrom/cdr.h index 1f3bfd02..293d04e2 100755 --- a/plugins/dfcdrom/cdr.h +++ b/plugins/dfcdrom/cdr.h @@ -36,7 +36,7 @@ extern "C" { #endif #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -49,7 +49,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/dfinput/pad.h b/plugins/dfinput/pad.h index eb9217fa..fb5ca718 100755 --- a/plugins/dfinput/pad.h +++ b/plugins/dfinput/pad.h @@ -62,7 +62,7 @@ typedef void *Display; //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -75,7 +75,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/dfnet/dfnet.h b/plugins/dfnet/dfnet.h index 73be55a0..b824a790 100755 --- a/plugins/dfnet/dfnet.h +++ b/plugins/dfnet/dfnet.h @@ -28,7 +28,7 @@ extern "C" { #endif #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -41,7 +41,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index 222bd22e..7eecce14 100755 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -39,7 +39,7 @@ //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -52,7 +52,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/dfxvideo/gpu.c b/plugins/dfxvideo/gpu.c index 846722e0..8e23be85 100755 --- a/plugins/dfxvideo/gpu.c +++ b/plugins/dfxvideo/gpu.c @@ -42,7 +42,7 @@ //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -55,7 +55,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c index 1cd50ac9..d5af3330 100755 --- a/plugins/peopsxgl/gpu.c +++ b/plugins/peopsxgl/gpu.c @@ -59,7 +59,7 @@ static int iOldMode=0; #define N_(x) (x) #elif defined(_MACOSX) #ifdef PCSXRCORE -__private_extern__ char* Pcsxr_locale_text(char* toloc); +__private_extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -72,7 +72,7 @@ __private_extern__ char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -__private_extern__ char* PLUGLOC(char* toloc); +__private_extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif |
