misccoms.c, tiny rewrite
This commit is contained in:
parent
8dcf132199
commit
5436de5bab
|
|
@ -82,17 +82,15 @@ com_quit(wordlist *wl)
|
||||||
*buf = 'y';
|
*buf = 'y';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((*buf == 'y') || (*buf == 'Y') || (*buf == '\n')) {
|
if (!((*buf == 'y') || (*buf == 'Y') || (*buf == '\n')))
|
||||||
#ifdef EXPERIMENTAL_CODE
|
|
||||||
/* Destroy CKT when quit. Add by Gong Ding, gdiso@ustc.edu */
|
|
||||||
for (cc = ft_circuits; cc; cc = cc->ci_next)
|
|
||||||
if(SIMinfo.deleteCircuit)
|
|
||||||
SIMinfo.deleteCircuit(cc->ci_ckt);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
#ifdef EXPERIMENTAL_CODE
|
||||||
|
/* Destroy CKT when quit. Add by Gong Ding, gdiso@ustc.edu */
|
||||||
|
for (cc = ft_circuits; cc; cc = cc->ci_next)
|
||||||
|
if(SIMinfo.deleteCircuit)
|
||||||
|
SIMinfo.deleteCircuit(cc->ci_ckt);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue