[Pyrex] array cdefs

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Dec 3 22:53:01 CET 2007


moreilcon at gmail.com wrote:
> /* C code, works well */
> void
> foo(int size)
> {
>     int array[size];
> }

Strictly speaking this is a C++ thing and isn't
standard C:

% gcc -c -ansi -pedantic foo.c
foo.c: In function `foo':
foo.c:2: warning: ISO C90 forbids variable-size array `array'

Pyrex only generates standard C code, so it doesn't
support this.

--
Greg



More information about the Pyrex mailing list