mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
cleanup: CREATE_TYPELIB_FOR() helper
This commit is contained in:
parent
9fa31c1bd9
commit
d046aca0c7
39 changed files with 317 additions and 486 deletions
|
|
@ -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[] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue