Code cleaned.

This commit is contained in:
pnenzi 2003-12-31 16:10:41 +00:00
parent 828a50686c
commit bcfdf3885a
9 changed files with 20 additions and 37 deletions

View File

@ -1,3 +1,8 @@
/**********
Copyright 1992 Regents of the University of California. All rights
reserved.
**********/
#ifndef CPL
#define CPL

View File

@ -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;

View File

@ -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;

View File

@ -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 */

View File

@ -40,8 +40,8 @@ SPICEdev CPLinfo = {
},
DEVparam : CPLmParam,
DEVmodParam : NULL,
DEVparam : CPLparam,
DEVmodParam : CPLmParam,
DEVload : CPLload,
DEVsetup : CPLsetup,
DEVunsetup : NULL,

View File

@ -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;

View File

@ -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;

View File

@ -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);
}

View File

@ -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) {