Browse Source

* allow recursive calls again in assembler procedure

Jonas Maebe 24 years ago
parent
commit
816cfa08b3
1 changed files with 6 additions and 1 deletions
  1. 6 1
      compiler/pstatmnt.pas

+ 6 - 1
compiler/pstatmnt.pas

@@ -1104,7 +1104,9 @@ implementation
           if not is_void(aktprocdef.rettype.def) then
           if not is_void(aktprocdef.rettype.def) then
             begin
             begin
               { insert in local symtable }
               { insert in local symtable }
+              { but with another name, so that recursive calls are possible }
               symtablestack.insert(aktprocdef.funcretsym);
               symtablestack.insert(aktprocdef.funcretsym);
+              symtablestack.rename(aktprocdef.funcretsym.name,'$result');
             end;
             end;
           { force the asm statement }
           { force the asm statement }
             if token<>_ASM then
             if token<>_ASM then
@@ -1119,7 +1121,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.43  2001-11-02 22:58:05  peter
+  Revision 1.44  2001-11-09 10:06:56  jonas
+    * allow recursive calls again in assembler procedure
+
+  Revision 1.43  2001/11/02 22:58:05  peter
     * procsym definition rewrite
     * procsym definition rewrite
 
 
   Revision 1.42  2001/10/26 22:36:42  florian
   Revision 1.42  2001/10/26 22:36:42  florian