forked from aniani/vim
patch 8.2.2922: computing array length is done in various ways
Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
This commit is contained in:
@@ -73,7 +73,7 @@ static const char *toolbar_names[] =
|
||||
/* 25 */ "Make", "TagJump", "RunCtags", "WinVSplit", "WinMaxWidth",
|
||||
/* 30 */ "WinMinWidth", "Exit"
|
||||
};
|
||||
# define TOOLBAR_NAME_COUNT (sizeof(toolbar_names) / sizeof(char *))
|
||||
# define TOOLBAR_NAME_COUNT ARRAY_LENGTH(toolbar_names)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user