2011-12-11 19:05:00 +01:00
|
|
|
#include "ngspice/ngspice.h"
|
|
|
|
|
#include "ngspice/bool.h"
|
|
|
|
|
#include "ngspice/wordlist.h"
|
|
|
|
|
#include "ngspice/inpdefs.h"
|
2000-07-16 15:24:58 +02:00
|
|
|
#include "circuits.h"
|
|
|
|
|
#include "com_dump.h"
|
2011-12-11 19:05:00 +01:00
|
|
|
#include "ngspice/cpextern.h"
|
|
|
|
|
#include "ngspice/fteext.h"
|
2010-10-16 17:50:32 +02:00
|
|
|
#include "spiceif.h"
|
2000-07-16 15:24:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
com_dump(wordlist *wl)
|
|
|
|
|
{
|
2010-11-16 21:38:24 +01:00
|
|
|
NG_IGNORE(wl);
|
2010-11-16 20:11:32 +01:00
|
|
|
|
2000-07-16 15:24:58 +02:00
|
|
|
if (!ft_curckt || !ft_curckt->ci_ckt) {
|
|
|
|
|
fprintf(cp_err, "Error: no circuit loaded.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
2012-09-22 19:32:30 +02:00
|
|
|
|
2000-07-16 15:24:58 +02:00
|
|
|
if_dump(ft_curckt->ci_ckt, cp_out);
|
|
|
|
|
}
|