drc: extend drc-rules file format with length and skew tokens

This commit is contained in:
Tomasz Wlostowski 2020-09-23 23:43:33 +02:00
parent 5023d9a780
commit 201a630740
2 changed files with 5 additions and 3 deletions

View File

@ -10,6 +10,7 @@ graphic
hole hole
inner inner
layer layer
length
max max
micro_via micro_via
min min
@ -19,7 +20,6 @@ outer
pad pad
pth pth
rule rule
selector
text text
track track
track_width track_width
@ -31,6 +31,5 @@ hole_clearance
courtyard_clearance courtyard_clearance
silk_to_pad silk_to_pad
silk_to_silk silk_to_silk
match_lengths skew
match_skew
diff_pair diff_pair

View File

@ -282,7 +282,10 @@ void DRC_RULES_PARSER::parseConstraint( DRC_RULE* aRule )
case T_track_width: constraint.m_Type = DRC_CONSTRAINT_TYPE_TRACK_WIDTH; break; case T_track_width: constraint.m_Type = DRC_CONSTRAINT_TYPE_TRACK_WIDTH; break;
case T_annular_width: constraint.m_Type = DRC_CONSTRAINT_TYPE_ANNULAR_WIDTH; break; case T_annular_width: constraint.m_Type = DRC_CONSTRAINT_TYPE_ANNULAR_WIDTH; break;
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_skew: constraint.m_Type = DRC_CONSTRAINT_TYPE_SKEW; break;
default: default:
// fixme: message
msg.Printf( _( "Unrecognized item '%s'.| Expected %s." ), msg.Printf( _( "Unrecognized item '%s'.| Expected %s." ),
FromUTF8(), FromUTF8(),
"'clearance', 'track_width', 'annular_width', 'hole', 'disallow'." "'clearance', 'track_width', 'annular_width', 'hole', 'disallow'."