devices/**/XXXmdel.c, cleanup linewrap
This commit is contained in:
parent
3095330565
commit
58f745f57f
|
|
@ -24,15 +24,16 @@ BJTmDelete(GENmodel **inModels, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->BJTnextModel)) {
|
||||
if ((*model)->BJTmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->BJTmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
return E_NOMOD;
|
||||
|
||||
delgot:
|
||||
if ((*model)->BJTinstances) return E_NOTEMPTY;
|
||||
if ((*model)->BJTinstances)
|
||||
return E_NOTEMPTY;
|
||||
*oldmod = (*model)->BJTnextModel; /* cut deleted device out of list */
|
||||
FREE(*model);
|
||||
return OK;
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ B1mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->B1nextModel)) {
|
||||
if ((*model)->B1modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->B1modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ B1mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->B1nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->B1instances; here; here = here->B1nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ B2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->B2nextModel)) {
|
||||
if ((*model)->B2modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->B2modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ B2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->B2nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->B2instances; here; here = here->B2nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
|
||||
|
||||
int
|
||||
BSIM3mDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
BSIM3mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
BSIM3model **model = (BSIM3model **) inModel;
|
||||
BSIM3model *modfast = (BSIM3model *) kill;
|
||||
|
|
@ -28,8 +25,7 @@ BSIM3mDelete(
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->BSIM3nextModel)) {
|
||||
if ((*model)->BSIM3modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->BSIM3modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -39,10 +35,12 @@ BSIM3mDelete(
|
|||
delgot:
|
||||
*oldmod = (*model)->BSIM3nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->BSIM3instances; here; here = here->BSIM3nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@ B3SOIDDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->B3SOIDDnextModel)) {
|
||||
if ((*model)->B3SOIDDmodName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->B3SOIDDmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -39,10 +38,12 @@ B3SOIDDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->B3SOIDDnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->B3SOIDDinstances; here; here = here->B3SOIDDnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ B3SOIFDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->B3SOIFDnextModel)) {
|
||||
if ((*model)->B3SOIFDmodName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->B3SOIFDmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -38,10 +37,12 @@ B3SOIFDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->B3SOIFDnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->B3SOIFDinstances; here; here = here->B3SOIFDnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ B3SOIPDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->B3SOIPDnextModel)) {
|
||||
if ((*model)->B3SOIPDmodName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->B3SOIPDmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -38,10 +37,12 @@ B3SOIPDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->B3SOIPDnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->B3SOIPDinstances; here; here = here->B3SOIPDnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ BSIM3v0mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->BSIM3v0nextModel)) {
|
||||
if ((*model)->BSIM3v0modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->BSIM3v0modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -32,10 +31,12 @@ BSIM3v0mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->BSIM3v0nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->BSIM3v0instances; here; here = here->BSIM3v0nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ BSIM3v1mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->BSIM3v1nextModel)) {
|
||||
if ((*model)->BSIM3v1modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->BSIM3v1modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -38,10 +37,12 @@ BSIM3v1mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->BSIM3v1nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->BSIM3v1instances; here; here = here->BSIM3v1nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,8 +26,7 @@ BSIM3v32mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->BSIM3v32nextModel)) {
|
||||
if ((*model)->BSIM3v32modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->BSIM3v32modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -37,10 +36,12 @@ BSIM3v32mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->BSIM3v32nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->BSIM3v32instances; here; here = here->BSIM3v32nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,10 +65,7 @@
|
|||
|
||||
|
||||
int
|
||||
BSIM4mDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
BSIM4mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
BSIM4model **model = (BSIM4model **) inModel;
|
||||
BSIM4model *modfast = (BSIM4model *) kill;
|
||||
|
|
@ -78,8 +75,7 @@ BSIM4mDelete(
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->BSIM4nextModel)) {
|
||||
if ((*model)->BSIM4modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->BSIM4modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -89,10 +85,12 @@ BSIM4mDelete(
|
|||
delgot:
|
||||
*oldmod = (*model)->BSIM4nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->BSIM4instances; here; here = here->BSIM4nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
|
||||
|
||||
int
|
||||
BSIM4v5mDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
BSIM4v5mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
BSIM4v5model **model = (BSIM4v5model **) inModel;
|
||||
BSIM4v5model *modfast = (BSIM4v5model *) kill;
|
||||
|
|
@ -28,8 +25,7 @@ BSIM4v5mDelete(
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->BSIM4v5nextModel)) {
|
||||
if ((*model)->BSIM4v5modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->BSIM4v5modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -39,10 +35,12 @@ BSIM4v5mDelete(
|
|||
delgot:
|
||||
*oldmod = (*model)->BSIM4v5nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->BSIM4v5instances; here; here = here->BSIM4v5nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,10 +17,7 @@
|
|||
|
||||
|
||||
int
|
||||
BSIM4v6mDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
BSIM4v6mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
BSIM4v6model **model = (BSIM4v6model **) inModel;
|
||||
BSIM4v6model *modfast = (BSIM4v6model *) kill;
|
||||
|
|
@ -30,8 +27,7 @@ BSIM4v6mDelete(
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->BSIM4v6nextModel)) {
|
||||
if ((*model)->BSIM4v6modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->BSIM4v6modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -41,10 +37,12 @@ BSIM4v6mDelete(
|
|||
delgot:
|
||||
*oldmod = (*model)->BSIM4v6nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->BSIM4v6instances; here; here = here->BSIM4v6nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,10 +17,7 @@
|
|||
|
||||
|
||||
int
|
||||
BSIM4v7mDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
BSIM4v7mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
BSIM4v7model **model = (BSIM4v7model **) inModel;
|
||||
BSIM4v7model *modfast = (BSIM4v7model *) kill;
|
||||
|
|
@ -30,8 +27,7 @@ BSIM4v7mDelete(
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->BSIM4v7nextModel)) {
|
||||
if ((*model)->BSIM4v7modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->BSIM4v7modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -41,10 +37,12 @@ BSIM4v7mDelete(
|
|||
delgot:
|
||||
*oldmod = (*model)->BSIM4v7nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->BSIM4v7instances; here; here = here->BSIM4v7nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@
|
|||
|
||||
|
||||
int
|
||||
B4SOImDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
B4SOImDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
B4SOImodel **model = (B4SOImodel **) inModel;
|
||||
B4SOImodel *modfast = (B4SOImodel *) kill;
|
||||
|
|
@ -34,8 +31,7 @@ B4SOImDelete(
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->B4SOInextModel)) {
|
||||
if ((*model)->B4SOImodName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->B4SOImodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
@ -45,10 +41,12 @@ B4SOImDelete(
|
|||
delgot:
|
||||
*oldmod = (*model)->B4SOInextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->B4SOIinstances; here; here = here->B4SOInextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ CAPmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->CAPnextModel)) {
|
||||
if ((*model)->CAPmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->CAPmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -31,10 +31,12 @@ CAPmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->CAPnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->CAPinstances; here; here = here->CAPnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ CCCSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->CCCSnextModel)) {
|
||||
if ((*model)->CCCSmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->CCCSmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ CCCSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->CCCSnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->CCCSinstances; here; here = here->CCCSnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ CCVSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->CCVSnextModel)) {
|
||||
if ((*model)->CCVSmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->CCVSmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ CCVSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->CCVSnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->CCVSinstances; here; here = here->CCVSnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ CPLmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->CPLnextModel)) {
|
||||
if ((*model)->CPLmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->CPLmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -32,10 +32,12 @@ CPLmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->CPLnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->CPLinstances; here; here = here->CPLnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ CSWmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->CSWnextModel)) {
|
||||
if ((*model)->CSWmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->CSWmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ CSWmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->CSWnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->CSWinstances; here; here = here->CSWnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ DIOmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->DIOnextModel)) {
|
||||
if ((*model)->DIOmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->DIOmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ DIOmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->DIOnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->DIOinstances; here; here = here->DIOnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ HFETAmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->HFETAnextModel)) {
|
||||
if ((*model)->HFETAmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->HFETAmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -34,10 +34,12 @@ HFETAmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->HFETAnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->HFETAinstances; here; here = here->HFETAnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ HFET2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->HFET2nextModel)) {
|
||||
if ((*model)->HFET2modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->HFET2modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -34,10 +34,12 @@ HFET2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->HFET2nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->HFET2instances; here; here = here->HFET2nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,10 +60,8 @@ to others."
|
|||
#include "ngspice/suffix.h"
|
||||
|
||||
|
||||
int HSM2mDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
int
|
||||
HSM2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
HSM2model **model = (HSM2model **) inModel;
|
||||
HSM2model *modfast = (HSM2model *) kill;
|
||||
|
|
@ -73,8 +71,8 @@ int HSM2mDelete(
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->HSM2nextModel)) {
|
||||
if ((*model)->HSM2modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->HSM2modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -82,12 +80,13 @@ int HSM2mDelete(
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->HSM2nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->HSM2instances;
|
||||
here; here = here->HSM2nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
for (here = (*model)->HSM2instances; here; here = here->HSM2nextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,10 +21,8 @@
|
|||
#include "ngspice/suffix.h"
|
||||
|
||||
|
||||
int HSMHVmDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
int
|
||||
HSMHVmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
HSMHVmodel **model = (HSMHVmodel **) inModel;
|
||||
HSMHVmodel *modfast = (HSMHVmodel *) kill;
|
||||
|
|
@ -34,8 +32,8 @@ int HSMHVmDelete(
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->HSMHVnextModel)) {
|
||||
if ((*model)->HSMHVmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->HSMHVmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -43,12 +41,13 @@ int HSMHVmDelete(
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->HSMHVnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->HSMHVinstances;
|
||||
here; here = here->HSMHVnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
for (here = (*model)->HSMHVinstances; here; here = here->HSMHVnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,10 +63,8 @@ June 2008 (revised October 2011)
|
|||
#include "ngspice/suffix.h"
|
||||
|
||||
|
||||
int HSMHV2mDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
int
|
||||
HSMHV2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
HSMHV2model **model = (HSMHV2model **) inModel;
|
||||
HSMHV2model *modfast = (HSMHV2model *) kill;
|
||||
|
|
@ -76,8 +74,8 @@ int HSMHV2mDelete(
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->HSMHV2nextModel)) {
|
||||
if ((*model)->HSMHV2modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->HSMHV2modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -85,12 +83,13 @@ int HSMHV2mDelete(
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->HSMHV2nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->HSMHV2instances;
|
||||
here; here = here->HSMHV2nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
for (here = (*model)->HSMHV2instances; here; here = here->HSMHV2nextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ INDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->INDnextModel)) {
|
||||
if ((*model)->INDmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->INDmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ INDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->INDnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->INDinstances; here; here = here->INDnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ MUTmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->MUTnextModel)) {
|
||||
if ((*model)->MUTmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->MUTmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -31,10 +31,12 @@ MUTmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->MUTnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->MUTinstances; here; here = here->MUTnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ ISRCmDelete(GENmodel **inModel, IFuid modname, GENmodel *fast)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->ISRCnextModel)) {
|
||||
if ((*model)->ISRCmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->ISRCmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ ISRCmDelete(GENmodel **inModel, IFuid modname, GENmodel *fast)
|
|||
delgot:
|
||||
*oldmod = (*model)->ISRCnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->ISRCinstances; here; here = here->ISRCnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ JFETmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->JFETnextModel)) {
|
||||
if ((*model)->JFETmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->JFETmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ JFETmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->JFETnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->JFETinstances; here; here = here->JFETnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ JFET2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->JFET2nextModel)) {
|
||||
if ((*model)->JFET2modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->JFET2modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -34,10 +34,12 @@ JFET2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->JFET2nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->JFET2instances; here; here = here->JFET2nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@ LTRAmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->LTRAnextModel)) {
|
||||
if ((*model)->LTRAmodName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->LTRAmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ MESmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->MESnextModel)) {
|
||||
if ((*model)->MESmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->MESmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ MESmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->MESnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->MESinstances; here; here = here->MESnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ MESAmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->MESAnextModel)) {
|
||||
if ((*model)->MESAmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->MESAmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -34,10 +34,12 @@ MESAmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->MESAnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->MESAinstances; here; here = here->MESAnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ MOS1mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->MOS1nextModel)) {
|
||||
if ((*model)->MOS1modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->MOS1modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ MOS1mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->MOS1nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->MOS1instances; here; here = here->MOS1nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ MOS2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->MOS2nextModel)) {
|
||||
if ((*model)->MOS2modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->MOS2modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ MOS2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->MOS2nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->MOS2instances; here; here = here->MOS2nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ MOS3mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->MOS3nextModel)) {
|
||||
if ((*model)->MOS3modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->MOS3modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ MOS3mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->MOS3nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->MOS3instances; here; here = here->MOS3nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ MOS9mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->MOS9nextModel)) {
|
||||
if ((*model)->MOS9modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->MOS9modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -31,10 +31,12 @@ MOS9mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->MOS9nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->MOS9instances; here; here = here->MOS9nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,8 +23,7 @@ NBJTmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->NBJTnextModel)) {
|
||||
if ((*model)->NBJTmodName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->NBJTmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,8 +23,7 @@ NBJT2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->NBJT2nextModel)) {
|
||||
if ((*model)->NBJT2modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->NBJT2modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,10 +10,7 @@ Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
|
|||
|
||||
|
||||
int
|
||||
NDEVmDelete(
|
||||
GENmodel **inModel,
|
||||
IFuid modname,
|
||||
GENmodel *kill)
|
||||
NDEVmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
NG_IGNORE(inModel);
|
||||
NG_IGNORE(modname);
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@ NUMDmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->NUMDnextModel)) {
|
||||
if ((*model)->NUMDmodName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->NUMDmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@ NUMD2mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->NUMD2nextModel)) {
|
||||
if ((*model)->NUMD2modName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->NUMD2modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,8 +23,7 @@ NUMOSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->NUMOSnextModel)) {
|
||||
if ((*model)->NUMOSmodName == modname ||
|
||||
(modfast && *model == modfast))
|
||||
if ((*model)->NUMOSmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ RESmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->RESnextModel)) {
|
||||
if ((*model)->RESmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->RESmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ RESmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->RESnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->RESinstances; here; here = here->RESnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ SOI3mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->SOI3nextModel)) {
|
||||
if ((*model)->SOI3modName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->SOI3modName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -47,10 +47,12 @@ SOI3mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->SOI3nextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->SOI3instances; here; here = here->SOI3nextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ SWmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->SWnextModel)) {
|
||||
if ((*model)->SWmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->SWmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ SWmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->SWnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->SWinstances; here; here = here->SWnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ TRAmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->TRAnextModel)) {
|
||||
if ((*model)->TRAmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->TRAmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ TRAmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->TRAnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->TRAinstances; here; here = here->TRAnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ TXLmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->TXLnextModel)) {
|
||||
if ((*model)->TXLmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->TXLmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -31,10 +31,12 @@ TXLmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->TXLnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->TXLinstances; here; here = here->TXLnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ URCmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->URCnextModel)) {
|
||||
if ((*model)->URCmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->URCmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ URCmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->URCnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->URCinstances; here; here = here->URCnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,15 +26,16 @@ VBICmDelete(GENmodel **inModels, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->VBICnextModel)) {
|
||||
if ((*model)->VBICmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->VBICmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
return E_NOMOD;
|
||||
|
||||
delgot:
|
||||
if ((*model)->VBICinstances) return E_NOTEMPTY;
|
||||
if ((*model)->VBICinstances)
|
||||
return E_NOTEMPTY;
|
||||
*oldmod = (*model)->VBICnextModel; /* cut deleted device out of list */
|
||||
FREE(*model);
|
||||
return OK;
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ VCCSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->VCCSnextModel)) {
|
||||
if ((*model)->VCCSmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->VCCSmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ VCCSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->VCCSnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->VCCSinstances; here; here = here->VCCSnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ VCVSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->VCVSnextModel)) {
|
||||
if ((*model)->VCVSmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->VCVSmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ VCVSmDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
|
|||
delgot:
|
||||
*oldmod = (*model)->VCVSnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->VCVSinstances; here; here = here->VCVSnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ VSRCmDelete(GENmodel **inModel, IFuid modname, GENmodel *fast)
|
|||
|
||||
oldmod = model;
|
||||
for (; *model; model = &((*model)->VSRCnextModel)) {
|
||||
if ((*model)->VSRCmodName == modname ||
|
||||
(modfast && *model == modfast)) goto delgot;
|
||||
if ((*model)->VSRCmodName == modname || (modfast && *model == modfast))
|
||||
goto delgot;
|
||||
oldmod = model;
|
||||
}
|
||||
|
||||
|
|
@ -30,10 +30,12 @@ VSRCmDelete(GENmodel **inModel, IFuid modname, GENmodel *fast)
|
|||
delgot:
|
||||
*oldmod = (*model)->VSRCnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->VSRCinstances; here; here = here->VSRCnextInstance) {
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
}
|
||||
if (prev) FREE(prev);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue