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

Re: [PATCH 1/7] Remove ranges from switch statements.

From
THTimo Hirvonen <tihirvon@gmail.com>
Date
Jun 18, 2006, 21:24 UTC
Message-ID
<20060619002445.3af68c2b.tihirvon@gmail.com>
In-Reply-To
<7vveqyyxyj.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 7 quoted lines
> Sorry for bringing up an old topic again, but wouldn't people
> agree that this is easier to read if it were written this way ;-)?
>  
> 	if (	   (('A' <= ch) && (ch <= 'Z'))
>         	|| (('a' <= ch) && (ch <= 'z'))
> 		|| (('0' <= ch) && (ch <= '9'))
> 	...
Yes, but isalnum(ch) even better ;)
-- 
http://onion.dynserv.net/~timo/
Previous: Junio C Hamano
Message 4 of 4 in “Remove ranges from switch statements.”
  1. 1/7 Remove ranges from switch statements.Florian Forster, Jun 18, 2006
  2. 2/7 Initialize FAMs using `FLEX_ARRAY'.Florian Forster, Jun 18, 2006
  3. Junio C HamanoJun 18, 2006
  4. Timo HirvonenJun 18, 2006

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.