2
0
Эх сурвалжийг харах

* reset some variables which could be in an illegal state after an error, this is mainly important for the ide

git-svn-id: trunk@1726 -
florian 20 жил өмнө
parent
commit
a27b87043f
1 өөрчлөгдсөн 7 нэмэгдсэн , 0 устгасан
  1. 7 0
      compiler/parser.pas

+ 7 - 0
compiler/parser.pas

@@ -395,6 +395,13 @@ implementation
             oldaktfilepos:=aktfilepos;
             oldaktmodeswitches:=aktmodeswitches;
           end;
+       { reset parser, a previous fatal error could have left these variables in an unreliable state, this is
+         important for the IDE }
+         afterassignment:=false;
+         in_args:=false;
+         got_addrn:=false;
+         getprocvardef:=nil;
+
        { show info }
          Message1(parser_i_compiling,filename);