#include "spice.h"
#include "ftedefs.h"
#include "fteinp.h"
#include "spfteext.h"
#include "scedio.h"
Go to the source code of this file.
Definition at line 112 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
Definition at line 102 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
Definition at line 152 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
Definition at line 406 of file runcoms.c.
412 char *
xx1 =
"Delete all plots (no) ? ";
413 char *
xx2 =
"Delete current plot (yes) ? ";
414 char *
xx3 =
"Delete all circuits (no) ? ";
415 char *
xx4 =
"Delete current circuit (yes) ? ";
418 bool circuits =
false;
423 for (ww = wl; ww; ww = ww->
wl_next) {
441 if (!plots && !circuits) {
449 (void) fprintf(
cp_err,
"No plot to delete.\n");
454 if (yes || *s ==
'y' || *s ==
'Y')
461 if (yes || *s ==
'y' || *s ==
'Y' || *s ==
'\n')
469 (void) fprintf(
cp_err,
"No circuit to delete.\n");
476 if (yes || *s ==
'y' || *s ==
'Y')
483 if (yes || *s ==
'y' || *s ==
'Y' || *s ==
'\n')
char * SCEDfgets(char *s, int n, FILE *fp, char *prompt)
struct wordlist * wl_next
Definition at line 162 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
Definition at line 92 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
Definition at line 82 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
Definition at line 279 of file runcoms.c.
287 fprintf(
cp_err,
"Note: run starting\n");
297 fprintf(
cp_err,
"simulation interrupted\n");
302 fprintf(
cp_err,
"simulation aborted\n");
void com_run(wordlist *wl)
Definition at line 345 of file runcoms.c.
352 struct line *deck, *dd;
353 char *filename, *cblock;
356 fprintf(
cp_err,
"Error: there is no circuit loaded.\n");
struct line * ci_origdeck
bool inp_spdeck(struct line *deck, char *filename)
Definition at line 316 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
Definition at line 31 of file runcoms.c.
38 char *xx =
"Type the number of the desired circuit: ";
41 fprintf(
cp_err,
"Error: there aren't any circuits loaded.\n");
55 if ((sscanf(buf,
" %d ", &i) != 1) || (i < 0) || (i > j))
64 fprintf(
cp_err,
"Warning: no such circuit \"%s\"\n",
static char buf[MAXPROMPT]
struct circ * ft_circuits
char * SCEDfgets(char *s, int n, FILE *fp, char *prompt)
Definition at line 142 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
Definition at line 122 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
Definition at line 132 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
void ft_dorun |
( |
char * |
file | ) |
|
Definition at line 328 of file runcoms.c.
void ft_dosim(char *what, wordlist *wl)
void ft_dosim |
( |
char * |
what, |
|
|
wordlist * |
wl |
|
) |
| |
Definition at line 172 of file runcoms.c.
185 if (
eq(what,
"loop")) {
194 if (
eq(buf,
"binary"))
197 else if (
eq(buf,
"oct"))
200 else if (!
eq(buf,
"ascii"))
201 fprintf(
cp_err,
"Warning: strange file type %s\n", buf);
205 fprintf(
cp_err,
"Error: there aren't any circuits loaded.\n");
209 fprintf(
cp_err,
"Error: circuit not parsed.\n");
215 "Warning: losing old state for circuit '%s'\n", ct->
ci_name);
220 fprintf(
cp_err,
"Resuming run in progress.\n");
255 fprintf(
cp_err,
"%s: simulation interrupted\n", what);
260 fprintf(
cp_err,
"%s: simulation aborted\n", what);
static char buf[MAXPROMPT]
bool cp_getvar(char *n, int t, char *r)
void com_rset(wordlist *wl)
struct circ * ft_circuits
void com_resume(wordlist *wl)
static bool rawfileBinary
bool ft_getOutReq |
( |
FILE ** |
fpp, |
|
|
struct plot ** |
plotp, |
|
|
bool * |
binp, |
|
|
char * |
name, |
|
|
char * |
title |
|
) |
| |
Definition at line 385 of file runcoms.c.
static bool rawfileBinary