Added a local extension: procedure constants

This commit is contained in:
ceriel
1989-03-03 16:13:45 +00:00
parent e8aab09b4b
commit a1b4e28760
7 changed files with 25 additions and 10 deletions

View File

@@ -324,6 +324,10 @@ ChkExLinkOrName(expp)
expp->nd_class = Set;
inc_refcount(expp->nd_set);
}
else if (df->df_type->tp_fund == T_PROCEDURE) {
/* for procedure constants */
expp->nd_class = Def;
}
else expp->nd_class = Value;
}
@@ -686,7 +690,7 @@ ChkCall(expp)
return ChkCast(expp);
}
if (IsProcCall(left) || left->nd_type == error_type) {
if (IsProc(left) || left->nd_type == error_type) {
/* A procedure call.
It may also be a call to a standard procedure
*/