devices/**/XXXmdel.c, unify variable and argument names
This commit is contained in:
parent
58f745f57f
commit
a0e8c91d89
|
|
@ -10,10 +10,10 @@ Author: 1987 Kanwar Jit Singh
|
|||
|
||||
|
||||
int
|
||||
ASRCmDelete(GENmodel **modList, IFuid modname, GENmodel *killModel)
|
||||
ASRCmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
ASRCmodel **model = (ASRCmodel **) modList;
|
||||
ASRCmodel *modfast = (ASRCmodel *) killModel;
|
||||
ASRCmodel **model = (ASRCmodel **) inModel;
|
||||
ASRCmodel *modfast = (ASRCmodel *) kill;
|
||||
ASRCinstance *here;
|
||||
ASRCinstance *prev = NULL;
|
||||
ASRCmodel **oldmod;
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
|
||||
int
|
||||
BJTmDelete(GENmodel **inModels, IFuid modname, GENmodel *kill)
|
||||
BJTmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
BJTmodel **model = (BJTmodel **) inModels;
|
||||
BJTmodel **model = (BJTmodel **) inModel;
|
||||
BJTmodel *modfast = (BJTmodel *) kill;
|
||||
BJTmodel **oldmod;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
|
||||
int
|
||||
ISRCmDelete(GENmodel **inModel, IFuid modname, GENmodel *fast)
|
||||
ISRCmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
ISRCmodel **model = (ISRCmodel **) inModel;
|
||||
ISRCmodel *modfast = (ISRCmodel *) fast;
|
||||
ISRCmodel *modfast = (ISRCmodel *) kill;
|
||||
ISRCinstance *here;
|
||||
ISRCinstance *prev = NULL;
|
||||
ISRCmodel **oldmod;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ NUMDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
{
|
||||
NUMDmodel **model = (NUMDmodel **) inModel;
|
||||
NUMDmodel *modfast = (NUMDmodel *) kill;
|
||||
NUMDinstance *inst;
|
||||
NUMDinstance *here;
|
||||
NUMDinstance *prev = NULL;
|
||||
NUMDmodel **oldmod;
|
||||
|
||||
|
|
@ -29,10 +29,10 @@ NUMDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->NUMDnextModel; /* cut deleted device out of list */
|
||||
for (inst = (*model)->NUMDinstances; inst; inst = inst->NUMDnextInstance) {
|
||||
for (here = (*model)->NUMDinstances; here; here = here->NUMDnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = inst;
|
||||
prev = here;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ NUMD2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
{
|
||||
NUMD2model **model = (NUMD2model **) inModel;
|
||||
NUMD2model *modfast = (NUMD2model *) kill;
|
||||
NUMD2instance *inst;
|
||||
NUMD2instance *here;
|
||||
NUMD2instance *prev = NULL;
|
||||
NUMD2model **oldmod;
|
||||
|
||||
|
|
@ -29,10 +29,10 @@ NUMD2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->NUMD2nextModel; /* cut deleted device out of list */
|
||||
for (inst = (*model)->NUMD2instances; inst; inst = inst->NUMD2nextInstance) {
|
||||
for (here = (*model)->NUMD2instances; here; here = here->NUMD2nextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = inst;
|
||||
prev = here;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ Spice3 Implementation: 2003 Dietmar Warning DAnalyse GmbH
|
|||
|
||||
|
||||
int
|
||||
VBICmDelete(GENmodel **inModels, IFuid modname, GENmodel *kill)
|
||||
VBICmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
VBICmodel **model = (VBICmodel **) inModels;
|
||||
VBICmodel **model = (VBICmodel **) inModel;
|
||||
VBICmodel *modfast = (VBICmodel *) kill;
|
||||
VBICmodel **oldmod;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ Author: 1985 Thomas L. Quarles
|
|||
|
||||
|
||||
int
|
||||
VSRCmDelete(GENmodel **inModel, IFuid modname, GENmodel *fast)
|
||||
VSRCmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
VSRCmodel **model = (VSRCmodel **) inModel;
|
||||
VSRCmodel *modfast = (VSRCmodel *) fast;
|
||||
VSRCmodel *modfast = (VSRCmodel *) kill;
|
||||
VSRCinstance *here;
|
||||
VSRCinstance *prev = NULL;
|
||||
VSRCmodel **oldmod;
|
||||
|
|
|
|||
Loading…
Reference in New Issue