mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
Use ARRAY_SIZE where Coccinelle wasn't able to do it
This commit is contained in:
@@ -318,7 +318,7 @@ static const struct nv_cmd {
|
||||
};
|
||||
|
||||
/* Number of commands in nv_cmds[]. */
|
||||
#define NV_CMDS_SIZE (sizeof(nv_cmds) / sizeof(struct nv_cmd))
|
||||
#define NV_CMDS_SIZE ARRAY_SIZE(nv_cmds)
|
||||
|
||||
/* Sorted index of commands in nv_cmds[]. */
|
||||
static short nv_cmd_idx[NV_CMDS_SIZE];
|
||||
|
Reference in New Issue
Block a user