| 132 | } |
| 133 | |
| 134 | void |
| 135 | parse_callbacks(int argc, const char *argv[], int &count) |
| 136 | { |
| 137 | int i = 0; |
| 138 | const char *ptr; |
| 139 | for (i = 0; i < argc; i++) { |
| 140 | if (argv[i][0] == '-') { |
| 141 | switch (argv[i][1]) { |
| 142 | case 'c': |
| 143 | ptr = index(argv[i], '='); |
| 144 | if (ptr) { |
| 145 | count = atoi(ptr + 1); |
| 146 | } |
| 147 | break; |
| 148 | case 'g': |
| 149 | ptr = index(argv[i], '='); |
| 150 | if (ptr) { |
| 151 | good_names.insert(std::pair<std::string, int>(std::string(ptr + 1), 1)); |
| 152 | } |
| 153 | break; |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | void |
| 160 | setup_callbacks(int count) |
no test coverage detected