Corrected an error in which "extract unique noports" and
"extract unique notopports" both fail to work correctly because an attempt some time ago to avoid issuing warnings about shorted port names when using those options was changed in the wrong line.
This commit is contained in:
parent
6162a9f459
commit
a3b61abe2b
|
|
@ -569,7 +569,7 @@ BinArray *bpBinArrayBuild(Rect bbox,
|
|||
|
||||
/* Added by Tim, 2/19/2024 */
|
||||
/* This line is not supposed to be needed? */
|
||||
if ((!subbin) && ((int)elements & BT_ARRAY)) return NULL;
|
||||
if ((!subbin) && ((pointertype)elements & BT_ARRAY)) return NULL;
|
||||
|
||||
if(BPD) DumpRect("#### bpBinArrayBuild, TOP bbox= ", &bbox);
|
||||
|
||||
|
|
|
|||
|
|
@ -1816,8 +1816,8 @@ esMakePorts(hc, cdata)
|
|||
/* matches a use. If not, then check if the part */
|
||||
/* the last opening bracket matches a known use. */
|
||||
|
||||
aptr = strrchr(portname, '[');
|
||||
*tptr = '\0';
|
||||
aptr = strrchr(portname, '[');
|
||||
is_array = FALSE;
|
||||
if (aptr != NULL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -221,16 +221,20 @@ extMakeUnique(def, ll, lreg, lregList, labelHash, option)
|
|||
text = ll->ll_label->lab_text;
|
||||
if (option == EXT_UNIQ_ALL)
|
||||
goto makeUnique;
|
||||
else if ((option == EXT_UNIQ_NOPORTS || option == EXT_UNIQ_NOTOPPORTS) &&
|
||||
(ll->ll_label->lab_flags & PORT_DIR_MASK))
|
||||
else if ((option == EXT_UNIQ_NOPORTS || option == EXT_UNIQ_NOTOPPORTS)
|
||||
&& !(ll->ll_label->lab_flags & PORT_DIR_MASK))
|
||||
goto makeUnique;
|
||||
|
||||
cpend = strchr(text, '\0');
|
||||
if (cpend > text) cpend--;
|
||||
if (*cpend == '#') goto makeUnique;
|
||||
if (*cpend == '!') return 0;
|
||||
|
||||
/* Don't generate warnings about ports when given the "noports" or
|
||||
* "notopports" options.
|
||||
*/
|
||||
if (((option == EXT_UNIQ_NOPORTS) || (option == EXT_UNIQ_NOTOPPORTS))
|
||||
&& !(ll->ll_label->lab_flags & PORT_DIR_MASK))
|
||||
&& (ll->ll_label->lab_flags & PORT_DIR_MASK))
|
||||
return 0;
|
||||
|
||||
/* Generate a warning for each occurrence of this label */
|
||||
|
|
|
|||
Loading…
Reference in New Issue