Jspice3
Main Page
Data Structures
Files
File List
Globals
scedstub.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: 1992 Stephen R. Whiteley
5
****************************************************************************/
6
7
/* satisfy references to the sced library when sced is not included */
8
9
#include <stdio.h>
10
#include "
spice.h
"
11
#include "
cpdefs.h
"
12
#define SHORT_SCEDIO
13
#include "
scedio.h
"
14
15
#define False 0
16
#define True 1
17
18
19
/* ARGSUSED */
20
int
21
SCEDline
(
string
)
22
23
/* Called from output.c
24
*/
25
char *
string
;
26
{
27
return
(
False
);
28
}
29
30
31
void
32
SCEDfflush
()
33
34
{
35
return
;
36
}
37
38
39
/* ARGSUSED */
40
char
*
41
SCEDfgets
(
s
,n,fp,
prompt
)
42
43
char *
s
;
44
int
n;
45
FILE *fp;
46
char
*
prompt
;
47
{
48
char
*
c
;
49
50
if
(prompt !=
NULL
) {
51
(void)fprintf(
cp_out
,prompt);
52
(void)fflush(
cp_out
);
53
}
54
c = fgets(s,n,fp);
55
if
(c ==
NULL
) {
56
clearerr
(fp);
57
}
58
return
(c);
59
}
60
61
62
enum
Active
63
SCEDactive
()
64
65
{
66
return
(
SCED_inactive
);
67
}
68
69
70
void
71
ShowPrompt
(str)
72
73
char *str;
74
{
75
fprintf(
cp_out
, str);
76
}
s
Definition:
cddefs.h:119
prompt
static void prompt()
Definition:
lexical.c:350
SCEDfflush
void SCEDfflush()
Definition:
scedstub.c:32
SCED_inactive
Definition:
scedio.h:12
cpdefs.h
NULL
#define NULL
Definition:
spdefs.h:121
cp_out
FILE * cp_out
Definition:
help.c:101
scedio.h
SCEDfgets
char * SCEDfgets(char *s, int n, FILE *fp, char *prompt)
Definition:
scedstub.c:41
c
static double c
Definition:
vectors.c:16
spice.h
Active
Active
Definition:
scedio.h:12
SCEDline
int SCEDline(char *string)
Definition:
scedstub.c:21
False
#define False
Definition:
scedstub.c:15
SCEDactive
enum Active SCEDactive()
Definition:
scedstub.c:63
clearerr
void clearerr(FILE *fp)
Definition:
libfuncs.c:116
ShowPrompt
void ShowPrompt(char *str)
Definition:
scedstub.c:71
src
bin
scedstub.c
Generated by
1.8.11