diff options
author | Stephen McCamant <smcc@mit.edu> | 2003-04-06 12:39:13 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-04-06 20:53:29 +0000 |
commit | 3871c2ef9aa1dfeba4631a17efdbf486012d47a6 (patch) | |
tree | e87215fa56cd005e6ed18a123abdee487fabaf76 /op.c | |
parent | f5e614f21843d4cc6ff931ce9e734273c42248aa (diff) | |
download | perl-3871c2ef9aa1dfeba4631a17efdbf486012d47a6.tar.gz |
CvFILE for constant subs
Message-ID: <16016.36977.667436.279778@syllepsis.MIT.EDU>
p4raw-id: //depot/perl@19157
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4273,7 +4273,7 @@ Perl_newCONSTSUB(pTHX_ HV *stash, char *name, SV *sv) CopSTASH_set(PL_curcop,stash); } - cv = newXS(name, const_sv_xsub, __FILE__); + cv = newXS(name, const_sv_xsub, CopFILE(PL_curcop)); CvXSUBANY(cv).any_ptr = sv; CvCONST_on(cv); sv_setpv((SV*)cv, ""); /* prototype is "" */ |