X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=309f65348c4cd72657d66c92bdf2975330501e51;hb=f2828ff92a75e9330327f86290772fa854cb8541;hp=19324d7fc88e362545742fc70e45ad901afe1ffb;hpb=e44956f15bba619f1c3ad8fa5927ae1862ef83c0;p=xboard.git diff --git a/args.h b/args.h index 19324d7..309f653 100644 --- a/args.h +++ b/args.h @@ -1120,13 +1120,13 @@ ParseArgs(GetFunc get, void *cl) if(posflag) { // positional argument: the argName was implied, and per default set as -lgf int len = strlen(argValue) - 4; // start of filename extension if(len < 0) len = 0; - if(!strcasecmp(argValue + len, ".trn")) { + if(!StrCaseCmp(argValue + len, ".trn")) { ad = &argDescriptors[2]; // correct implied type to -tf appData.tourney = TRUE; // let it parse -tourneyOptions later - } else if(!strcasecmp(argValue + len, ".fen") || !strcasecmp(argValue + len, ".epd")) { + } else if(!StrCaseCmp(argValue + len, ".fen") || !StrCaseCmp(argValue + len, ".epd")) { ad = &argDescriptors[1]; // correct implied type to -lpf appData.viewer = TRUE; - } else if(!strcasecmp(argValue + len, ".ini") || !strcasecmp(argValue + len, ".xop")) { + } else if(!StrCaseCmp(argValue + len, ".ini") || !StrCaseCmp(argValue + len, ".xop")) { ad = &argDescriptors[0]; // correct implied type to -opt } else if(GetEngineLine(argValue, 11)) { ad = &argDescriptors[3]; // correct implied type to -is