ANN: Pyrex 0.3.4

Greg Ewing see_reply_address at something.invalid
Mon Jul 22 20:53:32 EDT 2002


Robin Becker wrote:

> Why do we need the prototype immediately before the actual
> specification?
> 
> in the non win32 output 
> 
> void initprimes(void); /*proto*/
> void initprimes(void){
>         .......
>         }
> 
> the first line seems completely redundant.


When I'm compiling C/C++ code with CodeWarrior on the Mac
(which is what I'm developing Pyrex on) I like to have the
"Require Function Prototypes" option turned on. The
apparently redundant line is necessary to keep the compiler
happy under those conditions.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list