Jspice3
tabdefs.h
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 /* Structures used for keeping track of tables input by the user
8  * with .table lines.
9  */
10 
11 /* defines for struct sCKTentry e_type */
12 #define ENT_NUMBER 1
13 #define ENT_TABLE 2
14 #define ENT_OMITTED 4
15 
16 struct sCKTentry {
17 
18  /* table entry ordinate */
19  double ent_val;
20 
21  /* table value, if real entry */
22  double ent_real;
23 
24  /* pointer to next entry */
26 
27  /* generic pointer to function, table (or NULL) */
28  char *ent_string;
29 
30  /* entry type (ENT_???) */
31  int ent_type;
32 };
33 
34 struct sCKTtable {
35 
36  /* name of table */
37  char *tab_name;
38 
39  /* pointer to entry list head */
40  struct sCKTentry * tab_entry;
41 
42  /* pointer to next table, if any */
43  struct sCKTtable * tab_next;
44 };
45 
46 #ifdef __STDC__
47 extern struct sCKTtable **DEVtableHead(GENERIC*);
48 #else
49 extern struct sCKTtable **DEVtableHead();
50 #endif
char * ent_string
Definition: tabdefs.h:28
double ent_val
Definition: tabdefs.h:19
struct sCKTentry * tab_entry
Definition: tabdefs.h:40
double ent_real
Definition: tabdefs.h:22
int ent_type
Definition: tabdefs.h:31
struct sCKTentry * ent_next
Definition: tabdefs.h:25
struct sCKTtable * tab_next
Definition: tabdefs.h:43
char * tab_name
Definition: tabdefs.h:37
struct sCKTtable ** DEVtableHead()
char GENERIC
Definition: ifsim.h:27