Use ARRAY_SIZE where Coccinelle wasn't able to do it

This commit is contained in:
Felipe Oliveira Carvalho
2014-12-13 11:11:49 -03:00
parent 3c857900fe
commit 8aeb2e37ee
6 changed files with 16 additions and 18 deletions

View File

@@ -1808,7 +1808,7 @@ static struct vimoption
}
};
#define PARAM_COUNT (sizeof(options) / sizeof(struct vimoption))
#define PARAM_COUNT ARRAY_SIZE(options)
static char *(p_ambw_values[]) = {"single", "double", NULL};
static char *(p_bg_values[]) = {"light", "dark", NULL};