From 5362d8be46c5e4b73445955012f2267725760b80 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 4 Jan 2018 18:54:39 +0100 Subject: [PATCH] devices/**/XXXdel.c, unify, function arguments --- src/spicelib/devices/bsim3/b3del.c | 5 +---- src/spicelib/devices/bsim4/b4del.c | 5 +---- src/spicelib/devices/bsim4v5/b4v5del.c | 5 +---- src/spicelib/devices/bsim4v6/b4v6del.c | 5 +---- src/spicelib/devices/bsim4v7/b4v7del.c | 5 +---- src/spicelib/devices/bsimsoi/b4soidel.c | 5 +---- src/spicelib/devices/hisim2/hsm2del.c | 6 ++---- src/spicelib/devices/hisimhv1/hsmhvdel.c | 6 ++---- src/spicelib/devices/hisimhv2/hsmhv2del.c | 6 ++---- src/spicelib/devices/ndev/ndevdel.c | 6 +----- 10 files changed, 13 insertions(+), 41 deletions(-) diff --git a/src/spicelib/devices/bsim3/b3del.c b/src/spicelib/devices/bsim3/b3del.c index 4127b20b6..27b695cbc 100644 --- a/src/spicelib/devices/bsim3/b3del.c +++ b/src/spicelib/devices/bsim3/b3del.c @@ -17,10 +17,7 @@ int -BSIM3delete( - GENmodel *inModel, - IFuid name, - GENinstance **inInst) +BSIM3delete(GENmodel *inModel, IFuid name, GENinstance **inInst) { BSIM3instance **fast = (BSIM3instance **) inInst; BSIM3model *model = (BSIM3model *) inModel; diff --git a/src/spicelib/devices/bsim4/b4del.c b/src/spicelib/devices/bsim4/b4del.c index 6700ce023..c9f047c77 100644 --- a/src/spicelib/devices/bsim4/b4del.c +++ b/src/spicelib/devices/bsim4/b4del.c @@ -66,10 +66,7 @@ int -BSIM4delete( - GENmodel *inModel, - IFuid name, - GENinstance **inInst) +BSIM4delete(GENmodel *inModel, IFuid name, GENinstance **inInst) { BSIM4instance **fast = (BSIM4instance **) inInst; BSIM4model *model = (BSIM4model *) inModel; diff --git a/src/spicelib/devices/bsim4v5/b4v5del.c b/src/spicelib/devices/bsim4v5/b4v5del.c index 9b3311f74..a86f0fff0 100644 --- a/src/spicelib/devices/bsim4v5/b4v5del.c +++ b/src/spicelib/devices/bsim4v5/b4v5del.c @@ -16,10 +16,7 @@ int -BSIM4v5delete( - GENmodel *inModel, - IFuid name, - GENinstance **inInst) +BSIM4v5delete(GENmodel *inModel, IFuid name, GENinstance **inInst) { BSIM4v5instance **fast = (BSIM4v5instance **) inInst; BSIM4v5model *model = (BSIM4v5model *) inModel; diff --git a/src/spicelib/devices/bsim4v6/b4v6del.c b/src/spicelib/devices/bsim4v6/b4v6del.c index 56ad3830b..0e0ad0cef 100644 --- a/src/spicelib/devices/bsim4v6/b4v6del.c +++ b/src/spicelib/devices/bsim4v6/b4v6del.c @@ -18,10 +18,7 @@ int -BSIM4v6delete( - GENmodel *inModel, - IFuid name, - GENinstance **inInst) +BSIM4v6delete(GENmodel *inModel, IFuid name, GENinstance **inInst) { BSIM4v6instance **fast = (BSIM4v6instance **) inInst; BSIM4v6model *model = (BSIM4v6model *) inModel; diff --git a/src/spicelib/devices/bsim4v7/b4v7del.c b/src/spicelib/devices/bsim4v7/b4v7del.c index d4c1bcb12..7af0ded83 100644 --- a/src/spicelib/devices/bsim4v7/b4v7del.c +++ b/src/spicelib/devices/bsim4v7/b4v7del.c @@ -18,10 +18,7 @@ int -BSIM4v7delete( - GENmodel *inModel, - IFuid name, - GENinstance **inInst) +BSIM4v7delete(GENmodel *inModel, IFuid name, GENinstance **inInst) { BSIM4v7instance **fast = (BSIM4v7instance **) inInst; BSIM4v7model *model = (BSIM4v7model *) inModel; diff --git a/src/spicelib/devices/bsimsoi/b4soidel.c b/src/spicelib/devices/bsimsoi/b4soidel.c index dfef0e7f0..a37b711f1 100644 --- a/src/spicelib/devices/bsimsoi/b4soidel.c +++ b/src/spicelib/devices/bsimsoi/b4soidel.c @@ -21,10 +21,7 @@ int -B4SOIdelete( - GENmodel *inModel, - IFuid name, - GENinstance **inInst) +B4SOIdelete(GENmodel *inModel, IFuid name, GENinstance **inInst) { B4SOIinstance **fast = (B4SOIinstance **) inInst; B4SOImodel *model = (B4SOImodel *) inModel; diff --git a/src/spicelib/devices/hisim2/hsm2del.c b/src/spicelib/devices/hisim2/hsm2del.c index 38349b563..158e84201 100644 --- a/src/spicelib/devices/hisim2/hsm2del.c +++ b/src/spicelib/devices/hisim2/hsm2del.c @@ -61,10 +61,8 @@ to others." #include "ngspice/suffix.h" -int HSM2delete( - GENmodel *inModel, - IFuid name, - GENinstance **inInst) +int +HSM2delete(GENmodel *inModel, IFuid name, GENinstance **inInst) { HSM2instance **fast = (HSM2instance **) inInst; HSM2model *model = (HSM2model *) inModel; diff --git a/src/spicelib/devices/hisimhv1/hsmhvdel.c b/src/spicelib/devices/hisimhv1/hsmhvdel.c index 84d19099f..0876250ce 100644 --- a/src/spicelib/devices/hisimhv1/hsmhvdel.c +++ b/src/spicelib/devices/hisimhv1/hsmhvdel.c @@ -22,10 +22,8 @@ #include "ngspice/suffix.h" -int HSMHVdelete( - GENmodel *inModel, - IFuid name, - GENinstance **inInst) +int +HSMHVdelete(GENmodel *inModel, IFuid name, GENinstance **inInst) { HSMHVinstance **fast = (HSMHVinstance **) inInst; HSMHVmodel *model = (HSMHVmodel *) inModel; diff --git a/src/spicelib/devices/hisimhv2/hsmhv2del.c b/src/spicelib/devices/hisimhv2/hsmhv2del.c index 7283bc49f..c93fc4504 100644 --- a/src/spicelib/devices/hisimhv2/hsmhv2del.c +++ b/src/spicelib/devices/hisimhv2/hsmhv2del.c @@ -64,10 +64,8 @@ June 2008 (revised October 2011) #include "ngspice/suffix.h" -int HSMHV2delete( - GENmodel *inModel, - IFuid name, - GENinstance **inInst) +int +HSMHV2delete(GENmodel *inModel, IFuid name, GENinstance **inInst) { HSMHV2instance **fast = (HSMHV2instance **) inInst; HSMHV2model *model = (HSMHV2model *) inModel; diff --git a/src/spicelib/devices/ndev/ndevdel.c b/src/spicelib/devices/ndev/ndevdel.c index c1d4c25c1..d87fc0ede 100644 --- a/src/spicelib/devices/ndev/ndevdel.c +++ b/src/spicelib/devices/ndev/ndevdel.c @@ -11,11 +11,7 @@ University of Science and Technology of China int -NDEVdelete( - GENmodel *inModel, - IFuid name, - GENinstance **kill) - +NDEVdelete(GENmodel *inModel, IFuid name, GENinstance **kill) { NDEVmodel *model = (NDEVmodel *) inModel; NDEVinstance **fast = (NDEVinstance **) kill;