Use #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2006-03-09 11:58:05 -08:00
parent 7bd7f2804d
commit b4f2a6ac92
5 changed files with 5 additions and 7 deletions

2
git.c
View File

@ -323,8 +323,6 @@ static int cmd_log(int argc, const char **argv, char **envp)
return 0;
}
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
static void handle_internal_command(int argc, const char **argv, char **envp)
{
const char *cmd = argv[0];