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

View File

@ -9,6 +9,8 @@
#endif
#endif
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>