Browse Source

* correct initialisation of rec_tguid when loading the system unit

florian 24 years ago
parent
commit
295804263d
1 changed files with 11 additions and 2 deletions
  1. 11 2
      compiler/symdef.pas

+ 11 - 2
compiler/symdef.pas

@@ -2820,7 +2820,7 @@ implementation
          read_member:=true;
          read_member:=true;
          symtable:=new(pstoredsymtable,loadas(recordsymtable));
          symtable:=new(pstoredsymtable,loadas(recordsymtable));
          read_member:=oldread_member;
          read_member:=oldread_member;
-         symtable^.defowner := @self;
+         symtable^.defowner:=@self;
       end;
       end;
 
 
 
 
@@ -2882,6 +2882,12 @@ implementation
          { now dereference the definitions }
          { now dereference the definitions }
          pstoredsymtable(symtable)^.deref;
          pstoredsymtable(symtable)^.deref;
          aktrecordsymtable:=oldrecsyms;
          aktrecordsymtable:=oldrecsyms;
+         { assign TGUID? }
+         if not(assigned(rec_tguid)) and
+           (upper(typename)='TGUID') and
+           assigned(owner) and
+           (owner^.name^='SYSTEM') then
+           rec_tguid:=@self;
       end;
       end;
 
 
 
 
@@ -5620,7 +5626,10 @@ Const local_symtable_index : longint = $8001;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.22  2001-03-22 00:10:58  florian
+  Revision 1.23  2001-03-22 23:28:39  florian
+    * correct initialisation of rec_tguid when loading the system unit
+
+  Revision 1.22  2001/03/22 00:10:58  florian
     + basic variant type support in the compiler
     + basic variant type support in the compiler
 
 
   Revision 1.21  2001/03/11 22:58:50  peter
   Revision 1.21  2001/03/11 22:58:50  peter