diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-01-04 12:23:30 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-01-04 15:31:18 +0000 |
commit | 746c22dbdaae0632486f06720683b9e5aabeac26 (patch) | |
tree | e96a5c795d593c8d90c9276f6f3da92829626469 /pp_sys.c | |
parent | 1a8c1d5954e704d436caa45327fa24044018b01a (diff) | |
download | perl-746c22dbdaae0632486f06720683b9e5aabeac26.tar.gz |
Convert tied PRINTF to using S_tied_handle_method()
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -1511,13 +1511,9 @@ PP(pp_prtf) Move(MARK, MARK + 1, (SP - MARK) + 1, SV*); ++SP; } - PUSHMARK(MARK - 1); - *MARK = SvTIED_obj(MUTABLE_SV(io), mg); - PUTBACK; - ENTER; - call_method("PRINTF", G_SCALAR); - LEAVE; - return NORMAL; + return S_tied_handle_method(aTHX_ "PRINTF", mark - 1, io, mg, + G_SCALAR | ARGUMENTS_ON_STACK + | (sp - mark) << TIED_HANDLE_ARGC_SHIFT); } } |