summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-09-30 06:25:45 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-10-06 13:01:19 -0700
commitdab1c735364fcc41f4fbd1c15b5e26e8a7b07cab (patch)
treea4681e32c95dbd9711ee77cbcbf3d0727dd84eee /embed.fnc
parente0260a5b7a4c9245402af2910213dd35717e5bd2 (diff)
downloadperl-dab1c735364fcc41f4fbd1c15b5e26e8a7b07cab.tar.gz
toke.c, op.c, sv.c: Prototype parsing and checking are nul-and-UTF8 clean.
This means that eval "sub foo ($;\0whoops) { say @_ }" will correctly include \0whoops in the CV's prototype (while complaining about illegal characters), and that use utf8; BEGIN { $::{"foo"} = "\$\0L\351on" } BEGIN { eval "sub foo (\$\0L\x{c3}\x{a9}on) {};"; } will not warn about a mismatched prototype.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc3
1 files changed, 3 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index 03bbfcab09..86447df24c 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -272,6 +272,9 @@ p |OP * |coresub_op |NN SV *coreargssv|const int code \
: Used in sv.c
p |void |cv_ckproto_len |NN const CV* cv|NULLOK const GV* gv\
|NULLOK const char* p|const STRLEN len
+p |void |cv_ckproto_len_flags |NN const CV* cv|NULLOK const GV* gv\
+ |NULLOK const char* p|const STRLEN len \
+ |const U32 flags
: Used in pp.c and pp_sys.c
ApdR |SV* |gv_const_sv |NN GV* gv
ApdR |SV* |cv_const_sv |NULLOK const CV *const cv