<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 16 Feb 2013, at 15:18, Joost van der Sluis wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">When I try to parse & compile the ios-headers as supplied in cocoaint/utils, I get the following error:<br><br>NSEnumerator.inc(18,18) Fatal: Syntax error, ";" expected but "identifier __UNSAFE_UNRETAINEDPTR" found<br><br>The offending code is:<span class="Apple-converted-space"> </span><br>function countByEnumeratingWithState_objects_count(state: NSFastEnumerationStatePtr; buffer: id __unsafe_unretained; len: NSUInteger): NSUInteger;<br><br>Apparently the parser does not handle the __unsafe_unretained identifier properly. I used fpc-trunk and the ios 5.1 sdk.<span class="Apple-converted-space"> </span><br></span></blockquote></div><br><div>"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 <a href="http://objectivepascal.com/parser/index.html">http://objectivepascal.com/parser/index.html</a></div><div><br></div><div>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.</div><div><br></div><div><br></div><div>Jonas</div></body></html>