summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-02-12 12:43:00 -0700
committerKarl Williamson <khw@cpan.org>2022-02-14 17:08:51 -0700
commit6d7ebfa7d3430e86b053ac2852870f00c9f068d6 (patch)
tree724641ef09dcf80cc17e3d1b2bd1f711328e152c /toke.c
parent4e9fa508272589e302e6987b1d1526d91ea31555 (diff)
downloadperl-6d7ebfa7d3430e86b053ac2852870f00c9f068d6.tar.gz
toke.c: Add a couple const to decls
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index f68a50076a..d8007bd1bf 100644
--- a/toke.c
+++ b/toke.c
@@ -3099,7 +3099,7 @@ Perl_get_and_check_backslash_N_name(pTHX_ const char* s,
STATIC char *
S_scan_const(pTHX_ char *start)
{
- char *send = PL_bufend; /* end of the constant */
+ const char * const send = PL_bufend;/* end of the constant */
SV *sv = newSV(send - start); /* sv for the constant. See note below
on sizing. */
char *s = start; /* start of the constant */
@@ -3107,7 +3107,7 @@ S_scan_const(pTHX_ char *start)
bool dorange = FALSE; /* are we in a translit range? */
bool didrange = FALSE; /* did we just finish a range? */
bool in_charclass = FALSE; /* within /[...]/ */
- bool s_is_utf8 = cBOOL(UTF); /* Is the source string assumed to be
+ const bool s_is_utf8 = cBOOL(UTF); /* Is the source string assumed to be
UTF8? But, this can show as true
when the source isn't utf8, as for
example when it is entirely composed