Răsfoiți Sursa

* avoid empty symbols

pierre 26 ani în urmă
părinte
comite
20ef631b73
1 a modificat fișierele cu 12 adăugiri și 6 ștergeri
  1. 12 6
      compiler/browcol.pas

+ 12 - 6
compiler/browcol.pas

@@ -728,6 +728,7 @@ procedure CreateBrowserCol;
      end;}
      end;}
     for I:=1 to symcount do
     for I:=1 to symcount do
       begin
       begin
+        Symbol:=nil;
         Sym:=Table^.GetsymNr(I);
         Sym:=Table^.GetsymNr(I);
         if Sym=nil then Continue;
         if Sym=nil then Continue;
         ParamCount:=0;
         ParamCount:=0;
@@ -822,8 +823,11 @@ procedure CreateBrowserCol;
             end;
             end;
         end;
         end;
         Ref:=Sym^.defref;
         Ref:=Sym^.defref;
-        while Assigned(Symbol) and assigned(Ref) do
-          begin
+        If assigned(Symbol) then
+         begin
+          Owner^.Insert(Symbol);
+          while Assigned(Symbol) and assigned(Ref) do
+           begin
             inputfile:=get_source_file(ref^.moduleindex,ref^.posinfo.fileindex);
             inputfile:=get_source_file(ref^.moduleindex,ref^.posinfo.fileindex);
             if Assigned(inputfile) and Assigned(inputfile^.name) then
             if Assigned(inputfile) and Assigned(inputfile^.name) then
               begin
               begin
@@ -832,9 +836,8 @@ procedure CreateBrowserCol;
                 Symbol^.References^.Insert(Reference);
                 Symbol^.References^.Insert(Reference);
               end;
               end;
             Ref:=Ref^.nextref;
             Ref:=Ref^.nextref;
-          end;
-        if Assigned(Symbol) then
-        Owner^.Insert(Symbol);
+           end;
+         end;
       end;
       end;
   end;
   end;
 
 
@@ -900,7 +903,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.9  1999-03-24 23:16:44  peter
+  Revision 1.10  1999-03-26 11:39:25  pierre
+   * avoid empty symbols
+
+  Revision 1.9  1999/03/24 23:16:44  peter
     * fixed bugs 212,222,225,227,229,231,233
     * fixed bugs 212,222,225,227,229,231,233
 
 
   Revision 1.8  1999/03/03 01:38:11  pierre
   Revision 1.8  1999/03/03 01:38:11  pierre