#include "spice.h"
#include <stdio.h>
#include "util.h"
#include "cpdefs.h"
#include "inpdefs.h"
#include "tabdefs.h"
#include "iferrmsg.h"
Go to the source code of this file.
char* INPtablCheck |
( |
char * |
line, |
|
|
GENERIC * |
ckt |
|
) |
| |
Definition at line 146 of file inptabpa.c.
159 char *
t, *errbuf =
NULL;
176 for (tb = table; tb; tb = tb->
tab_next)
183 while (*
line != (
char)0) {
186 if (*
line == (
char)0)
189 if (error == 0)
continue;
192 if (strcmp(t,
"table") == 0) {
200 errbuf =
MALLOC(strlen(temp) + strlen(t) + 40);
201 (void) sprintf(errbuf,
202 "%s Unresolved table reference: %s\n",temp,t);
205 errbuf =
MALLOC(strlen(t) + 40);
206 (void) sprintf(errbuf,
207 " Unresolved table reference: %s\n",t);
228 for (tt = table; tt; tt = tt->
tab_next)
struct sCKTentry * tab_entry
static struct tab table[512]
int INPtablFind(char *str, GENERIC *ckt, GENERIC **table)
struct sCKTentry * ent_next
struct sCKTtable * tab_next
double INPtablEval |
( |
GENERIC * |
tab, |
|
|
double |
x |
|
) |
| |
Definition at line 406 of file inptabpa.c.
417 if (x <= e->ent_val) {
423 if (ee ==
NULL)
break;
424 if (x >= e->
ent_val && x < ee->ent_val) {
double INPtablEval(GENERIC *tab, double x)
struct sCKTentry * ent_next
double INPtablEvalDeriv |
( |
GENERIC * |
tab, |
|
|
double |
x |
|
) |
| |
Definition at line 441 of file inptabpa.c.
452 if (x <= e->ent_val) {
458 if (ee ==
NULL)
break;
459 if (x >= e->
ent_val && x < ee->ent_val) {
double INPtablEvalDeriv(GENERIC *tab, double x)
struct sCKTentry * ent_next
Definition at line 375 of file inptabpa.c.
387 if (!ckt)
return (1);
394 if (!strcmp(str,t->
tab_name))
break;
static struct tab table[512]
struct sCKTtable * tab_next
struct sCKTtable ** DEVtableHead()
Definition at line 244 of file inptabpa.c.
struct sCKTtable * tab_next
struct sCKTtable ** DEVtableHead()
Definition at line 475 of file inptabpa.c.
struct sCKTentry * tab_entry
struct sCKTentry * ent_next
struct sCKTtable * tab_next
struct sCKTtable ** DEVtableHead()
char* INPtablParse |
( |
char ** |
line, |
|
|
GENERIC * |
ckt |
|
) |
| |
Definition at line 36 of file inptabpa.c.
69 errbuf =
MALLOC(strlen(t) + 40);
70 (void) sprintf(errbuf,
" Table %d already defined - ignored\n",t);
79 while (**
line != (
char)0) {
100 errbuf =
MALLOC(strlen(t) + 40);
101 (void) sprintf(errbuf,
102 " Syntax error: expected value, got %s\n",t);
107 if (**
line == (
char)0) {
123 if (strcmp(t,
"table") == 0) {
133 errbuf =
MALLOC(strlen(t) + 40);
134 (void) sprintf(errbuf,
" Syntax error: unknown keyword %s\n",t);
struct sCKTentry * tab_entry
static struct tab table[512]
int INPtablFind(char *str, GENERIC *ckt, GENERIC **table)
struct sCKTentry * ent_next
Definition at line 357 of file inptabpa.c.
365 if (!table)
return (0);
366 if (!ckt)
return (1);
static struct tab table[512]
struct sCKTtable * tab_next
struct sCKTtable ** DEVtableHead()
static void tablfix |
( |
struct sCKTtable * |
table | ) |
|
|
static |
Definition at line 268 of file inptabpa.c.
281 if (table ==
NULL)
return;
struct sCKTentry * tab_entry
double INPtablEval(GENERIC *tab, double x)
struct sCKTentry * ent_next