1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 06:50:27 +00:00

in mymake, changed tests to use isalnum

This commit is contained in:
Zeno Rogue 2020-05-19 17:44:38 +02:00
parent 0813fb65ca
commit 64fb9ed24a

View File

@ -94,7 +94,7 @@ int main(int argc, char **argv) {
obj_dir += "/";
setdir += "../";
for(char c: s)
if(c == '=' || c == '-' || c == '/' || c == '"' || c == '\\') obj_dir += "_";
if(!isalnum(c)) obj_dir += "_";
else obj_dir += c;
}
else if(s == "-win") {
@ -117,7 +117,7 @@ int main(int argc, char **argv) {
obj_dir += "/";
setdir += "../";
for(char c: s)
if(c == '=' || c == '-' || c == '/') obj_dir += "_";
if(!isalnum(c)) obj_dir += "_";
else obj_dir += c;
linker += " " + s;
}