devices/**/XXXmdel.c, cleanup braces

This commit is contained in:
rlar 2018-01-05 00:06:36 +01:00
parent eaa1fb7521
commit bee207ccd9
12 changed files with 48 additions and 48 deletions

View File

@ -26,8 +26,8 @@ BSIM3instance *prev = NULL;
BSIM3model **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->BSIM3nextModel))
{ if ((*model)->BSIM3modName == modname ||
for (; *model ; model = &((*model)->BSIM3nextModel)) {
if ((*model)->BSIM3modName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -36,8 +36,8 @@ BSIM3model **oldmod;
delgot:
*oldmod = (*model)->BSIM3nextModel; /* cut deleted device out of list */
for (here = (*model)->BSIM3instances; here; here = here->BSIM3nextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->BSIM3instances; here; here = here->BSIM3nextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -26,8 +26,8 @@ B3SOIDDinstance *prev = NULL;
B3SOIDDmodel **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->B3SOIDDnextModel))
{ if ((*model)->B3SOIDDmodName == modname ||
for (; *model ; model = &((*model)->B3SOIDDnextModel)) {
if ((*model)->B3SOIDDmodName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -36,8 +36,8 @@ B3SOIDDmodel **oldmod;
delgot:
*oldmod = (*model)->B3SOIDDnextModel; /* cut deleted device out of list */
for (here = (*model)->B3SOIDDinstances; here; here = here->B3SOIDDnextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->B3SOIDDinstances; here; here = here->B3SOIDDnextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -25,8 +25,8 @@ B3SOIFDinstance *prev = NULL;
B3SOIFDmodel **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->B3SOIFDnextModel))
{ if ((*model)->B3SOIFDmodName == modname ||
for (; *model ; model = &((*model)->B3SOIFDnextModel)) {
if ((*model)->B3SOIFDmodName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -35,8 +35,8 @@ B3SOIFDmodel **oldmod;
delgot:
*oldmod = (*model)->B3SOIFDnextModel; /* cut deleted device out of list */
for (here = (*model)->B3SOIFDinstances; here; here = here->B3SOIFDnextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->B3SOIFDinstances; here; here = here->B3SOIFDnextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -25,8 +25,8 @@ B3SOIPDinstance *prev = NULL;
B3SOIPDmodel **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->B3SOIPDnextModel))
{ if ((*model)->B3SOIPDmodName == modname ||
for (; *model ; model = &((*model)->B3SOIPDnextModel)) {
if ((*model)->B3SOIPDmodName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -35,8 +35,8 @@ B3SOIPDmodel **oldmod;
delgot:
*oldmod = (*model)->B3SOIPDnextModel; /* cut deleted device out of list */
for (here = (*model)->B3SOIPDinstances; here; here = here->B3SOIPDnextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->B3SOIPDinstances; here; here = here->B3SOIPDnextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -19,8 +19,8 @@ BSIM3v0instance *prev = NULL;
BSIM3v0model **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->BSIM3v0nextModel))
{ if ((*model)->BSIM3v0modName == modname ||
for (; *model ; model = &((*model)->BSIM3v0nextModel)) {
if ((*model)->BSIM3v0modName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -29,8 +29,8 @@ BSIM3v0model **oldmod;
delgot:
*oldmod = (*model)->BSIM3v0nextModel; /* cut deleted device out of list */
for (here = (*model)->BSIM3v0instances; here; here = here->BSIM3v0nextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->BSIM3v0instances; here; here = here->BSIM3v0nextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -25,8 +25,8 @@ BSIM3v1instance *prev = NULL;
BSIM3v1model **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->BSIM3v1nextModel))
{ if ((*model)->BSIM3v1modName == modname ||
for (; *model ; model = &((*model)->BSIM3v1nextModel)) {
if ((*model)->BSIM3v1modName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -35,8 +35,8 @@ BSIM3v1model **oldmod;
delgot:
*oldmod = (*model)->BSIM3v1nextModel; /* cut deleted device out of list */
for (here = (*model)->BSIM3v1instances; here; here = here->BSIM3v1nextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->BSIM3v1instances; here; here = here->BSIM3v1nextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -24,8 +24,8 @@ BSIM3v32instance *prev = NULL;
BSIM3v32model **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->BSIM3v32nextModel))
{ if ((*model)->BSIM3v32modName == modname ||
for (; *model ; model = &((*model)->BSIM3v32nextModel)) {
if ((*model)->BSIM3v32modName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -34,8 +34,8 @@ BSIM3v32model **oldmod;
delgot:
*oldmod = (*model)->BSIM3v32nextModel; /* cut deleted device out of list */
for (here = (*model)->BSIM3v32instances; here; here = here->BSIM3v32nextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->BSIM3v32instances; here; here = here->BSIM3v32nextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -76,8 +76,8 @@ BSIM4instance *prev = NULL;
BSIM4model **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->BSIM4nextModel))
{ if ((*model)->BSIM4modName == modname ||
for (; *model ; model = &((*model)->BSIM4nextModel)) {
if ((*model)->BSIM4modName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -86,8 +86,8 @@ BSIM4model **oldmod;
delgot:
*oldmod = (*model)->BSIM4nextModel; /* cut deleted device out of list */
for (here = (*model)->BSIM4instances; here; here = here->BSIM4nextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->BSIM4instances; here; here = here->BSIM4nextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -26,8 +26,8 @@ BSIM4v5instance *prev = NULL;
BSIM4v5model **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->BSIM4v5nextModel))
{ if ((*model)->BSIM4v5modName == modname ||
for (; *model ; model = &((*model)->BSIM4v5nextModel)) {
if ((*model)->BSIM4v5modName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -36,8 +36,8 @@ BSIM4v5model **oldmod;
delgot:
*oldmod = (*model)->BSIM4v5nextModel; /* cut deleted device out of list */
for (here = (*model)->BSIM4v5instances; here; here = here->BSIM4v5nextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->BSIM4v5instances; here; here = here->BSIM4v5nextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -28,8 +28,8 @@ BSIM4v6instance *prev = NULL;
BSIM4v6model **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->BSIM4v6nextModel))
{ if ((*model)->BSIM4v6modName == modname ||
for (; *model ; model = &((*model)->BSIM4v6nextModel)) {
if ((*model)->BSIM4v6modName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -38,8 +38,8 @@ BSIM4v6model **oldmod;
delgot:
*oldmod = (*model)->BSIM4v6nextModel; /* cut deleted device out of list */
for (here = (*model)->BSIM4v6instances; here; here = here->BSIM4v6nextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->BSIM4v6instances; here; here = here->BSIM4v6nextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -28,8 +28,8 @@ BSIM4v7instance *prev = NULL;
BSIM4v7model **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->BSIM4v7nextModel))
{ if ((*model)->BSIM4v7modName == modname ||
for (; *model ; model = &((*model)->BSIM4v7nextModel)) {
if ((*model)->BSIM4v7modName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -38,8 +38,8 @@ BSIM4v7model **oldmod;
delgot:
*oldmod = (*model)->BSIM4v7nextModel; /* cut deleted device out of list */
for (here = (*model)->BSIM4v7instances; here; here = here->BSIM4v7nextInstance)
{ if(prev) FREE(prev);
for (here = (*model)->BSIM4v7instances; here; here = here->BSIM4v7nextInstance) {
if(prev) FREE(prev);
prev = here;
}
if(prev) FREE(prev);

View File

@ -33,8 +33,8 @@ B4SOIinstance *prev = NULL;
B4SOImodel **oldmod;
oldmod = model;
for (; *model ; model = &((*model)->B4SOInextModel))
{ if ((*model)->B4SOImodName == modname ||
for (; *model ; model = &((*model)->B4SOInextModel)) {
if ((*model)->B4SOImodName == modname ||
(modfast && *model == modfast))
goto delgot;
oldmod = model;
@ -43,8 +43,8 @@ B4SOImodel **oldmod;
delgot:
*oldmod = (*model)->B4SOInextModel; /* cut deleted device out of list */
for (here = (*model)->B4SOIinstances; here; here = here->B4SOInextInstance)
{
for (here = (*model)->B4SOIinstances; here; here = here->B4SOInextInstance) {
if(prev) FREE(prev);
prev = here;
}