On Mon, 23 Jan 2006, Philip Martin wrote:
> "Peter N. Lundblad" <peter@famlundblad.se> writes:
>
> > On Mon, 23 Jan 2006, Philip Martin wrote:
> >> No need for a macro, simply add __attribute__(...) to the function
> >> prototype. It should work since we already do that for other
> >> attributes.
> >>
> > Yes, it should, but to me it looks a little clumsy. I'd prefer a macro
> > instead.
>
> I'm surprised, I can't see how a macro would be an improvement.
>
Somewhat shorter, no __attribute__ in lots of places. We will have these
on nearly every function. I guess this is mostly a matter of taste, but
like to hide compiler-specific stuff using macros.
There's also the argument that some other compiler might have this feature
with a different syntax, but I don't know of any, so that's nearly moot.
Thanks,
//Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 23 23:04:52 2006