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