struct card, #1/6, minor cleanup

This commit is contained in:
rlar 2017-10-30 16:32:27 +01:00
parent 121a46f9cb
commit 8d93511a96
3 changed files with 6 additions and 5 deletions

View File

@ -274,9 +274,9 @@ inp_list(FILE *file, struct line *deck, struct line *extras, int type)
/* /*
* Free memory used by a line. * 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. * 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 * SJB - 22nd May 2001
*/ */
void void
@ -916,7 +916,7 @@ inp_dodeck(
ft_curckt->FTEstats->FTESTATdeckNumLines = 0; ft_curckt->FTEstats->FTESTATdeckNumLines = 0;
/*---------------------------------------------------- /*----------------------------------------------------
Now run through the deck and look to see if there are 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 Error messages have been generated either by writing
directly to ->li_error from a struct line or to directly to ->li_error from a struct line or to

View File

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

View File

@ -79,7 +79,8 @@ to new polynomial controlled source code model syntax.
/* out the old dependent source. */ /* out the old dependent source. */
/* It returns (a pointer to) the processed deck. */ /* 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 *deck) { /* Linked list of lines in input deck */
struct line *d; struct line *d;
struct line *l1; struct line *l1;