#include "spice.h"
#include "sced.h"
#include <string.h>
Go to the source code of this file.
static struct lib* allocate_lib |
( |
| ) |
|
|
static |
static struct lib* allocate_lib |
( |
char * |
Name, |
|
|
long |
Offset, |
|
|
struct wl * |
Info |
|
) |
| |
|
static |
static struct ml* allocate_ml |
( |
| ) |
|
|
static |
static struct ml* allocate_ml |
( |
char * |
string, |
|
|
int |
level |
|
) |
| |
|
static |
static struct wl* allocate_wl |
( |
| ) |
|
|
static |
static struct wl* allocate_wl |
( |
char * |
string | ) |
|
|
static |
Definition at line 391 of file library.c.
398 for (l =
Lib; l; l =
Lib) {
406 for (l =
Mod; l; l =
Mod) {
static struct ml * Models
struct line* GetModelText |
( |
char * |
name | ) |
|
Definition at line 309 of file library.c.
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';
static char buf[MAXPROMPT]
struct line * AllocateLine()
static struct wl * allocate_wl()
int IsCellInLib |
( |
char * |
name | ) |
|
void LibraryOpen |
( |
char * |
name | ) |
|
Definition at line 50 of file library.c.
56 char buf[512],*
c,*
d,*fgets();
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'))
static struct lib * allocate_lib()
static char buf[MAXPROMPT]
void ModelLibraryClose |
( |
| ) |
|
Definition at line 446 of file library.c.
453 for (l =
Mod; l; l =
Mod) {
static struct ml * Models
void ModelLibraryOpen |
( |
char * |
name | ) |
|
Definition at line 209 of file library.c.
215 char buf[512],*
c,*
d,*fgets();
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)) {
static struct lib * allocate_lib()
static char buf[MAXPROMPT]
FILE* OpenDevice |
( |
char * |
name | ) |
|
struct line* PrintModels |
( |
| ) |
|
Definition at line 279 of file library.c.
286 struct line *
d,*d1,*d0;
static struct ml * Models
struct line * GetModelText(char *name)
void QueueModel |
( |
char * |
name | ) |
|
Definition at line 254 of file library.c.
264 while (isspace(*name)) name++;
static struct ml * allocate_ml()
static struct ml * Models
void SetLibraryChoices |
( |
| ) |
|