From cdc8fbd192f3fbfa535489f87a730b879cb434a4 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 8 Jan 2017 18:16:00 +0100 Subject: [PATCH] inpgmod.c, #3/15, line wraps --- src/spicelib/parser/inpgmod.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index c2318dc1c..2b7b43b87 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -49,7 +49,8 @@ create_model( CKTcircuit* ckt, INPmodel* modtmp, INPtables* tab ) /* not already defined, so create & give parameters */ error = ft_sim->newModel (ckt, modtmp->INPmodType, &(modtmp->INPmodfast), modtmp->INPmodName); - if (error) return error; + if (error) + return error; #ifdef CIDER /* Handle Numerical Models Differently */ @@ -59,7 +60,8 @@ create_model( CKTcircuit* ckt, INPmodel* modtmp, INPtables* tab ) modtmp->INPmodType == INPtypelook("NBJT2") || modtmp->INPmodType == INPtypelook("NUMOS") ) { error = INPparseNumMod( ckt, modtmp, tab, &err ); - if (error) return error; + if (error) + return error; } else { #endif @@ -154,7 +156,8 @@ parse_line( char* line, char* tokens[], int num_tokens, double values[], bool fo INPgetNetTok( &line, &token, 1 ); for ( i = 0; i < num_tokens; i++ ) - if ( strcmp( tokens[i], token ) == 0 ) get_index = i; + if ( strcmp( tokens[i], token ) == 0 ) + get_index = i; txfree(token); } @@ -244,7 +247,8 @@ INPgetModBin( CKTcircuit* ckt, char* name, INPmodel** model, INPtables* tab, cha /* create unless model is already defined */ if ( !modtmp->INPmodfast ) { error = create_model( ckt, modtmp, tab ); - if ( error ) return NULL; + if ( error ) + return NULL; } *model = modtmp; return NULL; @@ -253,7 +257,8 @@ INPgetModBin( CKTcircuit* ckt, char* name, INPmodel** model, INPtables* tab, cha return NULL; } -char *INPgetMod(CKTcircuit *ckt, char *name, INPmodel ** model, INPtables * tab) +char * +INPgetMod(CKTcircuit *ckt, char *name, INPmodel ** model, INPtables * tab) { INPmodel *modtmp; char *err = NULL;