Browse Source

* Replace object with record where possible

Michaël Van Canneyt 1 năm trước cách đây
mục cha
commit
1e9e533e6c

+ 1 - 0
compiler/fpcdefs.inc

@@ -1,5 +1,6 @@
 {$mode objfpc}
 {$mode objfpc}
 {$asmmode default}
 {$asmmode default}
+{$modeswitch advancedrecords}
 {$H-}
 {$H-}
 {$goto on}
 {$goto on}
 {$ifndef DISABLE_INLINE}
 {$ifndef DISABLE_INLINE}

+ 1 - 1
compiler/nbas.pas

@@ -219,7 +219,7 @@ interface
        { already been disposed and to make sure the coherency between temps and     }
        { already been disposed and to make sure the coherency between temps and     }
        { temp references is kept after a getcopy                                    }
        { temp references is kept after a getcopy                                    }
        ptempinfo = ^ttempinfo;
        ptempinfo = ^ttempinfo;
-       ttempinfo = object
+       ttempinfo = record
         private
         private
          flags                      : ttempinfoflags;
          flags                      : ttempinfoflags;
         public
         public

+ 1 - 1
compiler/symbase.pas

@@ -42,7 +42,7 @@ interface
 
 
        { THashedIDString }
        { THashedIDString }
 
 
-       THashedIDString=object
+       THashedIDString = record
        private
        private
          FId   : TIDString;
          FId   : TIDString;
          FHash : Longword;
          FHash : Longword;

+ 1 - 1
compiler/symtype.pas

@@ -161,7 +161,7 @@ interface
                    TDeref
                    TDeref
 ************************************************}
 ************************************************}
 
 
-      tderef = object
+      tderef = record
         dataidx : longint;
         dataidx : longint;
         procedure reset;
         procedure reset;
         procedure build(s:TObject);
         procedure build(s:TObject);