mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-17 02:20:37 +01: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 -
53 lines
1.3 KiB
Diff
53 lines
1.3 KiB
Diff
--- /Data/dev/cocoa/parsedheaders/iphoneheaders/foundation/NSObjCRuntime.inc 2010-10-04 00:21:29.000000000 +0200
|
|
+++ uikit-skel/src/foundation/NSObjCRuntime.inc 2010-10-03 22:12:15.000000000 +0200
|
|
@@ -60,14 +60,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;
|
|
|
|
@@ -79,6 +82,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}
|