From d749ca025e35ce11aeb17bcd704ffa5b89d64f42 Mon Sep 17 00:00:00 2001 From: jonas Date: Wed, 9 Feb 2011 21:07:29 +0000 Subject: * moved to correct location so it's used by the conversion script git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16903 3ad0048d-3df7-0310-abae-a5850022a9f2 --- .../utils/cocoa-skel/patches/NSBundle.patch | 24 ---------------------- .../utils/cocoa-skel/patches/NSObjCRuntime.patch | 4 ---- .../utils/cocoa-skel/src/patches/NSBundle.patch | 24 ++++++++++++++++++++++ .../cocoa-skel/src/patches/NSObjCRuntime.patch | 4 ++++ 4 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 packages/cocoaint/utils/cocoa-skel/patches/NSBundle.patch delete mode 100644 packages/cocoaint/utils/cocoa-skel/patches/NSObjCRuntime.patch create mode 100644 packages/cocoaint/utils/cocoa-skel/src/patches/NSBundle.patch create mode 100644 packages/cocoaint/utils/cocoa-skel/src/patches/NSObjCRuntime.patch (limited to 'packages/cocoaint') diff --git a/packages/cocoaint/utils/cocoa-skel/patches/NSBundle.patch b/packages/cocoaint/utils/cocoa-skel/patches/NSBundle.patch deleted file mode 100644 index 5bb8fb94a4..0000000000 --- a/packages/cocoaint/utils/cocoa-skel/patches/NSBundle.patch +++ /dev/null @@ -1,24 +0,0 @@ -{$ifdef INTERFACE} -function NSLocalizedString(key : NSString): NSString; -function NSLocalizedStringFromTable(key : NSString; table : NSString) : NSString; -function NSLocalizedStringFromTableInBundle(key : NSString; table : NSString; bundle : NSBundle) : NSString; -{$endif} - -{$ifdef IMPLEMENTATION} - -function NSLocalizedString(key : NSString): NSString; -begin - Result := NSBundle.mainBundle.localizedStringForKey_value_table(key, NSSTR(''), nil); -end; - -function NSLocalizedStringFromTable(key : NSString; table : NSString) : NSString; -begin -Result := NSBundle.mainBundle.localizedStringForKey_value_table(key, NSSTR(''), table) -end; - -function NSLocalizedStringFromTableInBundle(key : NSString; table : NSString; bundle : NSBundle) : NSString; -begin -Result := bundle.localizedStringForKey_value_table(key, NSSTR(''), table) -end; - -{$endif} \ No newline at end of file diff --git a/packages/cocoaint/utils/cocoa-skel/patches/NSObjCRuntime.patch b/packages/cocoaint/utils/cocoa-skel/patches/NSObjCRuntime.patch deleted file mode 100644 index 6d38408125..0000000000 --- a/packages/cocoaint/utils/cocoa-skel/patches/NSObjCRuntime.patch +++ /dev/null @@ -1,4 +0,0 @@ -{$ifdef INTERFACE} -procedure NSLog(fmt:NSString); cdecl; varargs; external; -{$endif} - diff --git a/packages/cocoaint/utils/cocoa-skel/src/patches/NSBundle.patch b/packages/cocoaint/utils/cocoa-skel/src/patches/NSBundle.patch new file mode 100644 index 0000000000..5bb8fb94a4 --- /dev/null +++ b/packages/cocoaint/utils/cocoa-skel/src/patches/NSBundle.patch @@ -0,0 +1,24 @@ +{$ifdef INTERFACE} +function NSLocalizedString(key : NSString): NSString; +function NSLocalizedStringFromTable(key : NSString; table : NSString) : NSString; +function NSLocalizedStringFromTableInBundle(key : NSString; table : NSString; bundle : NSBundle) : NSString; +{$endif} + +{$ifdef IMPLEMENTATION} + +function NSLocalizedString(key : NSString): NSString; +begin + Result := NSBundle.mainBundle.localizedStringForKey_value_table(key, NSSTR(''), nil); +end; + +function NSLocalizedStringFromTable(key : NSString; table : NSString) : NSString; +begin +Result := NSBundle.mainBundle.localizedStringForKey_value_table(key, NSSTR(''), table) +end; + +function NSLocalizedStringFromTableInBundle(key : NSString; table : NSString; bundle : NSBundle) : NSString; +begin +Result := bundle.localizedStringForKey_value_table(key, NSSTR(''), table) +end; + +{$endif} \ No newline at end of file diff --git a/packages/cocoaint/utils/cocoa-skel/src/patches/NSObjCRuntime.patch b/packages/cocoaint/utils/cocoa-skel/src/patches/NSObjCRuntime.patch new file mode 100644 index 0000000000..6d38408125 --- /dev/null +++ b/packages/cocoaint/utils/cocoa-skel/src/patches/NSObjCRuntime.patch @@ -0,0 +1,4 @@ +{$ifdef INTERFACE} +procedure NSLog(fmt:NSString); cdecl; varargs; external; +{$endif} + -- cgit v1.2.1