Jspice3
Main Page
Data Structures
Files
File List
Globals
cktfbran.c
Go to the documentation of this file.
1
/***************************************************************************
2
JSPICE3 adaptation of Spice3f2 - Copyright (c) Stephen R. Whiteley 1992
3
Copyright 1990 Regents of the University of California. All rights reserved.
4
Authors: 1985 Thomas L. Quarles
5
1993 Stephen R. Whiteley
6
****************************************************************************/
7
8
/* CKTfndBranch(ckt,name)
9
* this is a driver program to iterate through all the various
10
* findBranch functions provided for the circuit elements in the
11
* given circuit
12
*/
13
14
#include "
spice.h
"
15
#include <stdio.h>
16
#include "
devdefs.h
"
17
#include "
cktext.h
"
18
19
20
int
21
CKTfndBranch
(ckt,name)
22
23
CKTcircuit
*ckt;
24
IFuid
name;
25
{
26
extern
SPICEdev
*
DEVices
[];
27
28
int
j;
29
struct
sCKTmodHead
*mh;
30
int (*
func
)();
31
32
for
(mh = ckt->CKTheadList; mh !=
NULL
; mh = mh->
next
) {
33
if
((
func
= DEVices[mh->
type
]->
DEVfindBranch
) !=
NULL
) {
34
j = (*func)(ckt,mh->
head
,name);
35
if
(j != 0)
return
(j);
36
}
37
}
38
return
(0);
39
}
sCKTmodHead::next
struct sCKTmodHead * next
Definition:
cktdefs.h:58
CKTcircuit
Definition:
cktdefs.h:62
DEVices
SPICEdev * DEVices[]
Definition:
sconfig.c:109
CKTfndBranch
int CKTfndBranch(CKTcircuit *ckt, IFuid name)
Definition:
cktfbran.c:21
IFuid
GENERIC * IFuid
Definition:
ifsim.h:72
NULL
#define NULL
Definition:
spdefs.h:121
spice.h
func
Definition:
fteparse.h:37
cktext.h
SPICEdev
Definition:
devdefs.h:43
sCKTmodHead::type
int type
Definition:
cktdefs.h:56
SPICEdev::DEVfindBranch
int(* DEVfindBranch)()
Definition:
devdefs.h:97
sCKTmodHead::head
GENmodel * head
Definition:
cktdefs.h:57
sCKTmodHead
Definition:
cktdefs.h:55
devdefs.h
src
lib
ckt
cktfbran.c
Generated by
1.8.11