[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: More error leaks

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2006-01-23 23:04:13 CET

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.