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: 1992 Stephen R. Whiteley
5 ****************************************************************************/
6 
7 /*
8  * Input/output passed through SCED.
9  */
10 
11 
12 enum Active {SCED_inactive=0, SCED_active, SCED_inhelp};
13 
14 #ifdef __STDC__
15 extern int  SCEDline(char*);
16 extern void SCEDfflush(void);
17 extern char *SCEDfgets(char*,int,FILE*,char*);
18 extern enum Active SCEDactive(void);
19 #else
20 extern int  SCEDline();
21 extern void SCEDfflush();
22 extern char *SCEDfgets();
23 extern enum Active SCEDactive();
24 #endif
25 
26 
27 #ifndef SHORT_SCEDIO
28 
29 /* structure for spice communication - entries are
30  * NULL in nutmeg
31  */
32 
33 struct sSCEDitf {
34 
35 #ifdef __STDC__
36     int  (*sc_inprogress)(void);
37     void (*sc_dosim)(char*,wordlist*);
38     void (*sc_source)(struct line*,bool,char*);
39     void (*sc_cktclear)(void);
40     void (*sc_resume)(wordlist*);
41     int  (*sc_isiplot)(void);
42     void (*sc_setiplot)(wordlist*);
43     void (*sc_clriplot)(wordlist*);
44 #else
45     int  (*sc_inprogress)();
46     void (*sc_dosim)();
47     void (*sc_source)();
48     void (*sc_cktclear)();
49     void (*sc_resume)();
50     int  (*sc_isiplot)();
51     void (*sc_setiplot)();
52     void (*sc_clriplot)();
53 #endif
54 
55 };
56 extern struct sSCEDitf *ft_sced;
57 
58 
59 #endif
60