Explorar o código

ncgrtti.pas, symconst.pas, symtable.pas:
- remove placeholders for "addref" and "copy" management operators.

git-svn-id: branches/maciej/smart_pointers@33229 -

maciej-izak %!s(int64=9) %!d(string=hai) anos
pai
achega
6c47e9ecc4
Modificáronse 3 ficheiros con 3 adicións e 10 borrados
  1. 1 1
      compiler/ncgrtti.pas
  2. 1 4
      compiler/symconst.pas
  3. 1 5
      compiler/symtable.pas

+ 1 - 1
compiler/ncgrtti.pas

@@ -917,7 +917,7 @@ implementation
            if (rt=initrtti) and (trecordsymtable(def.symtable).managementoperators<>[]) then
              write_record_operators;
 
-           { guarantee initrtti for any record for fpc_initialize, fpc_finalize, fpc_copy and fpc_addref }
+           { guarantee initrtti for any record for fpc_initialize, fpc_finalize }
            if (rt = fullrtti) and (ds_init_table_used in def.defstates) and
               not (ds_init_table_written in def.defstates) then
              write_rtti(def, initrtti);

+ 1 - 4
compiler/symconst.pas

@@ -574,10 +574,7 @@ type
 
   tmanagementoperator=(mop_none,
     mop_initialize,
-    mop_finalize,
-    { reserved for future usage }
-    mop_addref,
-    mop_copy
+    mop_finalize
   );
   tmanagementoperators=set of tmanagementoperator;
 

+ 1 - 5
compiler/symtable.pas

@@ -437,11 +437,7 @@ interface
       managementoperator2tok:array[tmanagementoperator] of ttoken = (
     { mop_none       }  NOTOKEN,
     { mop_initialize }  _OP_INITIALIZE,
-    { mop_finalize   }  _OP_FINALIZE,
-
-    { reserved for future usage }
-    { mop_addref     }  NOTOKEN,
-    { mop_copy       }  NOTOKEN);
+    { mop_finalize   }  _OP_FINALIZE);
 
 
 implementation