* sea/src/util_MBK.c :

- Bug : lors de la recherche de VDD & VSS, on plantait si la liste des
       signaux etait completement vide.
This commit is contained in:
Jean-Paul Chaput 2003-09-16 10:14:38 +00:00
parent c568c425f0
commit 5e6616dd88
1 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,6 @@
/*
* $Id: util_MBK.c,v 1.2 2002/09/30 16:21:19 czo Exp $
* $Id: util_MBK.c,v 1.3 2003/09/16 10:14:38 jpc Exp $
*
* /----------------------------------------------------------------\
* | |
@ -1450,8 +1450,11 @@ extern void addfeed (apLofig, apPhfig)
/* Find VDD & VSS signals. */
for (sigVDD = apLofig->LOSIG;
!isvdd (getsigname (sigVDD)); sigVDD = sigVDD->NEXT);
sigVDD = apLofig->LOSIG;
while (sigVDD != NULL) {
if (isvdd (getsigname (sigVDD))) break;
sigVDD = sigVDD->NEXT;
}
if (!sigVDD) {
errMBK (NULL);
@ -1459,8 +1462,11 @@ extern void addfeed (apLofig, apPhfig)
EXIT (1);
}
for (sigVSS = apLofig->LOSIG;
!isvss (getsigname (sigVSS)); sigVSS = sigVSS->NEXT);
sigVSS = apLofig->LOSIG;
while (sigVSS != NULL) {
if (isvdd (getsigname (sigVSS))) break;
sigVSS = sigVSS->NEXT;
}
if (!sigVSS) {
errMBK (NULL);