On 16 Feb 2013, at 15:18, Joost van der Sluis wrote:

> When I try to parse & compile the ios-headers as supplied in cocoaint/utils, 
> I get the following error:
> 
> NSEnumerator.inc(18,18) Fatal: Syntax error, ";" expected but "identifier 
> __UNSAFE_UNRETAINEDPTR" found
> 
> The offending code is: 
> function countByEnumeratingWithState_objects_count(state: 
> NSFastEnumerationStatePtr; buffer: id __unsafe_unretained; len: NSUInteger): 
> NSUInteger;
> 
> Apparently the parser does not handle the __unsafe_unretained identifier 
> properly. I used fpc-trunk and the ios 5.1 sdk. 

"As packages/cocoaint/utils/Make iPhone Headers.txt" mentions, that conversion 
script + patches only supports the iOS 3.2 SDK. For newer iOS SDK support, see 
http://objectivepascal.com/parser/index.html

At one point these may be integrated in FPC's svn. The person who creates the 
parser scripts even has svn access, but he doesn't use it often unfortunately.


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to