OK, thanks, I'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 <
<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>> 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>> Sorry, I'm trying to place 'pragmas' 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 <<a href="mailto:len-l@telus.net">len-l@telus.net</a>> 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 "pragmas.h":<br> pass<br><br>at the top of the module. This will put the #include "pragmas.h" 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>