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",
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);
287 fprintf(
cp_err,
"Note: run starting\n");
297 fprintf(
cp_err,
"simulation interrupted\n");
302 fprintf(
cp_err,
"simulation aborted\n");
352 struct line *deck, *dd;
353 char *filename, *cblock;
356 fprintf(
cp_err,
"Error: there is no circuit loaded.\n");
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')
void com_disto(wordlist *wl)
static char buf[MAXPROMPT]
bool cp_getvar(char *n, int t, char *r)
void ft_dosim(char *what, wordlist *wl)
struct line * ci_origdeck
void com_tf(wordlist *wl)
bool inp_spdeck(struct line *deck, char *filename)
void com_sens(wordlist *wl)
void com_rset(wordlist *wl)
void com_tran(wordlist *wl)
void com_pz(wordlist *wl)
struct circ * ft_circuits
void com_noise(wordlist *wl)
bool ft_getOutReq(FILE **fpp, struct plot **plotp, bool *binp, char *name, char *title)
char * SCEDfgets(char *s, int n, FILE *fp, char *prompt)
void com_scirc(wordlist *wl)
void com_dc(wordlist *wl)
void com_free(wordlist *wl)
struct wordlist * wl_next
void ft_dorun(char *file)
void com_run(wordlist *wl)
void com_resume(wordlist *wl)
void com_op(wordlist *wl)
static bool rawfileBinary
void com_ac(wordlist *wl)