summaryrefslogtreecommitdiff
path: root/pod/perlguts.pod
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>1998-03-15 20:09:05 +0100
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-03-16 16:18:35 +0000
commit5476c4332a5540db7fc38bfabed95022b6c04b1b (patch)
tree151a7f6b71dfab363c9ed5dbf468b9c674b8ab36 /pod/perlguts.pod
parent2ce36478e58aef6258082c58568c0f469f8eb69c (diff)
downloadperl-5476c4332a5540db7fc38bfabed95022b6c04b1b.tar.gz
newCONSTSUB added (XSUB equivalent for inlinable sub () { 123 }).
Subject: Bundling builtin.pm and newCONSTSUB with the core? p4raw-id: //depot/perl@821
Diffstat (limited to 'pod/perlguts.pod')
-rw-r--r--pod/perlguts.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod
index 0fa74458a7..e84e7e59a0 100644
--- a/pod/perlguts.pod
+++ b/pod/perlguts.pod
@@ -2121,6 +2121,13 @@ The XSUB-writer's interface to the C C<malloc> function, with cast.
void* Newc( x, void *ptr, int size, type, cast )
+=item newCONSTSUB
+
+Creates a constant sub equivalent to Perl C<sub FOO () { 123 }>
+which is eligible for inlining at compile-time.
+
+ void newCONSTSUB(HV* stash, char* name, SV* sv)
+
=item newHV
Creates a new HV. The reference count is set to 1.