#include "spice.h"
#include "ftedefs.h"
Go to the source code of this file.
|
#define | NUMTYPES 128 /* If this is too little we can use a list. */ |
|
#define | NUMPLOTTYPES 512 /* Since there may be more than 1 pat/type. */ |
|
#define NUMPLOTTYPES 512 /* Since there may be more than 1 pat/type. */ |
#define NUMTYPES 128 /* If this is too little we can use a list. */ |
Definition at line 96 of file types.c.
116 fprintf(
cp_err,
"Error: too many types defined\n");
139 fprintf(
cp_err,
"Error: too many plot abs\n");
150 fprintf(
cp_err,
"Error: missing 'p' or 'v' argument\n");
struct type types[NUMTYPES]
struct plotab plotabs[NUMPLOTTYPES]
struct wordlist * wl_next
Definition at line 228 of file types.c.
238 for (tt = 0; ; tt++) {
243 fprintf(
cp_err,
"Error: no such type as '%s'\n", type);
249 fprintf(
cp_err,
"Error: no such vector %s.\n",
char * ft_typenames(int typenum)
struct wordlist * wl_next
char* ft_plotabbrev |
( |
char * |
string | ) |
|
Definition at line 204 of file types.c.
213 for (i = 0;
string[i]; i++)
214 buf[i] = isupper(
string[i]) ? tolower(
string[i]) : string[i];
static char buf[MAXPROMPT]
struct plotab plotabs[NUMPLOTTYPES]
char* ft_typabbrev |
( |
int |
typenum | ) |
|
Definition at line 160 of file types.c.
163 if ((typenum <
NUMTYPES) && (typenum >= 0))
164 return (
types[typenum].t_abbrev);
struct type types[NUMTYPES]
char* ft_typenames |
( |
int |
typenum | ) |
|
Definition at line 173 of file types.c.
176 if ((typenum <
NUMTYPES) && (typenum >= 0))
177 return (
types[typenum].t_name);
struct type types[NUMTYPES]
int ft_typnum |
( |
char * |
name | ) |
|
Definition at line 186 of file types.c.
192 if (
eq(name,
"none"))
struct type types[NUMTYPES]
Initial value:= {
{ "tran", "transient" } ,
{ "op", "op" } ,
{ "tf", "function" },
{ "dc", "d.c." } ,
{ "dc", "dc" } ,
{ "dc", "transfer" } ,
{ "ac", "a.c." } ,
{ "ac", "ac" } ,
{ "pz", "pz" } ,
{ "pz", "p.z." } ,
{ "pz", "pole-zero"} ,
{ "disto", "disto" } ,
{ "dist", "dist" } ,
{ "noise", "noise" } ,
{ "sens", "sens" } ,
{ "sens", "sensitivity" } ,
{ "sp", "s.p." } ,
{ "sp", "sp" } ,
{ "harm", "harm" } ,
{ "spect", "spect" } ,
{ "range", "range" } ,
{ "test", "testrun" }
}
Definition at line 57 of file types.c.
Initial value:= {
{ "time", "S" } ,
{ "frequency", "Hz" } ,
{ "voltage", "V" } ,
{ "current", "A" } ,
{ "onoise-spectrum", "(V or A)^2/Hz" } ,
{ "onoise-integrated", "V or A" } ,
{ "inoise-spectrum", "(V or A)^2/Hz" } ,
{ "inoise-integrated", "V or A" } ,
{
"output-noise",
NULL } ,
{
"input-noise",
NULL } ,
}
Definition at line 31 of file types.c.