mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-20 17:18:21 +02:00

them * handle inline protocol definitions in parameter lists (replace id<protocol> with protocol, and class<protocol[,protocol,..]> with class), and made some fixes to this support for fields (many "id" fields/parameters are now protocols) * fix from Phil Hess for parsing some read-only properties * also translate ..._BUT_DEPRECATED macros (without any "_IN_VERSION..." coming after it) into "deprecated" modifiers * several fixes for handling deprecation macros (in several cases, half the macro was mangled into the name of the symbol itself) * default now to parsing the iOS 4.2 SDK headers, and fixed passing an alternate SDK on the command line to make-ios-headers.sh * updated Cocoa headers as parsed by the new parser, and with the headers from Mac OS X 10.6.5/Safari 5.0.2 (contains some WebKit updates) git-svn-id: trunk@16908 -
61 lines
1.4 KiB
Diff
61 lines
1.4 KiB
Diff
--- uikit-skel/src/foundationorg/NSObjCRuntime.inc 2011-02-09 22:22:02.000000000 +0100
|
|
+++ uikit-skel/src/foundation/NSObjCRuntime.inc 2011-02-09 22:22:52.000000000 +0100
|
|
@@ -8,7 +8,6 @@
|
|
|
|
{ Defines }
|
|
const
|
|
- NS_BLOCKS_AVAILABLE = 1;
|
|
NS_BLOCKS_AVAILABLE = 0;
|
|
NSFoundationVersionNumber10_0 = 397.40;
|
|
NSFoundationVersionNumber10_1 = 425.00;
|
|
@@ -71,14 +70,17 @@
|
|
|
|
{ Types }
|
|
type
|
|
+{$if defined(cpu64) or defined(win32)}
|
|
NSInteger = clong;
|
|
NSIntegerPtr = ^NSInteger;
|
|
NSUInteger = culong;
|
|
NSUIntegerPtr = ^NSUInteger;
|
|
+{$else}
|
|
NSInteger = cint;
|
|
NSIntegerPtr = ^NSInteger;
|
|
NSUInteger = cuint;
|
|
NSUIntegerPtr = ^NSUInteger;
|
|
+{$endif}
|
|
NSComparisonResult = NSInteger;
|
|
NSComparisonResultPtr = ^NSComparisonResult;
|
|
|
|
@@ -90,6 +92,10 @@
|
|
NSOrderedDescending = 1;
|
|
|
|
const
|
|
+ NSIntegerMax = high(NSInteger);
|
|
+ NSIntegerMin = low(NSInteger);
|
|
+ NSUIntegerMin = low(NSUinteger);
|
|
+ NSUIntegerMax = high(NSUinteger);
|
|
NSNotFound = NSIntegerMax;
|
|
|
|
{$endif}
|
|
--- /Data/dev/cocoa/parsedheaders/iphoneheaders/foundation/NSRange.inc 2010-10-04 00:21:29.000000000 +0200
|
|
+++ uikit-skel/src/foundation/NSRange.inc 2010-10-03 22:14:20.000000000 +0200
|
|
@@ -10,9 +10,4 @@
|
|
|
|
-{ Types }
|
|
-type
|
|
- NSRangePointer = ^NSRange;
|
|
- NSRangePointerPtr = ^NSRangePointer;
|
|
-
|
|
{$endif}
|
|
{$endif}
|
|
|
|
@@ -26,6 +21,8 @@
|
|
end;
|
|
NSRange = _NSRange;
|
|
_NSRangePtr = ^_NSRange;
|
|
+NSRangePtr = ^NSRange;
|
|
+NSRangePointer = NSRangePtr;
|
|
|
|
|
|
{$endif}
|