diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-01-04 16:59:46 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-01-04 16:59:46 +0000 |
commit | 4177b5d8a3f6d87efa3915a0eb233b4a027faea2 (patch) | |
tree | af46bdac658cea022e6752670e703b8a2646e0fb /pp_sys.c | |
parent | 6a4854c07e439d0e6f4f2b9b853cc7087b52e34c (diff) | |
download | perl-4177b5d8a3f6d87efa3915a0eb233b4a027faea2.tar.gz |
Convert tied WRITE to using S_tied_handle_method()
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1848,12 +1848,9 @@ PP(pp_send) PUTBACK; } - PUSHMARK(ORIGMARK); - *(ORIGMARK+1) = SvTIED_obj(MUTABLE_SV(io), mg); - ENTER; - call_method("WRITE", G_SCALAR); - LEAVE; - return NORMAL; + return S_tied_handle_method(aTHX_ "WRITE", mark - 1, io, mg, + G_SCALAR | ARGUMENTS_ON_STACK + | (sp - mark) << TIED_HANDLE_ARGC_SHIFT); } } if (!gv) |