| 78 | } |
| 79 | |
| 80 | void |
| 81 | parse_callbacks(int argc, const char *argv[], int &count) |
| 82 | { |
| 83 | int i = 0; |
| 84 | const char *ptr; |
| 85 | for (i = 0; i < argc; i++) { |
| 86 | if (argv[i][0] == '-') { |
| 87 | switch (argv[i][1]) { |
| 88 | case 'c': |
| 89 | ptr = index(argv[i], '='); |
| 90 | if (ptr) { |
| 91 | count = atoi(ptr + 1); |
| 92 | } |
| 93 | break; |
| 94 | case 'b': |
| 95 | ptr = index(argv[i], '='); |
| 96 | if (ptr) { |
| 97 | bad_names.insert(std::pair<std::string, int>(std::string(ptr + 1), 1)); |
| 98 | } |
| 99 | break; |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | void |
| 106 | setup_callbacks(int count) |
no test coverage detected