List Info

Thread: Re: if before variable declaration




Re: if before variable declaration
country flaguser name
United States
2007-04-04 12:17:38
 -------------- Original message ----------------------
From: Andrew Smith <asmith15learn.senecac.on.ca>
> I just did a diff from 1.2.12 to 1.2.16 and while
reviewing it I noticed 
> in the new pngpread.c on line 1735:
> 
>     if(png_ptr == NULL) return;
> #ifdef PNG_USE_LOCAL_ARRAYS
>     const int FARDATA png_pass_dsp_mask[7] =
>        {0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff};
> #endif
> 
> I think you always put variable declarations at the
beginning of a 
> block. Or does that not apply to consts?

It is a mistake.  THanks.   Glenn

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )