mifsetup.c: use astyle to beautify the code for better readability

This commit is contained in:
Holger Vogt 2018-08-27 10:54:54 +02:00
parent e7bcc09bb0
commit c87dd6161f
1 changed files with 54 additions and 56 deletions

View File

@ -151,8 +151,7 @@ MIFsetup(
if(! param_info->is_array) { if(! param_info->is_array) {
model->param[i]->size = 1; model->param[i]->size = 1;
model->param[i]->element = TMALLOC(Mif_Value_t, 1); model->param[i]->element = TMALLOC(Mif_Value_t, 1);
} } else { /* parameter is an array */
else { /* parameter is an array */
/* MIF_INP2A() parser assures that there is an associated array connection */ /* MIF_INP2A() parser assures that there is an associated array connection */
/* Since several instances may share this model, we have to create an array */ /* Since several instances may share this model, we have to create an array */
/* big enough for the instance with the biggest connection array */ /* big enough for the instance with the biggest connection array */
@ -455,8 +454,7 @@ MIFunsetup(GENmodel *inModel,CKTcircuit *ckt)
for (model = (MIFmodel *)inModel; model != NULL; for (model = (MIFmodel *)inModel; model != NULL;
model = MIFnextModel(model)) model = MIFnextModel(model)) {
{
for(here = MIFinstances(model); here != NULL; here = MIFnextInstance(here)) { for(here = MIFinstances(model); here != NULL; here = MIFnextInstance(here)) {
/* Skip these expensive allocations if the instance is not analog */ /* Skip these expensive allocations if the instance is not analog */
if(! here->analog) if(! here->analog)