diff --git a/src/spicelib/devices/ccvs/ccvs.c b/src/spicelib/devices/ccvs/ccvs.c index b0253d18d..97a8ac5ec 100644 --- a/src/spicelib/devices/ccvs/ccvs.c +++ b/src/spicelib/devices/ccvs/ccvs.c @@ -4,7 +4,6 @@ Author: 1987 Thomas L. Quarles **********/ #include "ngspice.h" -#include #include "ifsim.h" #include "devdefs.h" #include "ccvsdefs.h" diff --git a/src/spicelib/devices/ccvs/ccvsask.c b/src/spicelib/devices/ccvs/ccvsask.c index b63ef57ab..2c3b775cf 100644 --- a/src/spicelib/devices/ccvs/ccvsask.c +++ b/src/spicelib/devices/ccvs/ccvsask.c @@ -9,7 +9,6 @@ Author: 1987 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "devdefs.h" #include "ifsim.h" @@ -19,12 +18,7 @@ Author: 1987 Thomas L. Quarles /* ARGSUSED */ int -CCVSask(ckt,inst,which,value,select) - CKTcircuit *ckt; - GENinstance *inst; - int which; - IFvalue *value; - IFvalue *select; +CCVSask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *select) { CCVSinstance *here = (CCVSinstance*)inst; double vr; diff --git a/src/spicelib/devices/ccvs/ccvsdel.c b/src/spicelib/devices/ccvs/ccvsdel.c index 6823a9fd5..8700742b2 100644 --- a/src/spicelib/devices/ccvs/ccvsdel.c +++ b/src/spicelib/devices/ccvs/ccvsdel.c @@ -6,18 +6,13 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "ccvsdefs.h" #include "sperror.h" #include "suffix.h" int -CCVSdelete(inModel,name,kill) - GENmodel *inModel; - IFuid name; - GENinstance **kill; - +CCVSdelete(GENmodel *inModel, IFuid name, GENinstance **kill) { CCVSmodel *model = (CCVSmodel*)inModel; CCVSinstance **fast = (CCVSinstance**)kill; diff --git a/src/spicelib/devices/ccvs/ccvsdest.c b/src/spicelib/devices/ccvs/ccvsdest.c index 0b5b3efa9..11bf9da8c 100644 --- a/src/spicelib/devices/ccvs/ccvsdest.c +++ b/src/spicelib/devices/ccvs/ccvsdest.c @@ -6,14 +6,12 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "ccvsdefs.h" #include "suffix.h" void -CCVSdestroy(inModel) - GENmodel **inModel; +CCVSdestroy(GENmodel **inModel) { CCVSmodel **model = (CCVSmodel**)inModel; CCVSinstance *here; diff --git a/src/spicelib/devices/ccvs/ccvsext.h b/src/spicelib/devices/ccvs/ccvsext.h index 1765bf882..779cdd225 100644 --- a/src/spicelib/devices/ccvs/ccvsext.h +++ b/src/spicelib/devices/ccvs/ccvsext.h @@ -3,7 +3,6 @@ Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 Thomas L. Quarles **********/ -#ifdef __STDC__ extern int CCVSask(CKTcircuit*,GENinstance*,int,IFvalue*,IFvalue*); extern int CCVSdelete(GENmodel*,IFuid,GENinstance**); extern void CCVSdestroy(GENmodel**); @@ -18,20 +17,3 @@ extern void CCVSsPrint(GENmodel*,CKTcircuit*); extern int CCVSsSetup(SENstruct*,GENmodel*); extern int CCVSsetup(SMPmatrix*,GENmodel*,CKTcircuit*,int*); extern int CCVSunsetup(GENmodel*,CKTcircuit*); -#else /* stdc */ -extern int CCVSask(); -extern int CCVSdelete(); -extern void CCVSdestroy(); -extern int CCVSfindBr(); -extern int CCVSload(); -extern int CCVSmDelete(); -extern int CCVSparam(); -extern int CCVSpzLoad(); -extern int CCVSsAcLoad(); -extern int CCVSsLoad(); -extern void CCVSsPrint(); -extern int CCVSsSetup(); -extern int CCVSsetup(); -extern int CCVSunsetup(); -#endif /* stdc */ - diff --git a/src/spicelib/devices/ccvs/ccvsfbr.c b/src/spicelib/devices/ccvs/ccvsfbr.c index a8b79e3ec..0a6639a8a 100644 --- a/src/spicelib/devices/ccvs/ccvsfbr.c +++ b/src/spicelib/devices/ccvs/ccvsfbr.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "ccvsdefs.h" #include "sperror.h" @@ -14,10 +13,7 @@ Author: 1985 Thomas L. Quarles int -CCVSfindBr(ckt,inModel,name) - CKTcircuit *ckt; - GENmodel *inModel; - IFuid name; +CCVSfindBr(CKTcircuit *ckt, GENmodel *inModel, IFuid name) { CCVSmodel *model = (CCVSmodel*)inModel; CCVSinstance *here; diff --git a/src/spicelib/devices/ccvs/ccvsload.c b/src/spicelib/devices/ccvs/ccvsload.c index 0cba86663..a66ef4ad6 100644 --- a/src/spicelib/devices/ccvs/ccvsload.c +++ b/src/spicelib/devices/ccvs/ccvsload.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "ccvsdefs.h" #include "sperror.h" @@ -15,10 +14,7 @@ Author: 1985 Thomas L. Quarles /*ARGSUSED*/ int -CCVSload(inModel,ckt) - - GENmodel *inModel; - CKTcircuit *ckt; +CCVSload(GENmodel *inModel, CKTcircuit *ckt) /* actually load the current voltage value into the * sparse matrix previously provided diff --git a/src/spicelib/devices/ccvs/ccvsmdel.c b/src/spicelib/devices/ccvs/ccvsmdel.c index e9eb31c3e..6fddcf3db 100644 --- a/src/spicelib/devices/ccvs/ccvsmdel.c +++ b/src/spicelib/devices/ccvs/ccvsmdel.c @@ -6,17 +6,13 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "ccvsdefs.h" #include "sperror.h" #include "suffix.h" int -CCVSmDelete(inModel,modname,kill) - GENmodel **inModel; - IFuid modname; - GENmodel *kill; +CCVSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill) { CCVSmodel **model = (CCVSmodel**)inModel; CCVSmodel *modfast = (CCVSmodel*)kill; diff --git a/src/spicelib/devices/ccvs/ccvspar.c b/src/spicelib/devices/ccvs/ccvspar.c index 76007b0b2..e82f450dd 100644 --- a/src/spicelib/devices/ccvs/ccvspar.c +++ b/src/spicelib/devices/ccvs/ccvspar.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "ifsim.h" #include "ccvsdefs.h" #include "sperror.h" @@ -15,11 +14,7 @@ Author: 1985 Thomas L. Quarles /* ARGSUSED */ int -CCVSparam(param,value,inst,select) - int param; - IFvalue *value; - GENinstance *inst; - IFvalue *select; +CCVSparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) { CCVSinstance *here = (CCVSinstance*)inst; switch(param) { diff --git a/src/spicelib/devices/ccvs/ccvspzld.c b/src/spicelib/devices/ccvs/ccvspzld.c index 88e3b6e78..39c4c70a4 100644 --- a/src/spicelib/devices/ccvs/ccvspzld.c +++ b/src/spicelib/devices/ccvs/ccvspzld.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "complex.h" #include "sperror.h" @@ -16,11 +15,7 @@ Author: 1985 Thomas L. Quarles /*ARGSUSED*/ int -CCVSpzLoad(inModel,ckt,s) - - GENmodel *inModel; - CKTcircuit *ckt; - SPcomplex *s; +CCVSpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s) /* actually load the current voltage value into the * sparse matrix previously provided diff --git a/src/spicelib/devices/ccvs/ccvssacl.c b/src/spicelib/devices/ccvs/ccvssacl.c index 335c6cd50..d954fbeb5 100644 --- a/src/spicelib/devices/ccvs/ccvssacl.c +++ b/src/spicelib/devices/ccvs/ccvssacl.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "ccvsdefs.h" #include "sperror.h" @@ -18,10 +17,7 @@ Author: 1985 Thomas L. Quarles int -CCVSsAcLoad(inModel,ckt) - - GENmodel *inModel; - CKTcircuit *ckt; +CCVSsAcLoad(GENmodel *inModel, CKTcircuit *ckt) { CCVSmodel *model = (CCVSmodel*)inModel; CCVSinstance *here; diff --git a/src/spicelib/devices/ccvs/ccvsset.c b/src/spicelib/devices/ccvs/ccvsset.c index 6c7a04d58..1a3831b08 100644 --- a/src/spicelib/devices/ccvs/ccvsset.c +++ b/src/spicelib/devices/ccvs/ccvsset.c @@ -8,7 +8,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "ccvsdefs.h" #include "sperror.h" @@ -16,11 +15,7 @@ Author: 1985 Thomas L. Quarles /*ARGSUSED*/ int -CCVSsetup(matrix,inModel,ckt,states) - SMPmatrix *matrix; - GENmodel *inModel; - CKTcircuit *ckt; - int *states; +CCVSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) { CCVSmodel *model = (CCVSmodel*)inModel; CCVSinstance *here; @@ -66,9 +61,7 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\ } int -CCVSunsetup(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +CCVSunsetup(GENmodel *inModel, CKTcircuit *ckt) { CCVSmodel *model; CCVSinstance *here; diff --git a/src/spicelib/devices/ccvs/ccvssld.c b/src/spicelib/devices/ccvs/ccvssld.c index 325daf846..9d6cf391b 100644 --- a/src/spicelib/devices/ccvs/ccvssld.c +++ b/src/spicelib/devices/ccvs/ccvssld.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "ccvsdefs.h" #include "sperror.h" @@ -18,9 +17,7 @@ Author: 1985 Thomas L. Quarles int -CCVSsLoad(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +CCVSsLoad(GENmodel *inModel, CKTcircuit *ckt) { CCVSmodel *model = (CCVSmodel*)inModel; CCVSinstance *here; diff --git a/src/spicelib/devices/ccvs/ccvssprt.c b/src/spicelib/devices/ccvs/ccvssprt.c index 8b28c41ad..5446a997d 100644 --- a/src/spicelib/devices/ccvs/ccvssprt.c +++ b/src/spicelib/devices/ccvs/ccvssprt.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "ccvsdefs.h" #include "sperror.h" @@ -18,9 +17,7 @@ Author: 1985 Thomas L. Quarles void -CCVSsPrint(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +CCVSsPrint(GENmodel *inModel, CKTcircuit *ckt) { CCVSmodel *model = (CCVSmodel*)inModel; CCVSinstance *here; diff --git a/src/spicelib/devices/ccvs/ccvssset.c b/src/spicelib/devices/ccvs/ccvssset.c index 8212eb006..b6da639a1 100644 --- a/src/spicelib/devices/ccvs/ccvssset.c +++ b/src/spicelib/devices/ccvs/ccvssset.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "ccvsdefs.h" #include "sperror.h" @@ -18,10 +17,7 @@ Author: 1985 Thomas L. Quarles int -CCVSsSetup(info,inModel) - SENstruct *info; - GENmodel *inModel; - +CCVSsSetup(SENstruct *info, GENmodel *inModel) { CCVSmodel *model = (CCVSmodel*)inModel; CCVSinstance *here; diff --git a/src/spicelib/devices/csw/csw.c b/src/spicelib/devices/csw/csw.c index 4d3fb598a..2aef09c27 100644 --- a/src/spicelib/devices/csw/csw.c +++ b/src/spicelib/devices/csw/csw.c @@ -4,7 +4,6 @@ Author: 1987 Thomas L. Quarles **********/ #include "ngspice.h" -#include #include "ifsim.h" #include "devdefs.h" #include "cswdefs.h" diff --git a/src/spicelib/devices/csw/cswacld.c b/src/spicelib/devices/csw/cswacld.c index ed99d3175..9930c0871 100644 --- a/src/spicelib/devices/csw/cswacld.c +++ b/src/spicelib/devices/csw/cswacld.c @@ -6,7 +6,6 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "cktdefs.h" #include "cswdefs.h" #include "sperror.h" @@ -14,10 +13,7 @@ Author: 1985 Gordon Jacobs int -CSWacLoad(inModel,ckt) - - GENmodel *inModel; - CKTcircuit *ckt; +CSWacLoad(GENmodel *inModel, CKTcircuit *ckt) /* load the current values into the * sparse matrix previously provided diff --git a/src/spicelib/devices/csw/cswask.c b/src/spicelib/devices/csw/cswask.c index fdf01f2f5..4d0a79c49 100644 --- a/src/spicelib/devices/csw/cswask.c +++ b/src/spicelib/devices/csw/cswask.c @@ -11,7 +11,6 @@ Author: 1987 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "devdefs.h" #include "ifsim.h" @@ -22,12 +21,7 @@ Author: 1987 Thomas L. Quarles /* ARGSUSED */ int -CSWask(ckt,inst,which,value,select) - CKTcircuit *ckt; - GENinstance *inst; - int which; - IFvalue *value; - IFvalue *select; +CSWask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *select) { CSWinstance *here = (CSWinstance*)inst; static char *msg = "Current and power not available in ac analysis"; diff --git a/src/spicelib/devices/csw/cswdel.c b/src/spicelib/devices/csw/cswdel.c index 710493eba..afa707d74 100644 --- a/src/spicelib/devices/csw/cswdel.c +++ b/src/spicelib/devices/csw/cswdel.c @@ -6,17 +6,13 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "cswdefs.h" #include "sperror.h" #include "suffix.h" int -CSWdelete(inModel,name,inst) - GENmodel *inModel; - IFuid name; - GENinstance **inst; +CSWdelete(GENmodel *inModel, IFuid name, GENinstance **inst) { CSWmodel *model = (CSWmodel*)inModel; diff --git a/src/spicelib/devices/csw/cswdest.c b/src/spicelib/devices/csw/cswdest.c index b10c53e80..e817d0f3f 100644 --- a/src/spicelib/devices/csw/cswdest.c +++ b/src/spicelib/devices/csw/cswdest.c @@ -6,14 +6,12 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "cswdefs.h" #include "suffix.h" void -CSWdestroy(inModel) - GENmodel **inModel; +CSWdestroy(GENmodel **inModel) { CSWmodel **model = (CSWmodel**)inModel; CSWinstance *here; diff --git a/src/spicelib/devices/csw/cswext.h b/src/spicelib/devices/csw/cswext.h index 0eefa4570..daf6dbc11 100644 --- a/src/spicelib/devices/csw/cswext.h +++ b/src/spicelib/devices/csw/cswext.h @@ -4,7 +4,6 @@ Author: 1985 Gordon M. Jacobs Modified: 2000 AlansFixes **********/ -#ifdef __STDC__ extern int CSWask(CKTcircuit*,GENinstance*,int,IFvalue*,IFvalue*); extern int CSWacLoad(GENmodel*,CKTcircuit*); extern int CSWdelete(GENmodel*,IFuid,GENinstance**); @@ -17,22 +16,4 @@ extern int CSWparam(int,IFvalue*,GENinstance*,IFvalue*); extern int CSWpzLoad(GENmodel*,CKTcircuit*,SPcomplex*); extern int CSWsetup(SMPmatrix*,GENmodel*,CKTcircuit*,int*); extern int CSWnoise(int,int,GENmodel*,CKTcircuit*,Ndata*,double*); - extern int CSWtrunc(GENmodel*,CKTcircuit*,double*); - -#else /* stdc */ -extern int CSWask(); -extern int CSWacLoad(); -extern int CSWdelete(); -extern void CSWdestroy(); -extern int CSWload(); -extern int CSWmAsk(); -extern int CSWmDelete(); -extern int CSWmParam(); -extern int CSWparam(); -extern int CSWpzLoad(); -extern int CSWsetup(); -extern int CSWnoise(); -extern int CSWtrunc(); -#endif /* stdc */ - diff --git a/src/spicelib/devices/csw/cswload.c b/src/spicelib/devices/csw/cswload.c index 2e5504f15..12e1f8425 100644 --- a/src/spicelib/devices/csw/cswload.c +++ b/src/spicelib/devices/csw/cswload.c @@ -5,7 +5,6 @@ Modified: 2001 Jon Engelbert **********/ #include "ngspice.h" -#include #include "cktdefs.h" #include "cswdefs.h" #include "trandefs.h" @@ -13,9 +12,7 @@ Modified: 2001 Jon Engelbert #include "suffix.h" int -CSWload(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +CSWload(GENmodel *inModel, CKTcircuit *ckt) /* actually load the current values into the * sparse matrix previously provided diff --git a/src/spicelib/devices/csw/cswmask.c b/src/spicelib/devices/csw/cswmask.c index 1a210c8a7..98907b527 100644 --- a/src/spicelib/devices/csw/cswmask.c +++ b/src/spicelib/devices/csw/cswmask.c @@ -11,7 +11,6 @@ Author: 1987 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "devdefs.h" #include "ifsim.h" @@ -22,11 +21,7 @@ Author: 1987 Thomas L. Quarles /* ARGSUSED */ int -CSWmAsk(ckt,inst,which,value) - CKTcircuit *ckt; - GENmodel *inst; - int which; - IFvalue *value; +CSWmAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value) { CSWmodel *here = (CSWmodel*)inst; switch(which) { diff --git a/src/spicelib/devices/csw/cswmdel.c b/src/spicelib/devices/csw/cswmdel.c index 6d4975df3..10394792f 100644 --- a/src/spicelib/devices/csw/cswmdel.c +++ b/src/spicelib/devices/csw/cswmdel.c @@ -6,17 +6,13 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "cswdefs.h" #include "sperror.h" #include "suffix.h" int -CSWmDelete(inModel,modname,kill) - GENmodel **inModel; - IFuid modname; - GENmodel *kill; +CSWmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill) { CSWmodel **model = (CSWmodel**)inModel; CSWmodel *modfast = (CSWmodel*)kill; diff --git a/src/spicelib/devices/csw/cswmpar.c b/src/spicelib/devices/csw/cswmpar.c index b7708f2be..713317542 100644 --- a/src/spicelib/devices/csw/cswmpar.c +++ b/src/spicelib/devices/csw/cswmpar.c @@ -7,7 +7,6 @@ Modified: 2001 Jon Englebert */ #include "ngspice.h" -#include #include "ifsim.h" #include "cswdefs.h" #include "sperror.h" @@ -15,10 +14,7 @@ Modified: 2001 Jon Englebert int -CSWmParam(param,value,inModel) - int param; - IFvalue *value; - GENmodel *inModel; +CSWmParam(int param, IFvalue *value, GENmodel *inModel) { CSWmodel *model = (CSWmodel*)inModel; switch(param) { diff --git a/src/spicelib/devices/csw/cswnoise.c b/src/spicelib/devices/csw/cswnoise.c index a47f696f4..f98d60149 100644 --- a/src/spicelib/devices/csw/cswnoise.c +++ b/src/spicelib/devices/csw/cswnoise.c @@ -4,7 +4,6 @@ Author: 1987 Gary W. Ng **********/ #include "ngspice.h" -#include #include "cswdefs.h" #include "cktdefs.h" #include "iferrmsg.h" @@ -25,13 +24,7 @@ extern void NevalSrc(); extern double Nintegrate(); int -CSWnoise (mode, operation, genmodel, ckt, data, OnDens) - int mode; - int operation; - GENmodel *genmodel; - CKTcircuit *ckt; - Ndata *data; - double *OnDens; +CSWnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata *data, double *OnDens) { CSWmodel *firstModel = (CSWmodel *) genmodel; CSWmodel *model; diff --git a/src/spicelib/devices/csw/cswparam.c b/src/spicelib/devices/csw/cswparam.c index f7a6e740a..06cc62d0d 100644 --- a/src/spicelib/devices/csw/cswparam.c +++ b/src/spicelib/devices/csw/cswparam.c @@ -6,7 +6,6 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "cswdefs.h" #include "ifsim.h" #include "sperror.h" @@ -15,11 +14,7 @@ Author: 1985 Gordon Jacobs /* ARGSUSED */ int -CSWparam(param,value,inst,select) - int param; - IFvalue *value; - GENinstance *inst; - IFvalue *select; +CSWparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) { CSWinstance *here = (CSWinstance*)inst; switch(param) { diff --git a/src/spicelib/devices/csw/cswpzld.c b/src/spicelib/devices/csw/cswpzld.c index 89ec610da..bee25d2d3 100644 --- a/src/spicelib/devices/csw/cswpzld.c +++ b/src/spicelib/devices/csw/cswpzld.c @@ -6,7 +6,6 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "cktdefs.h" #include "cswdefs.h" #include "sperror.h" @@ -16,10 +15,7 @@ Author: 1985 Gordon Jacobs /* ARGSUSED */ int -CSWpzLoad(inModel,ckt,s) - GENmodel *inModel; - CKTcircuit *ckt; - SPcomplex *s; +CSWpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s) /* load the current values into the * sparse matrix previously provided diff --git a/src/spicelib/devices/csw/cswsetup.c b/src/spicelib/devices/csw/cswsetup.c index 0b18572a6..e7504080e 100644 --- a/src/spicelib/devices/csw/cswsetup.c +++ b/src/spicelib/devices/csw/cswsetup.c @@ -6,7 +6,6 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "cktdefs.h" #include "cswdefs.h" #include "sperror.h" @@ -14,11 +13,7 @@ Author: 1985 Gordon Jacobs int -CSWsetup(matrix,inModel,ckt,states) - SMPmatrix *matrix; - GENmodel *inModel; - CKTcircuit *ckt; - int *states; +CSWsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* load the switch conductance with those pointers needed later * for fast matrix loading */ diff --git a/src/spicelib/devices/csw/cswtrunc.c b/src/spicelib/devices/csw/cswtrunc.c index 9a13a40bf..176794b81 100644 --- a/src/spicelib/devices/csw/cswtrunc.c +++ b/src/spicelib/devices/csw/cswtrunc.c @@ -7,7 +7,6 @@ Modified: 2000 AlansFixes */ #include "ngspice.h" -#include #include "cktdefs.h" #include "sperror.h" #include "suffix.h" diff --git a/src/spicelib/devices/sw/sw.c b/src/spicelib/devices/sw/sw.c index c80f25f82..f0383e743 100644 --- a/src/spicelib/devices/sw/sw.c +++ b/src/spicelib/devices/sw/sw.c @@ -4,7 +4,6 @@ Author: 1987 **********/ #include "ngspice.h" -#include #include "devdefs.h" #include "ifsim.h" #include "swdefs.h" diff --git a/src/spicelib/devices/sw/swacload.c b/src/spicelib/devices/sw/swacload.c index e34306bdc..f3e8fe8ad 100644 --- a/src/spicelib/devices/sw/swacload.c +++ b/src/spicelib/devices/sw/swacload.c @@ -6,7 +6,6 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "cktdefs.h" #include "swdefs.h" #include "sperror.h" @@ -14,9 +13,7 @@ Author: 1985 Gordon Jacobs int -SWacLoad(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +SWacLoad(GENmodel *inModel, CKTcircuit *ckt) /* load the current values into the * sparse matrix previously provided * during AC analysis. diff --git a/src/spicelib/devices/sw/swask.c b/src/spicelib/devices/sw/swask.c index 5fec57e3b..cd59ed2ae 100644 --- a/src/spicelib/devices/sw/swask.c +++ b/src/spicelib/devices/sw/swask.c @@ -11,7 +11,6 @@ Author: 1987 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "devdefs.h" #include "ifsim.h" @@ -22,12 +21,7 @@ Author: 1987 Thomas L. Quarles /* ARGSUSED */ int -SWask(ckt,inst,which,value,select) - CKTcircuit *ckt; - GENinstance *inst; - int which; - IFvalue *value; - IFvalue *select; +SWask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *select) { SWinstance *here = (SWinstance *)inst; static char *msg = "Current and power not available in ac analysis"; diff --git a/src/spicelib/devices/sw/swdelete.c b/src/spicelib/devices/sw/swdelete.c index b8c4c5434..cd258efaf 100644 --- a/src/spicelib/devices/sw/swdelete.c +++ b/src/spicelib/devices/sw/swdelete.c @@ -6,17 +6,13 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "swdefs.h" #include "sperror.h" #include "suffix.h" int -SWdelete(inModel,name,inst) - GENmodel *inModel; - IFuid name; - GENinstance **inst; +SWdelete(GENmodel *inModel, IFuid name, GENinstance **inst) { SWmodel *model = (SWmodel *)inModel; SWinstance **fast = (SWinstance **)inst; diff --git a/src/spicelib/devices/sw/swdest.c b/src/spicelib/devices/sw/swdest.c index 523ae2d90..53553fbf6 100644 --- a/src/spicelib/devices/sw/swdest.c +++ b/src/spicelib/devices/sw/swdest.c @@ -6,14 +6,12 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "swdefs.h" #include "suffix.h" void -SWdestroy(inModel) - GENmodel **inModel; +SWdestroy(GENmodel **inModel) { SWmodel **model = (SWmodel**)inModel; SWinstance *here; diff --git a/src/spicelib/devices/sw/swext.h b/src/spicelib/devices/sw/swext.h index 08fb3543b..ee447e7a9 100644 --- a/src/spicelib/devices/sw/swext.h +++ b/src/spicelib/devices/sw/swext.h @@ -4,7 +4,6 @@ Author: 1985 Gordon M. Jacobs Modified: 2000 AlansFixes **********/ -#ifdef __STDC__ extern int SWacLoad(GENmodel*,CKTcircuit*); extern int SWask(CKTcircuit*,GENinstance*,int,IFvalue*,IFvalue*); extern int SWdelete(GENmodel*,IFuid,GENinstance**); @@ -18,19 +17,3 @@ extern int SWpzLoad(GENmodel*,CKTcircuit*,SPcomplex*); extern int SWsetup(SMPmatrix*,GENmodel*,CKTcircuit*,int*); extern int SWnoise(int,int,GENmodel*,CKTcircuit*,Ndata*,double*); extern int SWtrunc(GENmodel*,CKTcircuit*,double*); -#else /* stdc */ -extern int SWacLoad(); -extern int SWask(); -extern int SWdelete(); -extern void SWdestroy(); -extern int SWload(); -extern int SWmAsk(); -extern int SWmDelete(); -extern int SWmParam(); -extern int SWparam(); -extern int SWpzLoad(); -extern int SWsetup(); -extern int SWnoise(); -extern int SWtrunc(); -#endif /* stdc */ - diff --git a/src/spicelib/devices/sw/swload.c b/src/spicelib/devices/sw/swload.c index aaa38b484..a06e6f642 100644 --- a/src/spicelib/devices/sw/swload.c +++ b/src/spicelib/devices/sw/swload.c @@ -5,7 +5,6 @@ Modified: 2001 Jon Engelbert **********/ #include "ngspice.h" -#include #include "cktdefs.h" #include "swdefs.h" #include "trandefs.h" @@ -13,9 +12,7 @@ Modified: 2001 Jon Engelbert #include "suffix.h" int -SWload(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +SWload(GENmodel *inModel, CKTcircuit *ckt) /* actually load the current values into the * sparse matrix previously provided */ diff --git a/src/spicelib/devices/sw/swmask.c b/src/spicelib/devices/sw/swmask.c index 1d737acdf..afef2c69d 100644 --- a/src/spicelib/devices/sw/swmask.c +++ b/src/spicelib/devices/sw/swmask.c @@ -11,7 +11,6 @@ Author: 1987 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "devdefs.h" #include "ifsim.h" @@ -22,11 +21,7 @@ Author: 1987 Thomas L. Quarles /* ARGSUSED */ int -SWmAsk(ckt,inModel,which,value) - CKTcircuit *ckt; - GENmodel *inModel; - int which; - IFvalue *value; +SWmAsk(CKTcircuit *ckt, GENmodel *inModel, int which, IFvalue *value) { SWmodel *model = (SWmodel *)inModel; switch(which) { diff --git a/src/spicelib/devices/sw/swmdel.c b/src/spicelib/devices/sw/swmdel.c index f1ed0ce0e..0cf5f9d95 100644 --- a/src/spicelib/devices/sw/swmdel.c +++ b/src/spicelib/devices/sw/swmdel.c @@ -6,17 +6,13 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "swdefs.h" #include "sperror.h" #include "suffix.h" int -SWmDelete(inModel,modname,kill) - GENmodel **inModel; - IFuid modname; - GENmodel *kill; +SWmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill) { SWmodel **model = (SWmodel **)inModel; SWmodel *modfast = (SWmodel *)kill; diff --git a/src/spicelib/devices/sw/swmparam.c b/src/spicelib/devices/sw/swmparam.c index a2b25c5f1..2447a832c 100644 --- a/src/spicelib/devices/sw/swmparam.c +++ b/src/spicelib/devices/sw/swmparam.c @@ -7,7 +7,6 @@ Modified: 2001 Jon Engelbert */ #include "ngspice.h" -#include #include "swdefs.h" #include "ifsim.h" #include "sperror.h" @@ -15,10 +14,7 @@ Modified: 2001 Jon Engelbert int -SWmParam(param,value,inModel) - int param; - IFvalue *value; - GENmodel *inModel; +SWmParam(int param, IFvalue *value, GENmodel *inModel) { SWmodel *model = (SWmodel *)inModel; switch(param) { diff --git a/src/spicelib/devices/sw/swnoise.c b/src/spicelib/devices/sw/swnoise.c index 9e45f1538..102445bca 100644 --- a/src/spicelib/devices/sw/swnoise.c +++ b/src/spicelib/devices/sw/swnoise.c @@ -4,7 +4,6 @@ Author: 1987 Gary W. Ng **********/ #include "ngspice.h" -#include #include "swdefs.h" #include "cktdefs.h" #include "iferrmsg.h" @@ -25,13 +24,7 @@ extern void NevalSrc(); extern double Nintegrate(); int -SWnoise (mode, operation, genmodel, ckt, data, OnDens) - int mode; - int operation; - GENmodel *genmodel; - CKTcircuit *ckt; - Ndata *data; - double *OnDens; +SWnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata *data, double *OnDens) { SWmodel *firstModel = (SWmodel *) genmodel; SWmodel *model; diff --git a/src/spicelib/devices/sw/swparam.c b/src/spicelib/devices/sw/swparam.c index 8eab88353..f3d4f69db 100644 --- a/src/spicelib/devices/sw/swparam.c +++ b/src/spicelib/devices/sw/swparam.c @@ -6,7 +6,6 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "swdefs.h" #include "ifsim.h" #include "sperror.h" @@ -15,11 +14,7 @@ Author: 1985 Gordon Jacobs /*ARGSUSED*/ int -SWparam(param,value,inst,select) - int param; - IFvalue *value; - GENinstance *inst; - IFvalue *select; +SWparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) { SWinstance *here = (SWinstance *)inst; switch(param) { diff --git a/src/spicelib/devices/sw/swpzload.c b/src/spicelib/devices/sw/swpzload.c index 90a19ff59..8b2aec2d6 100644 --- a/src/spicelib/devices/sw/swpzload.c +++ b/src/spicelib/devices/sw/swpzload.c @@ -6,7 +6,6 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "cktdefs.h" #include "swdefs.h" #include "sperror.h" @@ -16,10 +15,7 @@ Author: 1985 Gordon Jacobs /* ARGSUSED */ int -SWpzLoad(inModel,ckt,s) - GENmodel *inModel; - CKTcircuit *ckt; - SPcomplex *s; +SWpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s) /* load the current values into the * sparse matrix previously provided * during AC analysis. diff --git a/src/spicelib/devices/sw/swsetup.c b/src/spicelib/devices/sw/swsetup.c index e5240926c..d4add9604 100644 --- a/src/spicelib/devices/sw/swsetup.c +++ b/src/spicelib/devices/sw/swsetup.c @@ -6,7 +6,6 @@ Author: 1985 Gordon Jacobs */ #include "ngspice.h" -#include #include "smpdefs.h" #include "cktdefs.h" #include "swdefs.h" @@ -15,11 +14,7 @@ Author: 1985 Gordon Jacobs int -SWsetup(matrix,inModel,ckt,states) - SMPmatrix *matrix; - GENmodel *inModel; - CKTcircuit *ckt; - int *states; +SWsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* load the switch conductance with those pointers needed later * for fast matrix loading */ diff --git a/src/spicelib/devices/sw/swtrunc.c b/src/spicelib/devices/sw/swtrunc.c index 150a34182..5a6aedf19 100644 --- a/src/spicelib/devices/sw/swtrunc.c +++ b/src/spicelib/devices/sw/swtrunc.c @@ -7,22 +7,16 @@ Modified: 2000 AlansFixes */ #include "ngspice.h" -#include #include "cktdefs.h" #include "sperror.h" #include "suffix.h" - #include "swdefs.h" int -SWtrunc(inModel,ckt,timeStep) - GENmodel *inModel; - register CKTcircuit *ckt; - register double *timeStep; +SWtrunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep) { - register SWmodel *model = (SWmodel*)inModel; - register SWinstance *here; - + SWmodel *model = (SWmodel*)inModel; + SWinstance *here; double lastChange, maxChange, maxStep, ref; for( ; model!= NULL; model = model->SWnextModel) { diff --git a/src/spicelib/devices/vccs/vccs.c b/src/spicelib/devices/vccs/vccs.c index 59f934f2a..d71da15d5 100644 --- a/src/spicelib/devices/vccs/vccs.c +++ b/src/spicelib/devices/vccs/vccs.c @@ -4,7 +4,6 @@ Author: 1987 Thomas L. Quarles **********/ #include "ngspice.h" -#include #include "devdefs.h" #include "ifsim.h" #include "vccsdefs.h" diff --git a/src/spicelib/devices/vccs/vccsask.c b/src/spicelib/devices/vccs/vccsask.c index 78a7e2a6d..7b37a5ce8 100644 --- a/src/spicelib/devices/vccs/vccsask.c +++ b/src/spicelib/devices/vccs/vccsask.c @@ -9,7 +9,6 @@ Author: 1987 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "devdefs.h" #include "ifsim.h" @@ -19,12 +18,7 @@ Author: 1987 Thomas L. Quarles /* ARGSUSED */ int -VCCSask(ckt,inst,which,value,select) - CKTcircuit *ckt; - GENinstance *inst; - int which; - IFvalue *value; - IFvalue *select; +VCCSask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *select) { VCCSinstance *here = (VCCSinstance*)inst; double vr; diff --git a/src/spicelib/devices/vccs/vccsdel.c b/src/spicelib/devices/vccs/vccsdel.c index 5799e083e..19b1309dc 100644 --- a/src/spicelib/devices/vccs/vccsdel.c +++ b/src/spicelib/devices/vccs/vccsdel.c @@ -6,17 +6,13 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "vccsdefs.h" #include "sperror.h" #include "suffix.h" int -VCCSdelete(inModel,name,inst) - GENmodel *inModel; - IFuid name; - GENinstance **inst; +VCCSdelete(GENmodel *inModel, IFuid name, GENinstance **inst) { VCCSmodel *model = (VCCSmodel *)inModel; VCCSinstance **fast = (VCCSinstance**)inst; diff --git a/src/spicelib/devices/vccs/vccsdest.c b/src/spicelib/devices/vccs/vccsdest.c index 8e82528ab..89901f095 100644 --- a/src/spicelib/devices/vccs/vccsdest.c +++ b/src/spicelib/devices/vccs/vccsdest.c @@ -6,14 +6,12 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "vccsdefs.h" #include "suffix.h" void -VCCSdestroy(inModel) - GENmodel **inModel; +VCCSdestroy(GENmodel **inModel) { VCCSmodel **model = (VCCSmodel**)inModel; VCCSinstance *here; diff --git a/src/spicelib/devices/vccs/vccsext.h b/src/spicelib/devices/vccs/vccsext.h index 57e2cdf83..464020523 100644 --- a/src/spicelib/devices/vccs/vccsext.h +++ b/src/spicelib/devices/vccs/vccsext.h @@ -3,7 +3,6 @@ Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 Thomas L. Quarles **********/ -#ifdef __STDC__ extern int VCCSask(CKTcircuit*,GENinstance*,int,IFvalue*,IFvalue*); extern int VCCSdelete(GENmodel*,IFuid,GENinstance**); extern void VCCSdestroy(GENmodel**); @@ -16,17 +15,3 @@ extern int VCCSsLoad(GENmodel*,CKTcircuit*); extern int VCCSsSetup(SENstruct*,GENmodel*); extern void VCCSsPrint(GENmodel*,CKTcircuit*); extern int VCCSsetup(SMPmatrix*,GENmodel*,CKTcircuit*,int*); -#else /* stdc */ -extern int VCCSask(); -extern int VCCSdelete(); -extern void VCCSdestroy(); -extern int VCCSload(); -extern int VCCSmDelete(); -extern int VCCSparam(); -extern int VCCSpzLoad(); -extern int VCCSsAcLoad(); -extern int VCCSsLoad(); -extern int VCCSsSetup(); -extern void VCCSsPrint(); -extern int VCCSsetup(); -#endif /* stdc */ diff --git a/src/spicelib/devices/vccs/vccsload.c b/src/spicelib/devices/vccs/vccsload.c index 8d2ced769..0e783707e 100644 --- a/src/spicelib/devices/vccs/vccsload.c +++ b/src/spicelib/devices/vccs/vccsload.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "vccsdefs.h" #include "sperror.h" @@ -15,9 +14,7 @@ Author: 1985 Thomas L. Quarles /*ARGSUSED*/ int -VCCSload(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +VCCSload(GENmodel *inModel, CKTcircuit *ckt) /* actually load the current values into the * sparse matrix previously provided */ diff --git a/src/spicelib/devices/vccs/vccsmdel.c b/src/spicelib/devices/vccs/vccsmdel.c index 00bdaa822..cce0c9eeb 100644 --- a/src/spicelib/devices/vccs/vccsmdel.c +++ b/src/spicelib/devices/vccs/vccsmdel.c @@ -6,17 +6,13 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "vccsdefs.h" #include "sperror.h" #include "suffix.h" int -VCCSmDelete(inModel,modname,kill) - GENmodel **inModel; - IFuid modname; - GENmodel *kill; +VCCSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill) { VCCSmodel **model = (VCCSmodel **)inModel; VCCSmodel *modfast = (VCCSmodel *)kill; diff --git a/src/spicelib/devices/vccs/vccspar.c b/src/spicelib/devices/vccs/vccspar.c index 322786478..251473e6a 100644 --- a/src/spicelib/devices/vccs/vccspar.c +++ b/src/spicelib/devices/vccs/vccspar.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "ifsim.h" #include "vccsdefs.h" #include "sperror.h" @@ -15,11 +14,7 @@ Author: 1985 Thomas L. Quarles /* ARGSUSED */ int -VCCSparam(param,value,inst,select) - int param; - IFvalue *value; - GENinstance *inst; - IFvalue *select; +VCCSparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) { VCCSinstance *here = (VCCSinstance *)inst; switch(param) { diff --git a/src/spicelib/devices/vccs/vccspzld.c b/src/spicelib/devices/vccs/vccspzld.c index b5ba89d6a..1435df89d 100644 --- a/src/spicelib/devices/vccs/vccspzld.c +++ b/src/spicelib/devices/vccs/vccspzld.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "complex.h" #include "sperror.h" @@ -16,10 +15,7 @@ Author: 1985 Thomas L. Quarles /*ARGSUSED*/ int -VCCSpzLoad(inModel,ckt,s) - GENmodel *inModel; - CKTcircuit *ckt; - SPcomplex *s; +VCCSpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s) /* actually load the current values into the * sparse matrix previously provided */ diff --git a/src/spicelib/devices/vccs/vccssacl.c b/src/spicelib/devices/vccs/vccssacl.c index aa56d45e2..1c9d8d820 100644 --- a/src/spicelib/devices/vccs/vccssacl.c +++ b/src/spicelib/devices/vccs/vccssacl.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "smpdefs.h" #include "cktdefs.h" #include "vccsdefs.h" @@ -19,9 +18,7 @@ Author: 1985 Thomas L. Quarles int -VCCSsAcLoad(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +VCCSsAcLoad(GENmodel *inModel, CKTcircuit *ckt) { VCCSmodel *model = (VCCSmodel *)inModel; VCCSinstance *here; diff --git a/src/spicelib/devices/vccs/vccsset.c b/src/spicelib/devices/vccs/vccsset.c index c4c21729e..696c69659 100644 --- a/src/spicelib/devices/vccs/vccsset.c +++ b/src/spicelib/devices/vccs/vccsset.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "smpdefs.h" #include "cktdefs.h" #include "vccsdefs.h" @@ -20,11 +19,7 @@ Author: 1985 Thomas L. Quarles /*ARGSUSED*/ int -VCCSsetup(matrix,inModel,ckt,states) - SMPmatrix *matrix; - GENmodel *inModel; - CKTcircuit *ckt; - int *states; +VCCSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) { VCCSmodel *model = (VCCSmodel *)inModel; VCCSinstance *here; diff --git a/src/spicelib/devices/vccs/vccssld.c b/src/spicelib/devices/vccs/vccssld.c index c3970f16d..5d10e3fc1 100644 --- a/src/spicelib/devices/vccs/vccssld.c +++ b/src/spicelib/devices/vccs/vccssld.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "smpdefs.h" #include "cktdefs.h" #include "vccsdefs.h" @@ -19,9 +18,7 @@ Author: 1985 Thomas L. Quarles int -VCCSsLoad(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +VCCSsLoad(GENmodel *inModel, CKTcircuit *ckt) { VCCSmodel *model = (VCCSmodel *)inModel; VCCSinstance *here; diff --git a/src/spicelib/devices/vccs/vccssprt.c b/src/spicelib/devices/vccs/vccssprt.c index c0a1db85a..796bc30be 100644 --- a/src/spicelib/devices/vccs/vccssprt.c +++ b/src/spicelib/devices/vccs/vccssprt.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "smpdefs.h" #include "cktdefs.h" #include "vccsdefs.h" @@ -19,9 +18,7 @@ Author: 1985 Thomas L. Quarles void -VCCSsPrint(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +VCCSsPrint(GENmodel *inModel, CKTcircuit *ckt) { VCCSmodel *model = (VCCSmodel *)inModel; VCCSinstance *here; diff --git a/src/spicelib/devices/vccs/vccssset.c b/src/spicelib/devices/vccs/vccssset.c index 7271c79b6..68a4b0b9b 100644 --- a/src/spicelib/devices/vccs/vccssset.c +++ b/src/spicelib/devices/vccs/vccssset.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "smpdefs.h" #include "cktdefs.h" #include "vccsdefs.h" @@ -19,9 +18,7 @@ Author: 1985 Thomas L. Quarles int -VCCSsSetup(info,inModel) - SENstruct *info; - GENmodel *inModel; +VCCSsSetup(SENstruct *info, GENmodel *inModel) { VCCSmodel *model = (VCCSmodel *)inModel; VCCSinstance *here; diff --git a/src/spicelib/devices/vcvs/vcvs.c b/src/spicelib/devices/vcvs/vcvs.c index b7fb014ac..ef0735a08 100644 --- a/src/spicelib/devices/vcvs/vcvs.c +++ b/src/spicelib/devices/vcvs/vcvs.c @@ -4,7 +4,6 @@ Author: 1987 Thomas L. Quarles **********/ #include "ngspice.h" -#include #include "ifsim.h" #include "devdefs.h" #include "vcvsdefs.h" diff --git a/src/spicelib/devices/vcvs/vcvsask.c b/src/spicelib/devices/vcvs/vcvsask.c index 993e82607..59dc0ff7c 100644 --- a/src/spicelib/devices/vcvs/vcvsask.c +++ b/src/spicelib/devices/vcvs/vcvsask.c @@ -9,7 +9,6 @@ Author: 1987 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "devdefs.h" #include "ifsim.h" @@ -19,12 +18,7 @@ Author: 1987 Thomas L. Quarles /* ARGSUSED */ int -VCVSask(ckt,inst,which,value,select) - CKTcircuit *ckt; - GENinstance *inst; - int which; - IFvalue *value; - IFvalue *select; +VCVSask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *select) { VCVSinstance *here = (VCVSinstance *)inst; double vr; diff --git a/src/spicelib/devices/vcvs/vcvsdel.c b/src/spicelib/devices/vcvs/vcvsdel.c index d95347c83..5db1819cf 100644 --- a/src/spicelib/devices/vcvs/vcvsdel.c +++ b/src/spicelib/devices/vcvs/vcvsdel.c @@ -6,17 +6,13 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "vcvsdefs.h" #include "sperror.h" #include "suffix.h" int -VCVSdelete(inModel,name,inst) - GENmodel *inModel; - IFuid name; - GENinstance **inst; +VCVSdelete(GENmodel *inModel, IFuid name, GENinstance **inst) { VCVSmodel *model = (VCVSmodel *)inModel; VCVSinstance **fast = (VCVSinstance**)inst; diff --git a/src/spicelib/devices/vcvs/vcvsdest.c b/src/spicelib/devices/vcvs/vcvsdest.c index c043c7b18..b571c50fa 100644 --- a/src/spicelib/devices/vcvs/vcvsdest.c +++ b/src/spicelib/devices/vcvs/vcvsdest.c @@ -6,14 +6,12 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "vcvsdefs.h" #include "suffix.h" void -VCVSdestroy(inModel) - GENmodel **inModel; +VCVSdestroy(GENmodel **inModel) { VCVSmodel **model = (VCVSmodel **)inModel; VCVSinstance *here; diff --git a/src/spicelib/devices/vcvs/vcvsext.h b/src/spicelib/devices/vcvs/vcvsext.h index d31f28567..3d3858273 100644 --- a/src/spicelib/devices/vcvs/vcvsext.h +++ b/src/spicelib/devices/vcvs/vcvsext.h @@ -3,7 +3,6 @@ Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 Thomas L. Quarles **********/ -#ifdef __STDC__ extern int VCVSask(CKTcircuit*,GENinstance*,int,IFvalue*,IFvalue*); extern int VCVSdelete(GENmodel*,IFuid,GENinstance**); extern void VCVSdestroy(GENmodel**); @@ -18,19 +17,4 @@ extern int VCVSsSetup(SENstruct*,GENmodel*); extern void VCVSsPrint(GENmodel*,CKTcircuit*); extern int VCVSsetup(SMPmatrix*,GENmodel*,CKTcircuit*,int*); extern int VCVSunsetup(GENmodel*,CKTcircuit*); -#else /* stdc */ -extern int VCVSask(); -extern int VCVSdelete(); -extern void VCVSdestroy(); -extern int VCVSfindBr(); -extern int VCVSload(); -extern int VCVSmDelete(); -extern int VCVSparam(); -extern int VCVSpzLoad(); -extern int VCVSsAcLoad(); -extern int VCVSsLoad(); -extern int VCVSsSetup(); -extern void VCVSsPrint(); -extern int VCVSsetup(); -extern int VCVSunsetup(); -#endif /* stdc */ + diff --git a/src/spicelib/devices/vcvs/vcvsfbr.c b/src/spicelib/devices/vcvs/vcvsfbr.c index be8eead72..177e871dc 100644 --- a/src/spicelib/devices/vcvs/vcvsfbr.c +++ b/src/spicelib/devices/vcvs/vcvsfbr.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "vcvsdefs.h" #include "trandefs.h" @@ -15,10 +14,7 @@ Author: 1985 Thomas L. Quarles int -VCVSfindBr(ckt,inModel,name) - CKTcircuit *ckt; - GENmodel *inModel; - IFuid name; +VCVSfindBr(CKTcircuit *ckt, GENmodel *inModel, IFuid name) { VCVSmodel *model = (VCVSmodel *)inModel; VCVSinstance *here; diff --git a/src/spicelib/devices/vcvs/vcvsload.c b/src/spicelib/devices/vcvs/vcvsload.c index b8103011c..e6ad48937 100644 --- a/src/spicelib/devices/vcvs/vcvsload.c +++ b/src/spicelib/devices/vcvs/vcvsload.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "vcvsdefs.h" #include "sperror.h" @@ -15,9 +14,7 @@ Author: 1985 Thomas L. Quarles /*ARGSUSED*/ int -VCVSload(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +VCVSload(GENmodel *inModel, CKTcircuit *ckt) /* actually load the current voltage value into the * sparse matrix previously provided */ diff --git a/src/spicelib/devices/vcvs/vcvsmdel.c b/src/spicelib/devices/vcvs/vcvsmdel.c index 1b17dce03..decae3d08 100644 --- a/src/spicelib/devices/vcvs/vcvsmdel.c +++ b/src/spicelib/devices/vcvs/vcvsmdel.c @@ -6,17 +6,13 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "vcvsdefs.h" #include "sperror.h" #include "suffix.h" int -VCVSmDelete(inModel,modname,kill) - GENmodel **inModel; - IFuid modname; - GENmodel *kill; +VCVSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill) { VCVSmodel **model = (VCVSmodel**)inModel; VCVSmodel *modfast = (VCVSmodel *)kill; diff --git a/src/spicelib/devices/vcvs/vcvspar.c b/src/spicelib/devices/vcvs/vcvspar.c index 291dbe7c3..f8a486bb4 100644 --- a/src/spicelib/devices/vcvs/vcvspar.c +++ b/src/spicelib/devices/vcvs/vcvspar.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "ifsim.h" #include "vcvsdefs.h" #include "sperror.h" @@ -15,11 +14,7 @@ Author: 1985 Thomas L. Quarles /* ARGSUSED */ int -VCVSparam(param,value,inst,select) - int param; - IFvalue *value; - GENinstance *inst; - IFvalue *select; +VCVSparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) { VCVSinstance *here = (VCVSinstance *)inst; switch(param) { diff --git a/src/spicelib/devices/vcvs/vcvspzld.c b/src/spicelib/devices/vcvs/vcvspzld.c index 2a2191b7b..51e572fcf 100644 --- a/src/spicelib/devices/vcvs/vcvspzld.c +++ b/src/spicelib/devices/vcvs/vcvspzld.c @@ -6,7 +6,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "complex.h" #include "sperror.h" @@ -16,10 +15,7 @@ Author: 1985 Thomas L. Quarles /*ARGSUSED*/ int -VCVSpzLoad(inModel,ckt,s) - GENmodel *inModel; - CKTcircuit *ckt; - SPcomplex *s; +VCVSpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s) /* actually load the current voltage value into the * sparse matrix previously provided */ diff --git a/src/spicelib/devices/vcvs/vcvssacl.c b/src/spicelib/devices/vcvs/vcvssacl.c index d094038c5..9ecce9bea 100644 --- a/src/spicelib/devices/vcvs/vcvssacl.c +++ b/src/spicelib/devices/vcvs/vcvssacl.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "vcvsdefs.h" #include "sperror.h" @@ -18,9 +17,7 @@ Author: 1985 Thomas L. Quarles int -VCVSsAcLoad(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +VCVSsAcLoad(GENmodel *inModel, CKTcircuit *ckt) { VCVSmodel *model = (VCVSmodel *)inModel; VCVSinstance *here; diff --git a/src/spicelib/devices/vcvs/vcvsset.c b/src/spicelib/devices/vcvs/vcvsset.c index e58184390..e643dc4fd 100644 --- a/src/spicelib/devices/vcvs/vcvsset.c +++ b/src/spicelib/devices/vcvs/vcvsset.c @@ -8,7 +8,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "smpdefs.h" #include "cktdefs.h" #include "vcvsdefs.h" @@ -17,11 +16,7 @@ Author: 1985 Thomas L. Quarles /*ARGSUSED*/ int -VCVSsetup(matrix,inModel,ckt,states) - SMPmatrix *matrix; - GENmodel *inModel; - CKTcircuit *ckt; - int *states; +VCVSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) { VCVSmodel *model = (VCVSmodel *)inModel; VCVSinstance *here; @@ -59,9 +54,7 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\ } int -VCVSunsetup(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +VCVSunsetup(GENmodel *inModel, CKTcircuit *ckt) { VCVSmodel *model; VCVSinstance *here; diff --git a/src/spicelib/devices/vcvs/vcvssld.c b/src/spicelib/devices/vcvs/vcvssld.c index ef2a62fd2..766a44b7e 100644 --- a/src/spicelib/devices/vcvs/vcvssld.c +++ b/src/spicelib/devices/vcvs/vcvssld.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "vcvsdefs.h" #include "sperror.h" @@ -18,9 +17,7 @@ Author: 1985 Thomas L. Quarles int -VCVSsLoad(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +VCVSsLoad(GENmodel *inModel, CKTcircuit *ckt) { VCVSmodel *model = (VCVSmodel *)inModel; VCVSinstance *here; diff --git a/src/spicelib/devices/vcvs/vcvssprt.c b/src/spicelib/devices/vcvs/vcvssprt.c index 52926e957..3b20bc8ae 100644 --- a/src/spicelib/devices/vcvs/vcvssprt.c +++ b/src/spicelib/devices/vcvs/vcvssprt.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "cktdefs.h" #include "vcvsdefs.h" #include "sperror.h" @@ -18,9 +17,7 @@ Author: 1985 Thomas L. Quarles void -VCVSsPrint(inModel,ckt) - GENmodel *inModel; - CKTcircuit *ckt; +VCVSsPrint(GENmodel *inModel, CKTcircuit *ckt) { VCVSmodel *model = (VCVSmodel *)inModel; VCVSinstance *here; diff --git a/src/spicelib/devices/vcvs/vcvssset.c b/src/spicelib/devices/vcvs/vcvssset.c index 35827a8fc..0f930afa6 100644 --- a/src/spicelib/devices/vcvs/vcvssset.c +++ b/src/spicelib/devices/vcvs/vcvssset.c @@ -10,7 +10,6 @@ Author: 1985 Thomas L. Quarles */ #include "ngspice.h" -#include #include "smpdefs.h" #include "cktdefs.h" #include "vcvsdefs.h" @@ -19,9 +18,7 @@ Author: 1985 Thomas L. Quarles int -VCVSsSetup(info,inModel) - SENstruct *info; - GENmodel *inModel; +VCVSsSetup(SENstruct *info, GENmodel *inModel) { VCVSmodel *model = (VCVSmodel *)inModel; VCVSinstance *here;