Browse Source

* renamed selector() to objcselector() for consistency with the way all
other Objective-C integration keywords/functions are being named

git-svn-id: trunk@13456 -

Jonas Maebe 16 năm trước cách đây
mục cha
commit
464d595cc6
3 tập tin đã thay đổi với 7 bổ sung7 xóa
  1. 1 1
      compiler/psystem.pas
  2. 5 5
      tests/test/tsel1.pp
  3. 1 1
      tests/test/tsel2.pp

+ 1 - 1
compiler/psystem.pas

@@ -102,7 +102,7 @@ implementation
 {$ifdef SUPPORT_UNALIGNED}
         systemunit.insert(tsyssym.create('Unaligned',in_unaligned_x));
 {$endif SUPPORT_UNALIGNED}
-        systemunit.insert(tsyssym.create('Selector',in_objc_selector_x)); { objc only }
+        systemunit.insert(tsyssym.create('ObjCSelector',in_objc_selector_x)); { objc only }
       end;
 
 

+ 5 - 5
tests/test/tsel1.pp

@@ -7,9 +7,9 @@
 var
   a: sel;
 begin
-  a:=selector('mymethod');
-  a:=selector('mymethod');
-  a:=selector('mymethod:');
-  a:=selector('::');
-  a:=selector('a:b:c:');
+  a:=objcselector('mymethod');
+  a:=objcselector('mymethod');
+  a:=objcselector('mymethod:');
+  a:=objcselector('::');
+  a:=objcselector('a:b:c:');
 end.

+ 1 - 1
tests/test/tsel2.pp

@@ -7,5 +7,5 @@
 var
   a: sel;
 begin
-  a:=selector('my:method');
+  a:=objcselector('my:method');
 end.