Re: [2/4] Sorting commits by date
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Apr 19, 2005, 02:52 UTC
- Message-ID
- <Pine.LNX.4.21.0504182236050.30848-100000@iabervon.org>
- In-Reply-To
- <42646EB3.8070701@dwheeler.com>
On Mon, 18 Apr 2005, David A. Wheeler wrote:
Show 13 quoted lines
> Petr Baudis wrote: > > [Re: Daniel Barkalow <barkalow@iabervon.org>'s patch] > > Note that you are breaking gcc-2.95 compatibility when using declarator > > in the middle of a block. Not that it might be a necessarily bad thing > > ;-) (although I still use gcc-2.95 a lot), just to ring a bell so that > > it doesn't slip through unnoticed and we can decide on a policy > > regarding this. > > I, at least, would REALLY like to see _highly_ portable C code; > I'm looking at git as a potential long-term useful SCM tool for > LOTS of projects, and if you're going to write C, it'd be nice > to just write it portably to start with. There's certainly > no crisis in using separate declarators.
Mixing declarations and code is the least of portability issues; it's in the current C standard unlike a number of other things. I've personally never found a system where -lz has deflateBound but gcc doesn't support C99, although they obviously exist. I have no problem with fixing things up for old GCC, although I'm going to have a hard time finding such things because I can't find a way to make recent GCC reject C99 features but not old GNU extensions.
-Daniel *This .sig left intentionally blank*