cleanup: CREATE_TYPELIB_FOR() helper

This commit is contained in:
Sergei Golubchik 2024-08-30 11:04:14 +02:00
commit d046aca0c7
39 changed files with 317 additions and 486 deletions

View file

@ -66,8 +66,7 @@ const char *operation_name[]=
typedef enum { DO_VIEWS_NO, DO_VIEWS_YES, DO_UPGRADE, DO_VIEWS_FROM_MYSQL } enum_do_views;
const char *do_views_opts[]= {"NO", "YES", "UPGRADE", "UPGRADE_FROM_MYSQL",
NullS};
TYPELIB do_views_typelib= { array_elements(do_views_opts) - 1, "",
do_views_opts, NULL };
TYPELIB do_views_typelib= CREATE_TYPELIB_FOR(do_views_opts);
static ulong opt_do_views= DO_VIEWS_NO;
static struct my_option my_long_options[] =