summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-01-04 12:23:30 +0000
committerNicholas Clark <nick@ccl4.org>2011-01-04 15:31:18 +0000
commit746c22dbdaae0632486f06720683b9e5aabeac26 (patch)
treee96a5c795d593c8d90c9276f6f3da92829626469 /pp_sys.c
parent1a8c1d5954e704d436caa45327fa24044018b01a (diff)
downloadperl-746c22dbdaae0632486f06720683b9e5aabeac26.tar.gz
Convert tied PRINTF to using S_tied_handle_method()
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/pp_sys.c b/pp_sys.c
index d042f590b1..e645f35012 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -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);
}
}