| 47 | } |
| 48 | |
| 49 | static int compare_semver(std::string a, std::string b) { |
| 50 | a = strip_v_prefix(a); |
| 51 | b = strip_v_prefix(b); |
| 52 | auto A = split_semver(a), B = split_semver(b); |
| 53 | for (int i = 0; i < 3; ++i) { |
| 54 | if (A[i] != B[i]) return (A[i] > B[i]) ? 1 : -1; |
| 55 | } |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | static bool g_vercheck_warned_timeout = false; |
| 60 |
no test coverage detected