소스 검색

* Replace object with record where possible

Michaël Van Canneyt 1 년 전
부모
커밋
1e9e533e6c
4개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 0
      compiler/fpcdefs.inc
  2. 1 1
      compiler/nbas.pas
  3. 1 1
      compiler/symbase.pas
  4. 1 1
      compiler/symtype.pas

+ 1 - 0
compiler/fpcdefs.inc

@@ -1,5 +1,6 @@
 {$mode objfpc}
 {$asmmode default}
+{$modeswitch advancedrecords}
 {$H-}
 {$goto on}
 {$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     }
        { temp references is kept after a getcopy                                    }
        ptempinfo = ^ttempinfo;
-       ttempinfo = object
+       ttempinfo = record
         private
          flags                      : ttempinfoflags;
         public

+ 1 - 1
compiler/symbase.pas

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

+ 1 - 1
compiler/symtype.pas

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