On Sat, Sep 17, 2005 at 06:24:00PM +0200, Nicolas Baradakis wrote:
Paul TBBle Hampson wrote:
Are the attributes likely to vary between compilers we care about? (as opposed to simply present or absent)
If so, then the latter is neccessary... If not, the former is sufficient, and prolly cleaner.
Both versions work with non-gcc compiler. My question is mainly about the preferred coding style.
Both versions do _nothing_ with non-gcc compilers. I'm talking about the idea that a non-gcc compiler will implement the same thing either with different attribute names, or a different pre-function syntax altogether. If such a compiler exists, and we care about it, we should do the latter as it's easier to extend clearly to cover other compilers. -- ----------------------------------------------------------- Paul "TBBle" Hampson, MCSE 8th year CompSci/Asian Studies student, ANU The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361) Paul.Hampson@Pobox.Com Of course Pacman didn't influence us as kids. If it did, we'd be running around in darkened rooms, popping pills and listening to repetitive music. -- Kristian Wilson, Nintendo, Inc, 1989 License: http://creativecommons.org/licenses/by/2.1/au/ -----------------------------------------------------------