Browse Source

struct card, #1/6, minor cleanup

pre-master-46
rlar 9 years ago
parent
commit
8d93511a96
  1. 6
      src/frontend/inp.c
  2. 2
      src/include/ngspice/inpdefs.h
  3. 3
      src/xspice/enh/enhtrans.c

6
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

2
src/include/ngspice/inpdefs.h

@ -61,7 +61,7 @@ struct INPtables{
GENmodel *defZmod;
};
struct card{
struct card {
int linenum;
int linenum_orig;
char *line;

3
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;

Loading…
Cancel
Save