diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-07-05 12:45:19 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-07-05 12:45:19 +0100 |
commit | 719a9bb07bffdcf2ec94b40afea1e3dbcf028a9e (patch) | |
tree | ea9df715907b366e5008149715a55c914b0c873f /toke.c | |
parent | 0479a84af089da76e98ee45ec853b871201b9fac (diff) | |
download | perl-719a9bb07bffdcf2ec94b40afea1e3dbcf028a9e.tar.gz |
In Perl_lex_start(), use newSVpvn_flags() to reduce source and object size.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -715,8 +715,8 @@ Perl_lex_start(pTHX_ SV *line, PerlIO *rsfp, bool new_filter) if (!len) { parser->linestr = newSVpvs("\n;"); } else if (SvREADONLY(line) || s[len-1] != ';' || !SvPOK(line)) { - parser->linestr = newSV_type(SVt_PV); - sv_copypv(parser->linestr, line); /* avoid tie/overload weirdness */ + /* avoid tie/overload weirdness */ + parser->linestr = newSVpvn_flags(s, len, SvUTF8(line)); if (s[len-1] != ';') sv_catpvs(parser->linestr, "\n;"); } else { |