C-API: A beginner's problem

Nick Smallbone nick.smallbone at gmail.com
Sun Mar 19 11:04:56 EST 2006


Duncan Booth wrote:
> Heikki Salo wrote:
>
> >
> > And closer look tells that the code should not even compile. Is the
> > code cut & pasted directly? Line "list[i] = item;" tries to assign a
> > pointer to an int-array, which should not compile. There are other
> > similar oddities.
>
> ... such as the declaration of list at a point in the code which is not
> permitted in C, and using a non constant value for the length (which is
> also not allowed).

They are allowed in C99, according to GCC's manual.




More information about the Python-list mailing list