78f1eb
From d7f7b0e39a10a6e3e0bd81d15473ee522a064016 Mon Sep 17 00:00:00 2001
78f1eb
From: Karl Williamson <khw@cpan.org>
78f1eb
Date: Mon, 4 Nov 2019 21:55:53 -0700
78f1eb
Subject: [PATCH] toke.c: comment changes
78f1eb
MIME-Version: 1.0
78f1eb
Content-Type: text/plain; charset=UTF-8
78f1eb
Content-Transfer-Encoding: 8bit
78f1eb
78f1eb
These should have been included in
78f1eb
0c311b7c345769239f38d0139ea7738feec5ca4d
78f1eb
78f1eb
Signed-off-by: Petr Písař <ppisar@redhat.com>
78f1eb
---
78f1eb
 toke.c | 11 ++---------
78f1eb
 1 file changed, 2 insertions(+), 9 deletions(-)
78f1eb
78f1eb
diff --git a/toke.c b/toke.c
78f1eb
index 3f376640ef..9c1e77f9db 100644
78f1eb
--- a/toke.c
78f1eb
+++ b/toke.c
78f1eb
@@ -3032,13 +3032,8 @@ S_scan_const(pTHX_ char *start)
78f1eb
                     s++;    /* Skip past the hyphen */
78f1eb
 
78f1eb
                     /* d now points to where the end-range character will be
78f1eb
-                     * placed.  Save it so won't have to go finding it later,
78f1eb
-                     * and drop down to get that character.  (Actually we
78f1eb
-                     * instead save the offset, to handle the case where a
78f1eb
-                     * realloc in the meantime could change the actual
78f1eb
-                     * pointer).  We'll finish processing the range the next
78f1eb
-                     * time through the loop */
78f1eb
-                    offset_to_max = d - SvPVX_const(sv);
78f1eb
+                     * placed.  Drop down to get that character.  We'll finish
78f1eb
+                     * processing the range the next time through the loop */
78f1eb
 
78f1eb
                     if (s_is_utf8 && UTF8_IS_ABOVE_LATIN1(*s)) {
78f1eb
                         has_above_latin1 = TRUE;
78f1eb
@@ -3055,8 +3050,6 @@ S_scan_const(pTHX_ char *start)
78f1eb
                  *      are the range start and range end, in order.
78f1eb
                  * 'd'  points to just beyond the range end in the 'sv' string,
78f1eb
                  *      where we would next place something
78f1eb
-                 * 'offset_to_max' is the offset in 'sv' at which the character
78f1eb
-                 *      (the range's maximum end point) before 'd'  begins.
78f1eb
                  */
78f1eb
                 char * max_ptr;
78f1eb
                 char * min_ptr;
78f1eb
-- 
78f1eb
2.21.0
78f1eb