Convert remaining occurences of stri[n]cmp to str[n]casecmp.

This also reverses the substitution logic if strcasecmp is missing (config.h.cmake)
This commit is contained in:
Simon Richter
2016-08-16 10:27:09 +02:00
committed by Maciej Suminski
parent f1226afc89
commit bfb6e0bbb2
12 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -255,9 +255,9 @@ void PCB_CALCULATOR_DATAFILE_PARSER::ParseRegulatorDescr( PCB_CALCULATOR_DATAFIL
case T_reg_type: // type: normal or 3 terminal reg
token = NextTok();
if( stricmp( CurText(), regtype_str[0] ) == 0 )
if( strcasecmp( CurText(), regtype_str[0] ) == 0 )
type = 0;
else if( stricmp( CurText(), regtype_str[1] ) == 0 )
else if( strcasecmp( CurText(), regtype_str[1] ) == 0 )
type = 1;
else
Unexpected( CurText() );