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

Re: [PATCH 1/1] git-compat-util.h: drop the `PRIuMAX` definition

From
Jeff King <peff@peff.net>
Date
Nov 25, 2019, 09:34 UTC
Message-ID
<20191125093400.GA25851@sigill.intra.peff.net>
In-Reply-To
<xmqqv9r8y8qe.fsf@gitster-ct.c.googlers.com>
On Mon, Nov 25, 2019 at 11:45:29AM +0900, Junio C Hamano wrote:
Show 10 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> 
> >> Can we likewise ditch the fallback definition for SCNuMAX? And PRIu32,
> >> etc? It seems likely any platform would either have all of them or none.
> >
> > I guess that's also a C99-ism that we can use?
> >
> > Thanks, both.
> 
> Here is what I have locally for now.

Yes, that looks good to me (and yes, those other format macros are in C99, too).

-Peff
Previous: Junio C Hamano
Message 8 of 8 in “git-compat-util.h: drop the PRIuMAX definition”
  1. 0/1 git-compat-util.h: drop the PRIuMAX definitionHariom Verma via GitGitGadget, Nov 24, 2019
  2. 1/1 git-compat-util.h: drop the `PRIuMAX` definitionHariom Verma via GitGitGadget, Nov 24, 2019
  3. Jeff KingNov 24, 2019
  4. Carlo ArenasNov 24, 2019
  5. Carlo ArenasNov 24, 2019
  6. Junio C HamanoNov 25, 2019
  7. Junio C HamanoNov 25, 2019
  8. Jeff KingNov 25, 2019

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.