summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-11-05 14:35:45 -0800
committerFather Chrysostomos <sprout@cpan.org>2013-11-06 05:56:03 -0800
commit9e3fb20c3e612686e655b7bb4d6982e3b565270a (patch)
tree85001b8405a42b516ee0f798c2ac7f607e906d44 /embed.fnc
parenta93a1bfd14dd3999c151fe1931d06a570700eb5c (diff)
downloadperl-9e3fb20c3e612686e655b7bb4d6982e3b565270a.tar.gz
Put common override code into gv_override
When I moved the three occurrences of this code in op.c into a static function, I did not realise at the time that it also occurred thre etimes in toke.c. So now it is in a new non-static function in gv.c. Only two of the instances in toke.c could be changed to use this func- tion, as the otherwise is a little different. I couldn’t see a simple way of factoring its requirements in.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 2 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index 7d50d0b863..9fed8b4113 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -514,6 +514,8 @@ Ap |void |gv_init_pv |NN GV* gv|NULLOK HV* stash|NN const char* name \
Ap |void |gv_init_pvn |NN GV* gv|NULLOK HV* stash|NN const char* name \
|STRLEN len|U32 flags
Ap |void |gv_name_set |NN GV* gv|NN const char *name|U32 len|U32 flags
+px |GV * |gv_override |NN const char * const name \
+ |const STRLEN len
XMpd |void |gv_try_downgrade|NN GV* gv
Apd |HV* |gv_stashpv |NN const char* name|I32 flags
Apd |HV* |gv_stashpvn |NN const char* name|U32 namelen|I32 flags