mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-30 01:48:43 +02:00
Corrected a problem in which extraction of MOS caps (or any device
with two or more terminals other than the device identifier type tied together) would fail if there were not a device record specifically matching a one-S/D-terminal device. This is inconsistent with past behavior, and so has been fixed.
This commit is contained in:
+7
-1
@@ -1726,9 +1726,15 @@ extOutputDevices(def, transList, outFile)
|
||||
tmask = &devptr->exts_deviceSDTypes[termcount];
|
||||
if (TTMaskIsZero(tmask)) {
|
||||
if (termcount < nsd) {
|
||||
ExtDevice *devcheck;
|
||||
/* See if there is another matching device record with */
|
||||
/* a different number of terminals, and try again. */
|
||||
devptr = extDevFindMatch(devptr, t);
|
||||
devcheck = extDevFindMatch(devptr, t);
|
||||
if (devcheck != NULL) devptr = devcheck;
|
||||
|
||||
/* Not finding another device record just means that */
|
||||
/* terminals are tied together on the same net, such as */
|
||||
/* with a MOS cap. Accept this fact and move on. */
|
||||
}
|
||||
break; /* End of SD terminals */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user