author | Florian Forster <octo@verplant.org> | |
Sun, 18 Jun 2006 15:18:03 +0000 (17:18 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 19 Jun 2006 04:19:09 +0000 (21:19 -0700) | ||
commit | cfd432e63d77478d913497a62827ed95c56dda73 | |
tree | b211821af83ec2653f23c6ea3d71fd8bd0e69397 | tree | snapshot |
parent | 64e86c57867593ba0ee77a7b0ff0eb8e9d4d8ed5 | commit | diff |
Remove ranges from switch statements.
Though very nice and readable, the "case 'a'...'z':" construct is not ANSI C99
compliant. This patch unfolds the range in `quote.c' and substitutes the
switch-statement with an if-statement in `http-fetch.c' and `http-push.c'.
Signed-off-by: Florian Forster <octo@verplant.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Though very nice and readable, the "case 'a'...'z':" construct is not ANSI C99
compliant. This patch unfolds the range in `quote.c' and substitutes the
switch-statement with an if-statement in `http-fetch.c' and `http-push.c'.
Signed-off-by: Florian Forster <octo@verplant.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c | diff | blob | history | |
http-push.c | diff | blob | history | |
quote.c | diff | blob | history |