This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use PTR2IV instead of casting directly
[perl5.git] / opcode.pl
index e4cda78..19030a6 100755 (executable)
--- a/opcode.pl
+++ b/opcode.pl
@@ -53,21 +53,33 @@ my @raw_alias = (
                 Perl_pp_ssockopt => ['gsockopt'],
                 Perl_pp_getpeername => ['getsockname'],
                 Perl_pp_stat => ['lstat'],
-                Perl_pp_ftrowned => ['fteowned'],
+                Perl_pp_ftrowned => [qw(fteowned ftzero ftsock ftchr ftblk
+                                        ftfile ftdir ftpipe ftsuid ftsgid
+                                        ftsvtx)],
                 Perl_pp_fttext => ['ftbinary'],
                 Perl_pp_gmtime => ['localtime'],
                 Perl_pp_semget => [qw(shmget msgget)],
                 Perl_pp_semctl => [qw(shmctl msgctl)],
-                Perl_pp_shmwrite => ['shmread'],
                 Perl_pp_ghostent => [qw(ghbyname ghbyaddr)],
                 Perl_pp_gnetent => [qw(gnbyname gnbyaddr)],
                 Perl_pp_gprotoent => [qw(gpbyname gpbynumber)],
                 Perl_pp_gservent => [qw(gsbyname gsbyport)],
                 Perl_pp_gpwent => [qw(gpwnam gpwuid)],
                 Perl_pp_ggrent => [qw(ggrnam ggrgid)],
-
                 Perl_pp_ftis => [qw(ftsize ftmtime ftatime ftctime)],
-);
+                Perl_pp_chown => [qw(unlink chmod utime kill)],
+                Perl_pp_link => ['symlink'],
+                Perl_pp_ftrread => [qw(ftrwrite ftrexec fteread ftewrite
+                                       fteexec)],
+                Perl_pp_shmwrite => [qw(shmread msgsnd msgrcv semop)],
+                Perl_pp_send => ['syswrite'],
+                Perl_pp_defined => [qw(dor dorassign)],
+                 Perl_pp_and => ['andassign'],
+                Perl_pp_or => ['orassign'],
+                Perl_pp_ucfirst => ['lcfirst'],
+                Perl_pp_sle => [qw(slt sgt sge)],
+                Perl_pp_print => ['say'],
+               );
 
 while (my ($func, $names) = splice @raw_alias, 0, 2) {
     $alias{$_} = $func for @$names;
@@ -680,7 +692,7 @@ vec         vec                     ck_fun          ist@    S S S
 index          index                   ck_index        isT@    S S S?
 rindex         rindex                  ck_index        isT@    S S S?
 
-sprintf                sprintf                 ck_fun          mfst@   S L
+sprintf                sprintf                 ck_fun          mst@    S L
 formline       formline                ck_fun          ms@     S L
 ord            ord                     ck_fun          ifsTu%  S?
 chr            chr                     ck_fun          fsTu%   S?
@@ -1008,6 +1020,16 @@ method_named     method with known name  ck_null         d$
 dor            defined or (//)                 ck_null         |
 dorassign      defined or assignment (//=)     ck_null         s|
 
+entergiven     given()                 ck_null         d|
+leavegiven     leave given block       ck_null         1
+enterwhen      when()                  ck_null         d|
+leavewhen      leave when block        ck_null         1
+break          break                   ck_null         0
+continue       continue                ck_null         0
+smartmatch     smart match             ck_smartmatch   s2
+
+say            say                     ck_say          ims@    F? L
+
 # Add new ops before this, the custom operator.
 
 custom         unknown custom operator         ck_null         0