From 8d93511a96867a05cec13c6c6836a217d0beac0f Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 30 Oct 2017 16:32:27 +0100 Subject: [PATCH] struct card, #1/6, minor cleanup --- src/frontend/inp.c | 6 +++--- src/include/ngspice/inpdefs.h | 2 +- src/xspice/enh/enhtrans.c | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index c558cdf67..aa72d05a2 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -274,9 +274,9 @@ inp_list(FILE *file, struct line *deck, struct line *extras, int type) /* * Free memory used by a line. - * If recurse is TRUE then recursively free all lines linked via the li_next field. + * If recurse is TRUE then recursively free all lines linked via the ->li_next field. * If recurse is FALSE free only this line. - * All lines linked via the li_actual field are always recursivly freed. + * All lines linked via the ->li_actual field are always recursivly freed. * SJB - 22nd May 2001 */ void @@ -916,7 +916,7 @@ inp_dodeck( ft_curckt->FTEstats->FTESTATdeckNumLines = 0; /*---------------------------------------------------- Now run through the deck and look to see if there are - errors on any line (message contained in li_error). + errors on any line (message contained in ->li_error). Error messages have been generated either by writing directly to ->li_error from a struct line or to diff --git a/src/include/ngspice/inpdefs.h b/src/include/ngspice/inpdefs.h index b4623f77b..de7d808a5 100644 --- a/src/include/ngspice/inpdefs.h +++ b/src/include/ngspice/inpdefs.h @@ -61,7 +61,7 @@ struct INPtables{ GENmodel *defZmod; }; -struct card{ +struct card { int linenum; int linenum_orig; char *line; diff --git a/src/xspice/enh/enhtrans.c b/src/xspice/enh/enhtrans.c index de5b4eee6..8c9f0bf9e 100644 --- a/src/xspice/enh/enhtrans.c +++ b/src/xspice/enh/enhtrans.c @@ -79,7 +79,8 @@ to new polynomial controlled source code model syntax. /* out the old dependent source. */ /* It returns (a pointer to) the processed deck. */ /*---------------------------------------------------------------------*/ -struct line * ENHtranslate_poly( +struct line * +ENHtranslate_poly( struct line *deck) { /* Linked list of lines in input deck */ struct line *d; struct line *l1;