MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / process_options

Function process_options

strings/uca-dump.c:630–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628
629
630static void
631process_options(int ac, char **av, MY_UCA *uca)
632{
633 size_t i;
634 for (i= 1; i < ac ; i++)
635 {
636 /*printf("[%d]=%s\n", i, av[i]);*/
637 if (!get_int_option(av[i], "--levels=", &nlevels) &&
638 !get_int_option(av[i], "--contractions=", &contractions) &&
639 !get_int_option(av[i], "--debug=", &uca->debug) &&
640 !get_int_option(av[i], "--optimize-contractions=", &uca->optimize_contractions))
641 {
642 fprintf(stderr, "\nUnknown option: %s\n\n", av[i]);
643 usage(stderr, 1);
644 }
645 }
646}
647
648
649int

Callers 1

mainFunction · 0.70

Calls 2

get_int_optionFunction · 0.70
usageFunction · 0.70

Tested by

no test coverage detected