*** empty log message ***

This commit is contained in:
gdiso 2007-05-01 03:40:17 +00:00
parent 8234088f3e
commit 60d7ac039a
2 changed files with 7 additions and 2 deletions

View File

@ -23,7 +23,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
/* SJB added edit line support 2005-05-05 */
#include <editline/readline.h>
#endif /* HAVE_BSDEDITLINE */
extern IFsimulator SIMinfo;
static void byemesg(void);
void
@ -79,6 +79,11 @@ com_quit(wordlist *wl)
*buf = 'y';
}
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
byemesg();
}
else {

View File

@ -29,7 +29,7 @@ $Id$
#endif
#ifdef HAVE_TERMCAP
#include <termcap.h>
#include <ncurses/termcap.h>
#endif
#include <ngspice.h>