summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-05-22 04:24:14 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-05-22 04:24:14 +0000
commitbc9abb12a5632d450f6f6ba831c48ac0c020386e (patch)
tree0d10b29cfa563188f857799feb86847ce67235a5 /macosx
parentaf7eea9751fea1ab5717ae575eb578135d9a45e1 (diff)
downloadpcsxr-bc9abb12a5632d450f6f6ba831c48ac0c020386e.tar.gz
OS X: Minor changes
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90493 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Pcsxr-QL/MyQuickLook.h10
-rwxr-xr-xmacosx/PcsxrController.h2
-rwxr-xr-xmacosx/PcsxrMemoryObject.h4
-rwxr-xr-xmacosx/PcsxrMemoryObject.m4
-rw-r--r--macosx/pcsxr.pch2
-rwxr-xr-xmacosx/plugins/DFInput/macsrc/PadController.h6
-rwxr-xr-xmacosx/plugins/DFSound/macsrc/PluginController.m4
-rwxr-xr-xmacosx/plugins/DFXVideo/macsrc/PluginConfigController.m4
-rwxr-xr-xmacosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m4
9 files changed, 20 insertions, 20 deletions
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