diff options
author | Gisle Aas <gisle@activestate.com> | 2006-01-04 13:53:16 +0000 |
---|---|---|
committer | Gisle Aas <gisle@activestate.com> | 2006-01-04 13:53:16 +0000 |
commit | 6a245ed1e7ef6f728779f8328fb52e42b1aa0b8c (patch) | |
tree | 2b22d2ba828e88be62274986b1e187fcf3861313 /perlio.c | |
parent | 359e8da2ef248b0ae5eba7c150226268a764452f (diff) | |
download | perl-6a245ed1e7ef6f728779f8328fb52e42b1aa0b8c.tar.gz |
Get rid of a few more hardcoded string lengths.
p4raw-id: //depot/perl@26645
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1414,20 +1414,20 @@ PerlIO_layer_from_ref(pTHX_ SV *sv) * For any scalar type load the handler which is bundled with perl */ if (SvTYPE(sv) < SVt_PVAV) - return PerlIO_find_layer(aTHX_ "scalar", 6, 1); + return PerlIO_find_layer(aTHX_ STR_WITH_LEN("scalar"), 1); /* * For other types allow if layer is known but don't try and load it */ switch (SvTYPE(sv)) { case SVt_PVAV: - return PerlIO_find_layer(aTHX_ "Array", 5, 0); + return PerlIO_find_layer(aTHX_ STR_WITH_LEN("Array"), 0); case SVt_PVHV: - return PerlIO_find_layer(aTHX_ "Hash", 4, 0); + return PerlIO_find_layer(aTHX_ STR_WITH_LEN("Hash"), 0); case SVt_PVCV: - return PerlIO_find_layer(aTHX_ "Code", 4, 0); + return PerlIO_find_layer(aTHX_ STR_WITH_LEN("Code"), 0); case SVt_PVGV: - return PerlIO_find_layer(aTHX_ "Glob", 4, 0); + return PerlIO_find_layer(aTHX_ STR_WITH_LEN("Glob"), 0); } return NULL; } |