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