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

Re: [RFH] renaming strcmp/strncmp-icase

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 8, 2014, 19:56 UTC
Message-ID
<xmqqegvlnay6.fsf@gitster.dls.corp.google.com>
In-Reply-To
<540E03F6.3010100@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
> And then we have this in name-hash.c:
> (Which may explain the "icase" suffix ?)
>
> static int same_name(const struct cache_entry *ce, const char *name, int namelen, int icase)

As this file-scope static function takes the "icase" as an explicit argument, I do not see anything confusing about it. My complaint was it is confusing that str[n]cmp_icase is not always icase, even though the name of the function implies that it would be to those who haven't looked at its implementation for a while.

Previous: Torsten BögershausenNext: René Scharfe
Message 3 of 4 in “[RFH] renaming strcmp/strncmp-icase”
  1. Junio C HamanoSep 8, 2014
  2. Torsten BögershausenSep 8, 2014
  3. Junio C HamanoSep 8, 2014
  4. René ScharfeSep 8, 2014

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.