Pārlūkot izejas kodu

Corrected problem in reading symbol table: t14=15, t15=16 did not work properly

ceriel 32 gadi atpakaļ
vecāks
revīzija
3eb6c6b7d9
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 3 0
      util/grind/db_symtab.g
  2. 1 1
      util/grind/type.c

+ 3 - 0
util/grind/db_symtab.g

@@ -263,6 +263,9 @@ type_name(p_type *t; p_symbol sy;)
 	'='			
 	type(p, type_index, sy)
   |
+				{ if (*t && ! *p) *p = *t; 
+				  else if (*t) **t = **p;
+				}
   ]
 				{ if (*p == 0) *p = new_type();
 				  *t = *p;

+ 1 - 1
util/grind/type.c

@@ -327,7 +327,7 @@ clean_tp_tab()
 				p_type p = list_row[i].row[j/NINCR][j%NINCR];
 				if (p && p->ty_class == 0) {
 					error("%s: incomplete type (%d,%d)",
-					      listfile->sy_idf->id_text,
+					      FileScope->sc_definedby->sy_idf->id_text,
 					      i,
 					      j);
 				}