hisim2, convert K&R function definitions to ansi style
This commit is contained in:
parent
40cecd644e
commit
446a346caf
|
|
@ -1,3 +1,7 @@
|
|||
2011-05-22 Robert Larice
|
||||
* src/spicelib/devices/hisim2/* :
|
||||
hisim2, convert K&R function definitions to ansi style
|
||||
|
||||
2011-05-22 Robert Larice
|
||||
* src/spicelib/devices/hisim2/hsm2noi.c :
|
||||
hisim2, remove #include "fteconst.h"
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#include "hsm2def.h"
|
||||
|
||||
|
||||
int HSM2acLoad(inModel,ckt)
|
||||
GENmodel *inModel;
|
||||
register CKTcircuit *ckt;
|
||||
int HSM2acLoad(
|
||||
GENmodel *inModel,
|
||||
register CKTcircuit *ckt)
|
||||
{
|
||||
register HSM2model *model = (HSM2model*)inModel;
|
||||
register HSM2instance *here;
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@
|
|||
#include "sperror.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2ask(ckt,inst,which,value,select)
|
||||
CKTcircuit *ckt;
|
||||
GENinstance *inst;
|
||||
int which;
|
||||
IFvalue *value;
|
||||
IFvalue *select;
|
||||
int HSM2ask(
|
||||
CKTcircuit *ckt,
|
||||
GENinstance *inst,
|
||||
int which,
|
||||
IFvalue *value,
|
||||
IFvalue *select)
|
||||
{
|
||||
HSM2instance *here = (HSM2instance*)inst;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@
|
|||
#include "sperror.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2convTest(inModel,ckt)
|
||||
GENmodel *inModel;
|
||||
register CKTcircuit *ckt;
|
||||
int HSM2convTest(
|
||||
GENmodel *inModel,
|
||||
register CKTcircuit *ckt)
|
||||
{
|
||||
register HSM2model *model = (HSM2model*)inModel;
|
||||
register HSM2instance *here;
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
#include "gendefs.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2delete(inModel,name,inInst)
|
||||
GENmodel *inModel;
|
||||
IFuid name;
|
||||
GENinstance **inInst;
|
||||
int HSM2delete(
|
||||
GENmodel *inModel,
|
||||
IFuid name,
|
||||
GENinstance **inInst)
|
||||
{
|
||||
HSM2instance **fast = (HSM2instance**)inInst;
|
||||
HSM2model *model = (HSM2model*)inModel;
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
#include "hsm2def.h"
|
||||
#include "suffix.h"
|
||||
|
||||
void HSM2destroy(inModel)
|
||||
GENmodel **inModel;
|
||||
void HSM2destroy(
|
||||
GENmodel **inModel)
|
||||
{
|
||||
HSM2model **model = (HSM2model**)inModel;
|
||||
HSM2instance *here;
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@
|
|||
#include "sperror.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2getic(inModel,ckt)
|
||||
GENmodel *inModel;
|
||||
CKTcircuit *ckt;
|
||||
int HSM2getic(
|
||||
GENmodel *inModel,
|
||||
CKTcircuit *ckt)
|
||||
{
|
||||
HSM2model *model = (HSM2model*)inModel;
|
||||
HSM2instance *here;
|
||||
|
|
|
|||
|
|
@ -185,9 +185,9 @@ static void ShowPhysVals(here,model,isFirst,vds,vgs,vbs,vgd,vbd,vgb)
|
|||
}
|
||||
}
|
||||
|
||||
int HSM2load(inModel,ckt)
|
||||
GENmodel *inModel;
|
||||
register CKTcircuit *ckt;
|
||||
int HSM2load(
|
||||
GENmodel *inModel,
|
||||
register CKTcircuit *ckt)
|
||||
/* actually load the current value into the
|
||||
* sparse matrix previously provided
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -22,11 +22,11 @@
|
|||
#include "sperror.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2mAsk(ckt,inst,which,value)
|
||||
CKTcircuit *ckt;
|
||||
GENmodel *inst;
|
||||
int which;
|
||||
IFvalue *value;
|
||||
int HSM2mAsk(
|
||||
CKTcircuit *ckt,
|
||||
GENmodel *inst,
|
||||
int which,
|
||||
IFvalue *value)
|
||||
{
|
||||
HSM2model *model = (HSM2model *)inst;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@
|
|||
#include "sperror.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2mDelete(inModel,modname,kill)
|
||||
GENmodel **inModel;
|
||||
IFuid modname;
|
||||
GENmodel *kill;
|
||||
int HSM2mDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
{
|
||||
HSM2model **model = (HSM2model**)inModel;
|
||||
HSM2model *modfast = (HSM2model*)kill;
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
#include "sperror.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2mParam(param,value,inMod)
|
||||
int param;
|
||||
IFvalue *value;
|
||||
GENmodel *inMod;
|
||||
int HSM2mParam(
|
||||
int param,
|
||||
IFvalue *value,
|
||||
GENmodel *inMod)
|
||||
{
|
||||
HSM2model *mod = (HSM2model*)inMod;
|
||||
switch (param) {
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@
|
|||
extern void NevalSrc();
|
||||
extern double Nintegrate();
|
||||
|
||||
int HSM2noise (mode, operation, inModel, ckt, data, OnDens)
|
||||
int mode, operation;
|
||||
GENmodel *inModel;
|
||||
CKTcircuit *ckt;
|
||||
register Ndata *data;
|
||||
double *OnDens;
|
||||
int HSM2noise (
|
||||
int mode, int operation,
|
||||
GENmodel *inModel,
|
||||
CKTcircuit *ckt,
|
||||
register Ndata *data,
|
||||
double *OnDens)
|
||||
{
|
||||
register HSM2model *model = (HSM2model *)inModel;
|
||||
register HSM2instance *here;
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@
|
|||
#include "sperror.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2param(param,value,inst,select)
|
||||
int param;
|
||||
IFvalue *value;
|
||||
GENinstance *inst;
|
||||
IFvalue *select;
|
||||
int HSM2param(
|
||||
int param,
|
||||
IFvalue *value,
|
||||
GENinstance *inst,
|
||||
IFvalue *select)
|
||||
{
|
||||
HSM2instance *here = (HSM2instance*)inst;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@
|
|||
#include "hsm2def.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2pzLoad(inModel,ckt,s)
|
||||
GENmodel *inModel;
|
||||
register CKTcircuit *ckt;
|
||||
register SPcomplex *s;
|
||||
int HSM2pzLoad(
|
||||
GENmodel *inModel,
|
||||
register CKTcircuit *ckt,
|
||||
register SPcomplex *s)
|
||||
{
|
||||
register HSM2model *model = (HSM2model*)inModel;
|
||||
register HSM2instance *here;
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@
|
|||
#include "suffix.h"
|
||||
|
||||
|
||||
int HSM2setup(matrix,inModel,ckt,states)
|
||||
register SMPmatrix *matrix;
|
||||
register GENmodel *inModel;
|
||||
register CKTcircuit *ckt;
|
||||
int *states;
|
||||
int HSM2setup(
|
||||
register SMPmatrix *matrix,
|
||||
register GENmodel *inModel,
|
||||
register CKTcircuit *ckt,
|
||||
int *states)
|
||||
/* load the HSM2 device structure with those pointers needed later
|
||||
* for fast matrix loading
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -62,9 +62,9 @@
|
|||
y = ( xmin ) + 0.5 * ( T1 + T2 ) ; \
|
||||
}
|
||||
|
||||
int HSM2temp(inModel,ckt)
|
||||
GENmodel *inModel;
|
||||
CKTcircuit *ckt;
|
||||
int HSM2temp(
|
||||
GENmodel *inModel,
|
||||
CKTcircuit *ckt)
|
||||
{
|
||||
register HSM2model *model = (HSM2model *)inModel ;
|
||||
register HSM2instance *here ;
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
#include "sperror.h"
|
||||
#include "suffix.h"
|
||||
|
||||
int HSM2trunc(inModel,ckt,timeStep)
|
||||
GENmodel *inModel;
|
||||
register CKTcircuit *ckt;
|
||||
double *timeStep;
|
||||
int HSM2trunc(
|
||||
GENmodel *inModel,
|
||||
register CKTcircuit *ckt,
|
||||
double *timeStep)
|
||||
|
||||
{
|
||||
register HSM2model *model = (HSM2model*)inModel;
|
||||
|
|
|
|||
Loading…
Reference in New Issue