Jspice3
cktsetap.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 #include "spice.h"
9 #include <stdio.h>
10 #include "cktdefs.h"
11 #include "tskdefs.h"
12 #include "jobdefs.h"
13 #include "iferrmsg.h"
14 #include "util.h"
15 #include "cktext.h"
16 
17 
18 /* ARGSUSED */
19 int
20 CKTsetAnalPm(ckt,analPtr,parm,value,selector)
21 
22 GENERIC *ckt;
23 GENERIC *analPtr;
24 int parm;
25 IFvalue *value;
26 IFvalue *selector;
27 {
28  int type = ((JOB *)analPtr)->JOBtype;
29 
30  if ((analInfo[type]->setParm) == NULL)
31  return(E_BADPARM);
32  return ( (*(analInfo[type]->setParm))(ckt,analPtr,parm,value) );
33 }
#define E_BADPARM
Definition: iferrmsg.h:26
Definition: cktdefs.h:23
SPICEanalysis * analInfo[]
Definition: sconfig.c:57
int CKTsetAnalPm(GENERIC *ckt, GENERIC *analPtr, int parm, IFvalue *value, IFvalue *selector)
Definition: cktsetap.c:20
#define NULL
Definition: spdefs.h:121
Definition: types.c:18
char GENERIC
Definition: ifsim.h:27