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
(parent:
d9b182a
)
make $ prototype to accept THREADSVs
author
Gurusamy Sarathy
<gsar@cpan.org>
Wed, 22 Jul 1998 06:12:50 +0000
(06:12 +0000)
committer
Gurusamy Sarathy
<gsar@cpan.org>
Wed, 22 Jul 1998 06:12:50 +0000
(06:12 +0000)
p4raw-id: //depot/perl@1623
op.c
patch
|
blob
|
blame
|
history
diff --git
a/op.c
b/op.c
index
b2169dc
..
fc2e7da
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-4827,8
+4827,12
@@
ck_subr(OP *o)
bad_type(arg, "sub", gv_ename(namegv), o2);
goto wrapref;
case '$':
- if (o2->op_type != OP_RV2SV && o2->op_type != OP_PADSV)
+ if (o2->op_type != OP_RV2SV
+ && o2->op_type != OP_PADSV
+ && o2->op_type != OP_THREADSV)
+ {
bad_type(arg, "scalar", gv_ename(namegv), o2);
+ }
goto wrapref;
case '@':
if (o2->op_type != OP_RV2AV && o2->op_type != OP_PADAV)