drc: add support for via_count constraint to the parser

This commit is contained in:
Tomasz Wlostowski 2020-09-25 20:27:34 +02:00
parent 7b7c3bde88
commit f38147c201
2 changed files with 4 additions and 1 deletions

View File

@ -32,4 +32,6 @@ courtyard_clearance
silk_to_pad silk_to_pad
silk_to_silk silk_to_silk
skew skew
diff_pair diff_pair_gap
diff_pair_uncoupled
via_count

View File

@ -284,6 +284,7 @@ void DRC_RULES_PARSER::parseConstraint( DRC_RULE* aRule )
case T_disallow: constraint.m_Type = DRC_CONSTRAINT_TYPE_DISALLOW; break; case T_disallow: constraint.m_Type = DRC_CONSTRAINT_TYPE_DISALLOW; break;
case T_length: constraint.m_Type = DRC_CONSTRAINT_TYPE_LENGTH; break; case T_length: constraint.m_Type = DRC_CONSTRAINT_TYPE_LENGTH; break;
case T_skew: constraint.m_Type = DRC_CONSTRAINT_TYPE_SKEW; break; case T_skew: constraint.m_Type = DRC_CONSTRAINT_TYPE_SKEW; break;
case T_via_count: constraint.m_Type = DRC_CONSTRAINT_TYPE_VIA_COUNT; break;
default: default:
// fixme: message // fixme: message
msg.Printf( _( "Unrecognized item '%s'.| Expected %s." ), msg.Printf( _( "Unrecognized item '%s'.| Expected %s." ),