opnsense-ports/science/gnudatalanguage/files/patch-src__basic_fun.cpp
Franco Fichtner bca9d43fda */*: sync with upstream
Taken from: FreeBSD
2015-04-24 06:54:23 +02:00

20 lines
921 B
C++

--- src/basic_fun.cpp.orig 2015-04-22 19:37:22 UTC
+++ src/basic_fun.cpp
@@ -6483,7 +6483,7 @@ BaseGDL* strtok_fun(EnvT* e) {
while (p < e)
{
// scheme = 1*[ lowalpha | digit | "+" | "-" | "." ]
- if (!(isalpha(*p)) && !(isdigit(*p)) && (*p != '+') && (*p != '.') && (*p != '-'))
+ if (!(std::isalpha(*p)) && !(std::isdigit(*p)) && (*p != '+') && (*p != '.') && (*p != '-'))
{
if (e + 1 < ue) goto parse_port;
else goto just_path;
@@ -6501,7 +6501,7 @@ BaseGDL* strtok_fun(EnvT* e) {
{
// check if the data we get is a port this allows us to correctly parse things like a.com:80
p = e + 1;
- while (isdigit(*p)) p++;
+ while (std::isdigit(*p)) p++;
if ((*p == '\0' || *p == '/') && (p - e) < 7) goto parse_port;
urlstru->InitTag("SCHEME", DStringGDL(string(s, (e - s))));
length -= ++e - s;