devices/**/XXXmdel.c, cleanup instance loop
This commit is contained in:
parent
12dfa082ce
commit
07fa2411ea
|
|
@ -13,7 +13,6 @@ int
|
|||
ASRCmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -29,15 +28,13 @@ ASRCmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(((ASRCinstance*)here)->ASRCacValues);
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
B1mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ B1mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
B2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ B2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ int
|
|||
BSIM3mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -32,13 +31,11 @@ BSIM3mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ int
|
|||
B3SOIDDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -35,13 +34,11 @@ B3SOIDDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ int
|
|||
B3SOIFDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -34,13 +33,11 @@ B3SOIFDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ int
|
|||
B3SOIPDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -34,13 +33,11 @@ B3SOIPDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ int
|
|||
BSIM3v0mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -28,13 +27,11 @@ BSIM3v0mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ int
|
|||
BSIM3v1mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -34,13 +33,11 @@ BSIM3v1mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ int
|
|||
BSIM3v32mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -33,13 +32,11 @@ BSIM3v32mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@ int
|
|||
BSIM4mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -82,13 +81,11 @@ BSIM4mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ int
|
|||
BSIM4v5mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -32,13 +31,11 @@ BSIM4v5mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ int
|
|||
BSIM4v6mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -34,13 +33,11 @@ BSIM4v6mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ int
|
|||
BSIM4v7mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -34,13 +33,11 @@ BSIM4v7mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ int
|
|||
B4SOImDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -38,13 +37,11 @@ B4SOImDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ int
|
|||
CAPmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -28,13 +27,11 @@ CAPmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
CCCSmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ CCCSmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
CCVSmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ CCVSmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ int
|
|||
CPLmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -29,13 +28,11 @@ CPLmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
CSWmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ CSWmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
DIOmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ DIOmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ int
|
|||
HFETAmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -31,13 +30,11 @@ HFETAmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ int
|
|||
HFET2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -31,13 +30,11 @@ HFET2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ int
|
|||
HSM2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -78,13 +77,11 @@ HSM2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ int
|
|||
HSMHVmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -39,13 +38,11 @@ HSMHVmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ int
|
|||
HSMHV2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -81,13 +80,11 @@ HSMHV2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
INDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ INDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ int
|
|||
MUTmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -28,13 +27,11 @@ MUTmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
ISRCmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ ISRCmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
JFETmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ JFETmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ int
|
|||
JFET2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -31,13 +30,11 @@ JFET2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
LTRAmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ LTRAmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
MESmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ MESmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ int
|
|||
MESAmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -31,13 +30,11 @@ MESAmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
MOS1mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ MOS1mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
MOS2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ MOS2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
MOS3mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ MOS3mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ int
|
|||
MOS9mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -28,13 +27,11 @@ MOS9mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
NUMDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ NUMDmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
NUMD2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ NUMD2mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
RESmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ RESmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ int
|
|||
SOI3mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -44,13 +43,11 @@ SOI3mDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
SWmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ SWmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
TRAmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ TRAmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ int
|
|||
TXLmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -28,13 +27,11 @@ TXLmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
URCmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ URCmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
VCCSmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ VCCSmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
VCVSmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ VCVSmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ int
|
|||
VSRCmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
||||
{
|
||||
GENinstance *here;
|
||||
GENinstance *prev = NULL;
|
||||
GENmodel **oldmod;
|
||||
|
||||
oldmod = model;
|
||||
|
|
@ -27,13 +26,11 @@ VSRCmDelete(GENmodel **model, IFuid modname, GENmodel *kill)
|
|||
|
||||
delgot:
|
||||
*oldmod = (*model)->GENnextModel; /* cut deleted device out of list */
|
||||
for (here = (*model)->GENinstances; here; here = here->GENnextInstance) {
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
prev = here;
|
||||
for (here = (*model)->GENinstances; here;) {
|
||||
GENinstance *next_instance = here->GENnextInstance;
|
||||
FREE(here);
|
||||
here = next_instance;
|
||||
}
|
||||
if (prev)
|
||||
FREE(prev);
|
||||
FREE(*model);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue