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