summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-11-24 18:48:43 +0000
committerNicholas Clark <nick@ccl4.org>2008-11-24 18:48:43 +0000
commit8226a3d7ea7a9414bc41d73011d23876bd55e4b8 (patch)
treefbe6cb81d17b9114235327c9ef3ff1f4d1e63e78 /pp_sys.c
parent6a57758be8105e287911e73d8605475c2aa69115 (diff)
downloadperl-8226a3d7ea7a9414bc41d73011d23876bd55e4b8.tar.gz
Promote Perl_setdefout() to the public API.
p4raw-id: //depot/perl@34904
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 11cd863470..192ce6c01e 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1156,6 +1156,17 @@ PP(pp_sselect)
#endif
}
+/*
+=for apidoc setdefout
+
+Sets PL_defoutgv, the default file handle for output, to the passed in
+typeglob. As PL_defoutgv "owns" a reference on its typeglob, the reference
+count of the passed in typeglob is increased by one, and the reference count
+of the typeglob that PL_defoutgv points to is decreased by one.
+
+=cut
+*/
+
void
Perl_setdefout(pTHX_ GV *gv)
{