Ian Collins wrote: > Roland Mainz wrote: > >Ian Collins wrote: > >>Consider something like > >> > >>char buffer[max_consumer_size+string_length]; > >> > >>Give the constant for 140 a descriptive and and save yourself a comment. > > > >Maybe a #define is better here since some compilers add an extra symbol > >which is IMO not worth the space in the resulting binary... > > > Unlikely unless you take the address of the constant. > > Even if it did, I'm sure an extra 4 or 8 bytes won't break the bank. > (Almost) anything's better than a #define!
I would disagree here. #define (if properly used) is sometimes the better option - at least it doesn't waste space and another name in the normal namespace (but I guess we can put this in the "style" category as we had such flamewars in news:comp.lang.c decades ago without a resolution). ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [EMAIL PROTECTED] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;) _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
