Prechádzať zdrojové kódy

+ reset in InitSymtable some global vars to avoid trouble with the ide

florian 20 rokov pred
rodič
commit
b068bfbfc4
1 zmenil súbory, kde vykonal 24 pridanie a 16 odobranie
  1. 24 16
      compiler/symtable.pas

+ 24 - 16
compiler/symtable.pas

@@ -2427,26 +2427,31 @@ implementation
 
 
    procedure InitSymtable;
    procedure InitSymtable;
      begin
      begin
-        { Reset symbolstack }
-        registerdef:=false;
-        symtablestack:=nil;
-        macrosymtablestack:=nil;
-        systemunit:=nil;
+       { Reset symbolstack }
+       registerdef:=false;
+       symtablestack:=nil;
+       macrosymtablestack:=nil;
+       systemunit:=nil;
 {$ifdef GDB}
 {$ifdef GDB}
-        globaltypecount:=1;
-        pglobaltypecount:=@globaltypecount;
+       globaltypecount:=1;
+       pglobaltypecount:=@globaltypecount;
 {$endif GDB}
 {$endif GDB}
-        { create error syms and def }
-        generrorsym:=terrorsym.create;
-        generrortype.setdef(terrordef.create);
+       { create error syms and def }
+       generrorsym:=terrorsym.create;
+       generrortype.setdef(terrordef.create);
 {$ifdef UNITALIASES}
 {$ifdef UNITALIASES}
-        { unit aliases }
-        unitaliases:=tdictionary.create;
+       { unit aliases }
+       unitaliases:=tdictionary.create;
 {$endif}
 {$endif}
-        initialmacrosymtable:= tmacrosymtable.create(false);
-        macrosymtablestack:= initialmacrosymtable;
+       initialmacrosymtable:= tmacrosymtable.create(false);
+       macrosymtablestack:= initialmacrosymtable;
 
 
-        dupnr:=0;
+       { set some global vars to nil, might be important for the ide }
+       class_tobject:=nil;
+       interface_iunknown:=nil;
+       rec_tguid:=nil;
+
+       dupnr:=0;
      end;
      end;
 
 
 
 
@@ -2463,7 +2468,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.171  2005-02-14 17:13:08  peter
+  Revision 1.172  2005-03-13 12:15:44  florian
+    + reset in InitSymtable some global vars to avoid trouble with the ide
+
+  Revision 1.171  2005/02/14 17:13:08  peter
     * truncate log
     * truncate log
 
 
   Revision 1.170  2005/01/20 16:38:45  peter
   Revision 1.170  2005/01/20 16:38:45  peter