Browse Source

* tp procvar support for ifn,whilerepeatn

git-svn-id: trunk@707 -
peter 20 years ago
parent
commit
e64cc2fbbd
1 changed files with 9 additions and 1 deletions
  1. 9 1
      compiler/nflw.pas

+ 9 - 1
compiler/nflw.pas

@@ -227,7 +227,7 @@ implementation
       globtype,systems,
       globtype,systems,
       cutils,verbose,globals,
       cutils,verbose,globals,
       symconst,paramgr,defcmp,defutil,htypechk,pass_1,
       symconst,paramgr,defcmp,defutil,htypechk,pass_1,
-      ncal,nadd,ncon,nmem,nld,ncnv,nbas,cgobj,
+      ncal,nadd,ncon,nmem,nld,ncnv,nbas,cgobj,nutils,
     {$ifdef state_tracking}
     {$ifdef state_tracking}
       nstate,
       nstate,
     {$endif}
     {$endif}
@@ -364,6 +364,10 @@ implementation
          resulttype:=voidtype;
          resulttype:=voidtype;
 
 
          resulttypepass(left);
          resulttypepass(left);
+
+         { tp procvar support }
+         maybe_call_procvar(left,true);
+
          {A not node can be removed.}
          {A not node can be removed.}
          if left.nodetype=notn then
          if left.nodetype=notn then
            begin
            begin
@@ -545,6 +549,10 @@ implementation
          resulttype:=voidtype;
          resulttype:=voidtype;
 
 
          resulttypepass(left);
          resulttypepass(left);
+
+         { tp procvar support }
+         maybe_call_procvar(left,true);
+
          { if path }
          { if path }
          if assigned(right) then
          if assigned(right) then
            resulttypepass(right);
            resulttypepass(right);