Re: [fpc-devel] Failed to compile ios-headers from fpc's trunk

2013-03-05 Thread Jonas Maebe

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


[fpc-devel] Failed to compile ios-headers from fpc's trunk

2013-02-16 Thread Joost van der Sluis
Hi all,

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. 

I know that there are other versions of the ios-headers available that do work, 
but what is the status of the version in fpc-trunk? Is it useable? And should 
it be used?

Joost.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel