Load "disabled" for footprint libraries
This commit is contained in:
parent
f85ce87e44
commit
f48e868a79
|
@ -109,10 +109,11 @@ void FP_LIB_TABLE::Parse( LIB_TABLE_LEXER* in )
|
||||||
|
|
||||||
// After (name), remaining (lib) elements are order independent, and in
|
// After (name), remaining (lib) elements are order independent, and in
|
||||||
// some cases optional.
|
// some cases optional.
|
||||||
bool sawType = false;
|
bool sawType = false;
|
||||||
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