diff options
author | Jan Dubois <jand@activestate.com> | 1998-03-15 20:09:05 +0100 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1998-03-16 16:18:35 +0000 |
commit | 5476c4332a5540db7fc38bfabed95022b6c04b1b (patch) | |
tree | 151a7f6b71dfab363c9ed5dbf468b9c674b8ab36 /pod/perlguts.pod | |
parent | 2ce36478e58aef6258082c58568c0f469f8eb69c (diff) | |
download | perl-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.pod | 7 |
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. |