Re: [Tuxnes-devel] *.h: extern int function() VS int function().
Brought to you by:
tmmm
From: Mike M. <che...@ya...> - 2004-08-24 19:47:02
|
For functions maby not, however this is what I got... /usr/bin/ld: Warning: size of symbol `emulators' changed from 44 in controller.o to 132 in emulator.o /usr/bin/ld: Warning: size of symbol `renderers' changed from 36 in controller.o to 252 in renderer.o /usr/bin/ld: Warning: size of symbol `sounders' changed from 28 in emu.o to 84 in sounder.o So things that are extern should stay(and be) extern. --- Jason Dorje Short <jd...@us...> wrote: > Mike Mestnik wrote: > > I saw in, for example, ziploader.h that the function def didn't use > the > > extern flag. The function was used in emu.c and defined in > ziploader.c. > > I was wondering if programs need to use extern at all, since there not > > exporting anything once linked? > > > > Is it worth removing this flag globaly for tuxnes? > > I find the extern keyword for function prototypes to be annoying. AFAIK > > it doesn't do anything. > > jason > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Tuxnes-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxnes-devel > _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush |