Load "disabled" for footprint libraries
This commit is contained in:
parent
f85ce87e44
commit
f48e868a79
|
@ -113,6 +113,7 @@ void FP_LIB_TABLE::Parse( LIB_TABLE_LEXER* in )
|
||||||
bool sawOpts = false;
|
bool sawOpts = false;
|
||||||
bool sawDesc = false;
|
bool sawDesc = false;
|
||||||
bool sawUri = false;
|
bool sawUri = false;
|
||||||
|
bool sawDisabled = false;
|
||||||
|
|
||||||
while( ( tok = in->NextTok() ) != T_RIGHT )
|
while( ( tok = in->NextTok() ) != T_RIGHT )
|
||||||
{
|
{
|
||||||
|
@ -158,6 +159,13 @@ void FP_LIB_TABLE::Parse( LIB_TABLE_LEXER* in )
|
||||||
row->SetDescr( in->FromUTF8() );
|
row->SetDescr( in->FromUTF8() );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case T_disabled:
|
||||||
|
if( sawDisabled )
|
||||||
|
in->Duplicate( tok );
|
||||||
|
sawDisabled = true;
|
||||||
|
row->SetEnabled( false );
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
in->Unexpected( tok );
|
in->Unexpected( tok );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue