This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f5e614f
)
CvFILE for constant subs
author
Stephen McCamant
<smcc@mit.edu>
Sun, 6 Apr 2003 16:39:13 +0000
(12:39 -0400)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Sun, 6 Apr 2003 20:53:29 +0000
(20:53 +0000)
Message-ID: <16016.36977.667436.279778@syllepsis.MIT.EDU>
p4raw-id: //depot/perl@19157
op.c
patch
|
blob
|
blame
|
history
diff --git
a/op.c
b/op.c
index
2c6b675
..
af1fd08
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-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 "" */