MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / compare_normal

Function compare_normal

src/StubExecutable/Semver200_comparator.cpp:39–47  ·  view source on GitHub ↗

Compare normal version identifiers.

Source from the content-addressed store, hash-verified

37
38 // Compare normal version identifiers.
39 int compare_normal(const Version_data& l, const Version_data& r) {
40 if (l.major > r.major) return 1;
41 if (l.major < r.major) return -1;
42 if (l.minor > r.minor) return 1;
43 if (l.minor < r.minor) return -1;
44 if (l.patch > r.patch) return 1;
45 if (l.patch < r.patch) return -1;
46 return 0;
47 }
48
49 // Compare alphanumeric prerelease identifiers.
50 inline int cmp_alnum_prerel_ids(const string& l, const string& r) {

Callers 1

compareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected