summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-10-08 06:09:38 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-10-08 13:26:26 -0700
commit7f0bfbeaa5bacddb87a1fd89935735309cd50040 (patch)
tree77b52e5d681f208c5cde208486e5e3be288a882c /sv.h
parent090c3c371910e06ac0c1a1cffa612da15d68c728 (diff)
downloadperl-7f0bfbeaa5bacddb87a1fd89935735309cd50040.tar.gz
Rewrite sv_catsv to pass SV_CAT* flags to sv_catpvn
(Both functions actually end with _flags, but I’m trying to keep the first line short.) Now that sv_catpvn_flags has this functionality (as of c682ebef86), sv_catsv can use it, which avoids creating an extra SV for the utf8+bytes case and removes some duplicate logic. Also, one code path in sv_utf8_upgrade_flags_grow was ignore the _grow, causing crashes after the sv_catsv change, so this patch fixes that, too. Also, sv_catpvn_flags was not allocating a byte for the trailing nul, which was entirely my fault (c682ebef86). So that is hereby fixed as well.
Diffstat (limited to 'sv.h')
0 files changed, 0 insertions, 0 deletions