Re: [AD] C++ woops !

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]



On Sat, 2 Mar 2002, aj wrote:

>
> line 563:  or  /allegro/src/fli.c
> says..
>
>
> static void do_fli_brun(unsigned char *p, int sz)
> {
>   < ... snip...>
> 	 unsigned char *line_end = curr + fli_bitmap->w;
> <..snip...>
> }
>
>
> as far as i know your not supposed to declare vars mid function in pure 'C'

It is legal in C to have declaration before all other statements in the
block.

Have a nice day.

Stepan Roh



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/