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:
committed by
Maciej Suminski
parent
f1226afc89
commit
bfb6e0bbb2
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user