Code cleaned.
This commit is contained in:
parent
828a50686c
commit
bcfdf3885a
|
|
@ -1,3 +1,8 @@
|
|||
/**********
|
||||
Copyright 1992 Regents of the University of California. All rights
|
||||
reserved.
|
||||
**********/
|
||||
|
||||
#ifndef CPL
|
||||
#define CPL
|
||||
|
||||
|
|
|
|||
|
|
@ -12,10 +12,7 @@ Author: 1992 Charles Hough
|
|||
|
||||
|
||||
int
|
||||
CPLdelete(inModel,name,inst)
|
||||
GENmodel *inModel;
|
||||
IFuid name;
|
||||
GENinstance **inst;
|
||||
CPLdelete(GENmodel *inModel, IFuid name, GENinstance **inst)
|
||||
{
|
||||
CPLmodel *model = (CPLmodel *)inModel;
|
||||
CPLinstance **fast = (CPLinstance **)inst;
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@ Author: 1992 Charles Hough
|
|||
#include "suffix.h"
|
||||
|
||||
void
|
||||
CPLdestroy(inModel)
|
||||
GENmodel **inModel;
|
||||
CPLdestroy(GENmodel **inModel)
|
||||
{
|
||||
CPLmodel **model = (CPLmodel **)inModel;
|
||||
CPLinstance *here;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
#ifdef __STDC__
|
||||
/**********
|
||||
Copyright 1992 Regents of the University of California. All rights
|
||||
reserved.
|
||||
**********/
|
||||
|
||||
/* extern int CPLaccept(CKTcircuit*,GENmodel*); */
|
||||
extern int CPLdelete(GENmodel*,IFuid,GENinstance**);
|
||||
extern void CPLdestroy(GENmodel**);
|
||||
|
|
@ -7,13 +11,3 @@ extern int CPLmDelete(GENmodel**,IFuid,GENmodel*);
|
|||
extern int CPLmParam(int,IFvalue*,GENmodel*);
|
||||
extern int CPLparam(int,IFvalue*,GENinstance*,IFvalue*);
|
||||
extern int CPLsetup(SMPmatrix*,GENmodel*,CKTcircuit*,int*);
|
||||
#else /* stdc */
|
||||
/* extern int CPLaccept(); */
|
||||
extern int CPLdelete();
|
||||
extern void CPLdestroy();
|
||||
extern int CPLload();
|
||||
extern int CPLmDelete();
|
||||
extern int CPLmParam();
|
||||
extern int CPLparam();
|
||||
extern int CPLsetup();
|
||||
#endif /* stdc */
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ SPICEdev CPLinfo = {
|
|||
},
|
||||
|
||||
|
||||
DEVparam : CPLmParam,
|
||||
DEVmodParam : NULL,
|
||||
DEVparam : CPLparam,
|
||||
DEVmodParam : CPLmParam,
|
||||
DEVload : CPLload,
|
||||
DEVsetup : CPLsetup,
|
||||
DEVunsetup : NULL,
|
||||
|
|
|
|||
|
|
@ -28,9 +28,7 @@ static void copy_cp();
|
|||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
CPLload(inModel,ckt)
|
||||
GENmodel *inModel;
|
||||
CKTcircuit *ckt;
|
||||
CPLload(GENmodel *inModel, CKTcircuit *ckt)
|
||||
{
|
||||
register CPLmodel *model = (CPLmodel *)inModel;
|
||||
register CPLinstance *here;
|
||||
|
|
|
|||
|
|
@ -12,10 +12,7 @@ Author: 1992 Charles Hough
|
|||
|
||||
|
||||
int
|
||||
CPLmDelete(inModel,modname,kill)
|
||||
GENmodel **inModel;
|
||||
IFuid modname;
|
||||
GENmodel *kill;
|
||||
CPLmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
CPLmodel **model = (CPLmodel **)inModel;
|
||||
CPLmodel *modfast = (CPLmodel *)kill;
|
||||
|
|
|
|||
|
|
@ -14,10 +14,7 @@ Author: 1992 Charles Hough
|
|||
|
||||
|
||||
int
|
||||
CPLmParam(param,value,inModel)
|
||||
int param;
|
||||
IFvalue *value;
|
||||
GENmodel *inModel;
|
||||
CPLmParam(int param, IFvalue *value, GENmodel *inModel)
|
||||
{
|
||||
register CPLmodel *model = (CPLmodel *)inModel;
|
||||
switch(param) {
|
||||
|
|
@ -41,8 +38,8 @@ CPLmParam(param,value,inModel)
|
|||
model->length = value->rValue;
|
||||
model->lengthgiven = TRUE;
|
||||
break;
|
||||
case CPL_MOD_R:
|
||||
break;
|
||||
case CPL_MOD_R:
|
||||
break;
|
||||
default:
|
||||
return(E_BADPARM);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,11 +15,7 @@ Author: 1992 Charles Hough
|
|||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
CPLparam(param,value,inst,select)
|
||||
int param;
|
||||
IFvalue *value;
|
||||
GENinstance *inst;
|
||||
IFvalue *select;
|
||||
CPLparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
|
||||
{
|
||||
CPLinstance *here = (CPLinstance *)inst;
|
||||
switch(param) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue