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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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