fixed bug with undefined structs

ceriel changed debugging information
This commit is contained in:
eck
1990-10-19 11:21:43 +00:00
parent 7e58923415
commit c3f305bea1
4 changed files with 49 additions and 14 deletions

View File

@@ -59,9 +59,18 @@ stack_idf(idf, stl)
struct idf *idf;
register struct stack_level *stl;
{
/* The identifier idf is inserted in the stack on level stl.
/* The identifier idf is inserted in the stack on level stl,
but only if it is not already present at this level.
*/
register struct stack_entry *se = new_stack_entry();
register struct stack_entry *se;
se = stl->sl_entry;
while (se) {
if (se->se_idf == idf) return;
se = se->next;
}
se = new_stack_entry();
/* link it into the stack level */
se->next = stl->sl_entry;