瀏覽代碼

Add enum values needed for reference counting support.

symconst.pas:
  + tobjectoption: add oo_is_reference_counted to mark a class as reference counted
  + tvaroption: add vo_is_weakref to denote a variable/parameter/field as not modifying the reference count

git-svn-id: branches/svenbarth/arc@28803 -
svenbarth 10 年之前
父節點
當前提交
c4cb4a3576
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      compiler/symconst.pas

+ 4 - 2
compiler/symconst.pas

@@ -459,7 +459,8 @@ type
     oo_has_class_constructor, { the object/class has a class constructor }
     oo_has_class_constructor, { the object/class has a class constructor }
     oo_has_class_destructor,  { the object/class has a class destructor  }
     oo_has_class_destructor,  { the object/class has a class destructor  }
     oo_is_enum_class,     { the class represents an enum (JVM) }
     oo_is_enum_class,     { the class represents an enum (JVM) }
-    oo_has_new_destructor { the object/class declares a destructor (apart from potentially inherting one from the parent) }
+    oo_has_new_destructor,{ the object/class declares a destructor (apart from potentially inherting one from the parent) }
+    oo_is_reference_counted { the class is reference counted (only for Delphi-style classes) }
   );
   );
   tobjectoptions=set of tobjectoption;
   tobjectoptions=set of tobjectoption;
 
 
@@ -522,7 +523,8 @@ type
     vo_force_finalize,
     vo_force_finalize,
     { this is an internal variable that is used for Default() intrinsic in code
     { this is an internal variable that is used for Default() intrinsic in code
       sections }
       sections }
-    vo_is_default_var
+    vo_is_default_var,
+    vo_is_weakref
   );
   );
   tvaroptions=set of tvaroption;
   tvaroptions=set of tvaroption;