Lines Matching refs:endptr

46 extern long strtol (const char *nptr, char **endptr, int base);
47 extern double strtod (const char *nptr, char **endptr);
607 char *endptr; in dlang_identifier() local
608 long i = strtol (mangled, &endptr, 10); in dlang_identifier()
610 if (endptr == NULL || i <= 0 || strlen (endptr) < (size_t) i) in dlang_identifier()
613 mangled = endptr; in dlang_identifier()
707 char *endptr; in dlang_parse_integer() local
708 long val = strtol (mangled, &endptr, 10); in dlang_parse_integer()
710 if (endptr == NULL || val < 0) in dlang_parse_integer()
759 mangled = endptr; in dlang_parse_integer()
764 char *endptr; in dlang_parse_integer() local
765 long val = strtol (mangled, &endptr, 10); in dlang_parse_integer()
767 if (endptr == NULL || val < 0) in dlang_parse_integer()
771 mangled = endptr; in dlang_parse_integer()
814 char *endptr; in dlang_parse_real() local
880 value = strtod (buffer, &endptr); in dlang_parse_real()
882 if (endptr == NULL || endptr != (buffer + len)) in dlang_parse_real()
912 char *endptr; in dlang_parse_string() local
916 len = strtol (mangled, &endptr, 10); in dlang_parse_string()
918 if (endptr == NULL || len < 0) in dlang_parse_string()
921 mangled = endptr; in dlang_parse_string()
954 char *endptr; in dlang_parse_arrayliteral() local
955 long elements = strtol (mangled, &endptr, 10); in dlang_parse_arrayliteral()
957 if (endptr == NULL || elements < 0) in dlang_parse_arrayliteral()
960 mangled = endptr; in dlang_parse_arrayliteral()
978 char *endptr; in dlang_parse_assocarray() local
979 long elements = strtol (mangled, &endptr, 10); in dlang_parse_assocarray()
981 if (endptr == NULL || elements < 0) in dlang_parse_assocarray()
984 mangled = endptr; in dlang_parse_assocarray()
1005 char *endptr; in dlang_parse_structlit() local
1006 long args = strtol (mangled, &endptr, 10); in dlang_parse_structlit()
1008 if (endptr == NULL || args < 0) in dlang_parse_structlit()
1011 mangled = endptr; in dlang_parse_structlit()
1185 char *endptr; in dlang_parse_tuple() local
1186 long elements = strtol (mangled, &endptr, 10); in dlang_parse_tuple()
1188 if (endptr == NULL || elements < 0) in dlang_parse_tuple()
1191 mangled = endptr; in dlang_parse_tuple()