diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-07 12:11:48 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-07 12:11:48 +0000 |
commit | 5c144d81801caa5e8317f6a38b40eb08257c47ea (patch) | |
tree | 41bde5ec37960016aa4c6ad2357049096f4caebb /doio.c | |
parent | 9cbe880bef86d6a2a18d2671579498840ffb8162 (diff) | |
download | perl-5c144d81801caa5e8317f6a38b40eb08257c47ea.tar.gz |
Lots of consting
p4raw-id: //depot/perl@24726
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1345,7 +1345,7 @@ Perl_do_print(pTHX_ register SV *sv, PerlIO *fp) Perl_warner(aTHX_ packWARN(WARN_UTF8), "Wide character in print"); } } - tmps = SvPV(sv, len); + tmps = SvPV_const(sv, len); break; } /* To detect whether the process is about to overstep its @@ -1404,7 +1404,7 @@ Perl_my_stat(pTHX) goto do_fstat; } - s = SvPV(sv, len); + s = SvPV_const(sv, len); PL_statgv = Nullgv; sv_setpvn(PL_statname, s, len); s = SvPVX_const(PL_statname); /* s now NUL-terminated */ @@ -1672,7 +1672,7 @@ Perl_apply(pTHX_ I32 type, register SV **mark, register SV **sp) register I32 val; register I32 tot = 0; const char *what; - char *s; + const char *s; SV **oldmark = mark; STRLEN n_a; @@ -1738,7 +1738,7 @@ nothing in the core. APPLY_TAINT_PROPER(); if (mark == sp) break; - s = SvPVx(*++mark, n_a); + s = SvPVx_const(*++mark, n_a); if (isALPHA(*s)) { if (*s == 'S' && s[1] == 'I' && s[2] == 'G') s += 3; @@ -1808,7 +1808,7 @@ nothing in the core. APPLY_TAINT_PROPER(); tot = sp - mark; while (++mark <= sp) { - s = SvPVx(*mark, n_a); + s = SvPVx_const(*mark, n_a); APPLY_TAINT_PROPER(); if (PL_euid || PL_unsafe) { if (UNLINK(s)) |