OK, thanks, I&#39;ll give those a shot. If all else fails, I can write a Python script to find the right line numbers in the C code and insert the pragmas there. :)<br><br>Anand<br><br><div class="gmail_quote">On Dec 5, 2007 3:28 PM, Greg Ewing &lt;
<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Anand Patil wrote:<br>&gt; Sorry, I&#39;m trying to place &#39;pragmas&#39; rather than comments.<br><br></div>You might be able to do something with macros defined in<br>a header, and call them from Pyrex as though they were
<br>functions.<br><br>--<br><font color="#888888">Greg<br></font></blockquote></div><br><br>On Dec 5, 2007 2:29 PM, Lenard Lindstrom &lt;<a href="mailto:len-l@telus.net">len-l@telus.net</a>&gt; wrote:<br>Probably the only way to introduce pragmas is to place them in a C
<br>header file and include that with a cdef extern from:<br><br>cdef extern from &quot;pragmas.h&quot;:<br> &nbsp; &nbsp;pass<br><br>at the top of the module. This will put the #include &quot;pragmas.h&quot; near<br>the top of the generated C file. I assume that headers are added to the
<br>C file in the order they are encountered in the pyrex code to<br>accommodate C header dependencies. Put the pragma header in the same<br>directory as the pyx file.<br><br>