<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>Le 12 juil. 06 à 05:04, Ryan Wilcox a écrit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">The script is posted below. Hopefully it will be useful to you Carbon programmers out there, or maybe the kind Unix hands will see some optimization I can use to make it faster.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> </BLOCKQUOTE></DIV><BR><DIV>fine, thanxs for your script !</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>by the way, i'm in order to add a C extension to Ruby (the skeleton of my C class has been tested and also i do have an ObjC working version).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>then i want to add a Carbon function to my c file :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> CFURLRef url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, (CFStringRef)alias_path, kCFURLPOSIXPathStyle, NO);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>and for that purpose added :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>#import <Foundation/Foundation.h></DIV><DIV>#import <CoreServices/CoreServices.h></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>in my headers file, then i got numerous of errors, if i add only :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>include "/Developer/Headers/FlatCarbon/CFURL.h" i get this error :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(231, 241, 255); "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px;">In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OSServices.h:45,</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(231, 241, 255); "><SPAN class="Apple-style-span" style="line-height: 16px;"><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px; line-height: normal;"> </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px; line-height: normal;">from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:25,</SPAN></FONT></SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(231, 241, 255); "><SPAN class="Apple-style-span" style="line-height: 16px;"><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px; line-height: normal;"> </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px; line-height: normal;">from /Developer/Headers/FlatCarbon/CFURL.h:1,</SPAN></FONT></SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(231, 241, 255); "><SPAN class="Apple-style-span" style="line-height: 16px;"><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px; line-height: normal;"> </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px; line-height: normal;">from RAliasFile.c:7:</SPAN></FONT></SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(231, 241, 255); "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px;">/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransport.h:723: error: parse error before numeric constant</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>i think their is one translation to di before using those headers ???</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Yvon</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>