Home
last modified time | relevance | path

Searched refs:version_str (Results 1 – 7 of 7) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/gcc/config/
H A Ddarwin-driver.cc43 validate_macosx_version_min (const char *version_str) in validate_macosx_version_min() argument
48 const char *old_version = version_str; in validate_macosx_version_min()
51 version_len = strlen (version_str); in validate_macosx_version_min()
56 if (strspn (version_str, "0123456789.") != version_len) in validate_macosx_version_min()
59 if (!ISDIGIT (version_str[0]) || !ISDIGIT (version_str[version_len - 1])) in validate_macosx_version_min()
62 if (version_str[0] == '0') in validate_macosx_version_min()
65 major = strtoul (version_str, &end, 10); in validate_macosx_version_min()
72 version_str = end + ((*end == '.') ? 1 : 0); in validate_macosx_version_min()
74 if (major > 10 && *end != '\0' && !ISDIGIT (version_str[0])) in validate_macosx_version_min()
81 else if (major == 10 && (*end == '\0' || !ISDIGIT (version_str[0]))) in validate_macosx_version_min()
[all …]
H A Ddarwin-c.cc579 parse_version (const char *version_str) in parse_version() argument
585 version_len = strlen (version_str); in parse_version()
590 if (strspn (version_str, "0123456789.") != version_len) in parse_version()
593 if (!ISDIGIT (version_str[0]) || !ISDIGIT (version_str[version_len - 1])) in parse_version()
596 version_array[MAJOR] = strtoul (version_str, &end, 10); in parse_version()
597 version_str = end + ((*end == '.') ? 1 : 0); in parse_version()
600 if (*version_str == '.') in parse_version()
603 version_array[MINOR] = strtoul (version_str, &end, 10); in parse_version()
604 version_str = end + ((*end == '.') ? 1 : 0); in parse_version()
606 version_array[TINY] = strtoul (version_str, &end, 10); in parse_version()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/
H A Ddarwin-driver.c43 validate_macosx_version_min (const char *version_str) in validate_macosx_version_min() argument
48 const char *old_version = version_str; in validate_macosx_version_min()
51 version_len = strlen (version_str); in validate_macosx_version_min()
56 if (strspn (version_str, "0123456789.") != version_len) in validate_macosx_version_min()
59 if (!ISDIGIT (version_str[0]) || !ISDIGIT (version_str[version_len - 1])) in validate_macosx_version_min()
62 if (version_str[0] == '0') in validate_macosx_version_min()
65 major = strtoul (version_str, &end, 10); in validate_macosx_version_min()
72 version_str = end + ((*end == '.') ? 1 : 0); in validate_macosx_version_min()
74 if (major > 10 && *end != '\0' && !ISDIGIT (version_str[0])) in validate_macosx_version_min()
81 else if (major == 10 && (*end == '\0' || !ISDIGIT (version_str[0]))) in validate_macosx_version_min()
[all …]
H A Ddarwin-c.c579 parse_version (const char *version_str) in parse_version() argument
585 version_len = strlen (version_str); in parse_version()
590 if (strspn (version_str, "0123456789.") != version_len) in parse_version()
593 if (!ISDIGIT (version_str[0]) || !ISDIGIT (version_str[version_len - 1])) in parse_version()
596 version_array[MAJOR] = strtoul (version_str, &end, 10); in parse_version()
597 version_str = end + ((*end == '.') ? 1 : 0); in parse_version()
600 if (*version_str == '.') in parse_version()
603 version_array[MINOR] = strtoul (version_str, &end, 10); in parse_version()
604 version_str = end + ((*end == '.') ? 1 : 0); in parse_version()
606 version_array[TINY] = strtoul (version_str, &end, 10); in parse_version()
/netbsd-src/external/bsd/flex/dist/src/
H A Dtables.c86 int yytbl_hdr_init (struct yytbl_hdr *th, const char *version_str, in yytbl_hdr_init() argument
92 th->th_hsize = (flex_uint32_t) (14 + strlen (version_str) + 1 + strlen (name) + 1); in yytbl_hdr_init()
96 th->th_version = xstrdup(version_str); in yytbl_hdr_init()
H A Dtables.h69 int yytbl_hdr_init (struct yytbl_hdr *th, const char *version_str,
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/
H A Dgenerate_feature_test_macro_components.py864 version_str = template.format(
869 f.write(version_str)