newer version with some bug fixes

This commit is contained in:
ceriel
1986-10-22 15:38:24 +00:00
parent aac1207beb
commit ca44bfc681
11 changed files with 106 additions and 59 deletions

View File

@@ -40,7 +40,8 @@ gen_anon_idf()
return str2idf(buff, 1);
}
id_not_declared(id)
not_declared(what, id, where)
char *what, *where;
register struct node *id;
{
/* The identifier "id" is not declared. If it is not generated,
@@ -48,6 +49,9 @@ id_not_declared(id)
*/
if (!is_anon_idf(id->nd_IDF)) {
node_error(id,
"identifier \"%s\" not declared", id->nd_IDF->id_text);
"%s \"%s\" not declared%s",
what,
id->nd_IDF->id_text,
where);
}
}