Jspice3
debugcom.c
Go to the documentation of this file.
1 /***************************************************************************
2 JSPICE3 adaptation of Spice3e2 - Copyright (c) Stephen R. Whiteley 1992
3 Copyright 1990 Regents of the University of California. All rights reserved.
4 Authors: 1985 Wayne A. Christopher
5  1992 Stephen R. Whiteley
6 ****************************************************************************/
7 
8 /*
9  * Circuit debugging commands.
10  */
11 
12 #include <stdio.h>
13 #include "spice.h"
14 #include "ftedefs.h"
15 #include "ftedebug.h"
16 #include "spfteext.h"
17 
18 /* ARGSUSED */
19 void
21 
22 wordlist *wl;
23 {
24  if (!ft_curckt) {
25  fprintf(cp_err, "Error: no circuit loaded.\n");
26  return;
27  }
28  out_printf("Current circuit: %s\n", ft_curckt->ci_name);
29  if (!ft_curckt->ci_inprogress) {
30  out_printf("No run in progress.\n");
31  return;
32  }
33  out_printf("Type of run: %s\n", plot_cur->pl_name);
34  out_printf("Number of points so far: %d\n",
36  out_printf("(That's all this command does so far)\n");
37  return;
38 }
39 
40 /* ARGSUSED */
41 void
43 
44 wordlist *wl;
45 {
46  FILE *fp;
47 
48  if (!ft_curckt || !ft_curckt->ci_ckt) {
49  fprintf(cp_err, "Error: no circuit loaded.\n");
50  return;
51  }
53  return;
54 }
void out_printf()
char * pl_name
Definition: ftedata.h:64
struct plot * plot_cur
Definition: vectors.c:43
bool ci_inprogress
Definition: ftedefs.h:34
char * ci_ckt
Definition: ftedefs.h:27
Definition: library.c:18
void NIprint()
void com_dump(wordlist *wl)
Definition: debugcom.c:42
void com_state(wordlist *wl)
Definition: debugcom.c:20
FILE * cp_err
Definition: help.c:101
struct dvec * pl_scale
Definition: ftedata.h:68
struct circ * ft_curckt
Definition: main.c:184
Definition: cpstd.h:21
char * ci_name
Definition: ftedefs.h:26
int v_length
Definition: ftedata.h:34