From: George N. <ne...@ee...> - 2006-05-02 06:04:36
|
Indeed, CIL supports #pragmas only at global scope. Sorry! George. > -----Original Message----- > From: cil...@li...=20 > [mailto:cil...@li...] On Behalf Of=20 > Christoph Spiel > Sent: Tuesday, March 28, 2006 10:57 PM > To: cil...@li... > Subject: RE: [CIL users] how can I use #pragma in a function? >=20 > Xiapeilong, >=20 > I did not try out Your example yesterday. Sorry! Now I see=20 > the problem: cilly cannot parse pragmas inside a function=20 > only at "toplevel". >=20 > >void foo() > >{ > >#pragma TCS_atomic > > printf("hello\n"); > >} >=20 > This is a limitation of cilly's C-parser. Maybe it is=20 > possible to move Your pragmas outside the function w/o=20 > changing the semantics. Otherwise it looks like You must=20 > extend the parser itself. >=20 >=20 > /Chris > -- > Dr. Christoph L. Spiel > BMW Forschungs- und Innovationszentrum, EA-41 Lauchstaedter=20 > Strasse 5, 80995 Muenchen >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking=20 > scripting language that extends applications into web and=20 > mobile media. Attend the live webcast and join the prime=20 > developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > CIL-users mailing list > CIL...@li... > https://lists.sourceforge.net/lists/listinfo/cil-users >=20 |