2000-07-16 15:24:58 +02:00
|
|
|
#include <config.h>
|
|
|
|
|
#include <ngspice.h>
|
|
|
|
|
#include <bool.h>
|
|
|
|
|
#include <wordlist.h>
|
|
|
|
|
#include <inpdefs.h>
|
|
|
|
|
#include "circuits.h"
|
|
|
|
|
#include "com_dump.h"
|
2010-10-09 14:49:34 +02:00
|
|
|
#include "cpextern.h"
|
2001-02-09 14:27:21 +01:00
|
|
|
#include "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 20:11:32 +01:00
|
|
|
IGNORE(wl);
|
|
|
|
|
|
2000-07-16 15:24:58 +02:00
|
|
|
if (!ft_curckt || !ft_curckt->ci_ckt) {
|
|
|
|
|
fprintf(cp_err, "Error: no circuit loaded.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if_dump(ft_curckt->ci_ckt, cp_out);
|
|
|
|
|
return;
|
|
|
|
|
}
|