texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: remove more gotos


From: Gavin D. Smith
Subject: branch master updated: remove more gotos
Date: Sun, 12 Feb 2023 10:25:28 -0500

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 8c86b5b751 remove more gotos
8c86b5b751 is described below

commit 8c86b5b751ed69d1b0d885b72e641f1626a13dc6
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Feb 12 15:25:06 2023 +0000

    remove more gotos
---
 tp/Texinfo/ParserNonXS.pm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index cc2756d679..c44feab9c2 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -5132,8 +5132,8 @@ sub _process_remaining_on_line($$$$)
           $current = _merge_text($self, $current, $added_space);
           _isolate_last_space($self, $current);
           $current = _end_line($self, $current, $source_info);
-          $retval = $GET_A_NEW_LINE;
-          goto funexit;
+          return ($current, $line, $source_info, $GET_A_NEW_LINE);
+          # goto funexit;  # used in XS code
         }
         $additional_newline = 1;
       }
@@ -6557,8 +6557,9 @@ sub _process_remaining_on_line($$$$)
               ($line, $source_info)
                  = _next_text($self, $elided_arg_elt);
               if (not defined($line)) {
-                $retval = $GET_A_NEW_LINE; # error - unbalanced brace
-                goto funexit;
+                # error - unbalanced brace
+                return ($current, $line, $source_info, $GET_A_NEW_LINE);
+                # goto funexit;  # used in XS code
               }
             }
           }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]