| 100 | } |
| 101 | |
| 102 | static bool cv_decimal(const char *text, int *value, const char **end) { |
| 103 | if (*text < '0' || *text > '9') { |
| 104 | return false; |
| 105 | } |
| 106 | int number = 0; |
| 107 | while (*text >= '0' && *text <= '9') { |
| 108 | int digit = *text++ - '0'; |
| 109 | if (number > (INT_MAX - digit) / 10) { |
| 110 | return false; |
| 111 | } |
| 112 | number = number * 10 + digit; |
| 113 | } |
| 114 | *value = number; |
| 115 | *end = text; |
| 116 | return true; |
| 117 | } |
| 118 | |
| 119 | static int cv_function_compare(const void *left, const void *right) { |
| 120 | const cbm_coverage_function_t *a = *(const cbm_coverage_function_t *const *)left; |
no outgoing calls
no test coverage detected