From 0245f304ffdc036522a0fe6d17df2b8909ffc416 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 8 Jan 2017 18:25:14 +0100 Subject: [PATCH] inpgmod.c, #13/15, shortcut #if CIDER --- src/spicelib/parser/inpgmod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index ed02e7311..bf02360f0 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -62,7 +62,9 @@ create_model( CKTcircuit* ckt, INPmodel* modtmp, INPtables* tab ) error = INPparseNumMod( ckt, modtmp, tab, &err ); if (error) return error; - } else { + modtmp->INPmodLine->error = err; + return 0; + } #endif /* parameter isolation, identification, binding */ @@ -122,9 +124,7 @@ create_model( CKTcircuit* ckt, INPmodel* modtmp, INPtables* tab ) } FREE(parm); } -#ifdef CIDER - } -#endif + modtmp->INPmodLine->error = err; return 0;