56 char buf[512],*
c,*
d,*fgets();
62 if (Lib !=
NULL)
return;
63 fp =
POpen(name,
"r",&nam);
64 if (fp ==
NULL)
return;
66 (void) fgets(buf,512,fp);
67 if (buf[0] !=
'S' || buf[1] !=
'C' || buf[2] !=
'E' || buf[3] !=
'D') {
74 while (fgets(buf,512,fp) !=
NULL) {
75 if (*buf ==
'9' && isspace(*(buf+1)) && !InSymbol) {
77 while (isspace(*c)) c++;
78 for (d = c+1; d; d++) {
79 if (isspace(*d) || *d ==
';') {
92 if (*buf ==
'E' && (isspace(*(buf+1)) || *(buf+1) ==
'\0'))
147 for (i = 0,w = Lib; w; w = w->
lib_next) {
215 char buf[512],*
c,*
d,*fgets();
220 if (Mod !=
NULL)
return;
221 fp =
POpen(name,
"r",&nam);
222 if (fp ==
NULL)
return;
223 (void) fgets(buf,512,fp);
224 if (buf[0] !=
'S' || buf[1] !=
'C' || buf[2] !=
'E' || buf[3] !=
'D') {
231 while (fgets(buf,512,fp) !=
NULL) {
234 while (isspace(*c)) c++;
235 for (d = c+1; d; d++) {
236 if (isspace(*d) || ispunct(*d)) {
264 while (isspace(*name)) name++;
286 struct line *
d,*d1,*d0;
326 if (fgets(buf,512,ip) ==
NULL)
return (
NULL);
327 if ((c = strchr(buf,
'\n')) !=
NULL) *c =
'\0';
329 while (fgets(buf,512,ip) !=
NULL) {
331 if ((c = strchr(buf,
'\n')) !=
NULL) *c =
'\0';
398 for (l = Lib; l; l =
Lib) {
406 for (l = Mod; l; l =
Mod) {
419 for (m = Models;
m; m =
Models) {
435 for (l = Lib; l; l =
Lib) {
453 for (l = Mod; l; l =
Mod) {
466 for (m = Models;
m; m =
Models) {
static struct lib * allocate_lib()
static char buf[MAXPROMPT]
void ModelLibraryOpen(char *name)
void QueueModel(char *name)
static struct ml * allocate_ml()
struct line * AllocateLine()
static struct wl * allocate_wl()
struct line * PrintModels()
static struct ml * Models
FILE * OpenDevice(char *name)
struct line * GetModelText(char *name)
void LibraryOpen(char *name)
int IsCellInLib(char *name)