git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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*
Previous: David A. WheelerNext: Petr Baudis
Message 8 of 12 in “More patches”
  1. Daniel BarkalowApr 19, 2005
  2. 1/4 Report info from treesDaniel Barkalow, Apr 19, 2005
  3. Junio C HamanoApr 19, 2005
  4. Daniel BarkalowApr 19, 2005
  5. 2/4 Sorting commits by dateDaniel Barkalow, Apr 19, 2005
  6. Petr BaudisApr 19, 2005
  7. David A. WheelerApr 19, 2005
  8. Daniel BarkalowApr 19, 2005
  9. Petr BaudisApr 19, 2005
  10. Daniel BarkalowApr 19, 2005
  11. 3/4 Add http-pullDaniel Barkalow, Apr 19, 2005
  12. 4/4 Make merge-base use dates to find answerDaniel Barkalow, Apr 19, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.