X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=309f65348c4cd72657d66c92bdf2975330501e51;hb=9d51fbcf5ae0885f2e4855cc8805f3684dd8e0d9;hp=19324d7fc88e362545742fc70e45ad901afe1ffb;hpb=7295e7b8f71c001f64930229b3d99cf8b2245a9e;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