List Info

Thread: if before variable declaration




if before variable declaration
country flaguser name
Canada
2007-04-04 10:24:51
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?

Cheers
Andrew

------------------------------------------------------------
-------------
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 )