diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-19 12:49:41 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-19 12:49:41 +0000 |
commit | 81e118e078828ea41cd654ee18f4193484a89cf3 (patch) | |
tree | 62637e08be5499f11f20df252b484d835c58e171 /perlapi.c | |
parent | 41bd693c38b93b50972065296573f26c13cc43d1 (diff) | |
download | perl-81e118e078828ea41cd654ee18f4193484a89cf3.tar.gz |
Removed duplicated code (in pp.c and mg.c) by introducing
do_vecget(). NOTE: the calling convention of do_vecset()
changes, too: the `offset' that is assigned to LvTARGOFF(TARG)
in pp_vec() is no more multiplied by `size' in pp_vec(),
the multiplication is now done in do_vecset().
Also fix a cpp thinko in change #4002.
p4raw-link: @4002 on //depot/cfgperl: 24db6c0d56fddf85ee587fc1cb1dbce678fa6a8c
p4raw-id: //depot/cfgperl@4004
Diffstat (limited to 'perlapi.c')
-rwxr-xr-x | perlapi.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -868,6 +868,13 @@ Perl_do_trans(pTHXo_ SV* sv) return ((CPerlObj*)pPerl)->Perl_do_trans(sv); } +#undef Perl_do_vecget +UV +Perl_do_vecget(pTHXo_ SV* sv, I32 offset, I32 size) +{ + return ((CPerlObj*)pPerl)->Perl_do_vecget(sv, offset, size); +} + #undef Perl_do_vecset void Perl_do_vecset(pTHXo_ SV* sv) |