summaryrefslogtreecommitdiff
path: root/perlapi.c
diff options
context:
space:
mode:
authorJohn Tobey <jtobey@john-edwin-tobey.org>2000-10-20 18:03:27 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-21 14:26:45 +0000
commitbeab0874143b7208922720fecefc4a224011fa25 (patch)
tree3abffe8c491d477f0bb7cd037866ba7485ef9ee5 /perlapi.c
parent3a67c0c7529c0500df7fe90b2c6269508a51be07 (diff)
downloadperl-beab0874143b7208922720fecefc4a224011fa25.tar.gz
Re: Creating const subs for constants.
Message-Id: <m13mo0N-000FObC@feynman.localnet> p4raw-id: //depot/perl@7389
Diffstat (limited to 'perlapi.c')
-rw-r--r--perlapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlapi.c b/perlapi.c
index 9eb4175051..3cfe4e0baf 100644
--- a/perlapi.c
+++ b/perlapi.c
@@ -1743,10 +1743,10 @@ Perl_newCONDOP(pTHXo_ I32 flags, OP* expr, OP* trueop, OP* falseop)
}
#undef Perl_newCONSTSUB
-void
+CV*
Perl_newCONSTSUB(pTHXo_ HV* stash, char* name, SV* sv)
{
- ((CPerlObj*)pPerl)->Perl_newCONSTSUB(stash, name, sv);
+ return ((CPerlObj*)pPerl)->Perl_newCONSTSUB(stash, name, sv);
}
#undef Perl_newFORM