struct line, add array of short, for nesting depth 10

This commit is contained in:
h_vogt 2016-04-23 16:59:09 +02:00 committed by rlar
parent f4e93da7b4
commit d0cea70e88
2 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@ struct line {
char *li_error; char *li_error;
struct line *li_next; struct line *li_next;
struct line *li_actual; struct line *li_actual;
unsigned short level[NESTINGDEPTH];
} ; } ;
/* Listing types. */ /* Listing types. */

View File

@ -17,6 +17,7 @@ typedef struct INPtables INPtables;
typedef struct card card; typedef struct card card;
typedef struct INPmodel INPmodel; typedef struct INPmodel INPmodel;
#define NESTINGDEPTH 10
struct INPtab { struct INPtab {
char *t_ent; char *t_ent;
@ -68,6 +69,7 @@ struct card{
char *error; char *error;
card *nextcard; card *nextcard;
card *actualLine; card *actualLine;
unsigned short level[NESTINGDEPTH];
}; };
/* structure used to save models in after they are read during pass 1 */ /* structure used to save models in after they are read during pass 1 */