[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
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: remove more gotos,
Gavin D. Smith <=
- Prev by Date:
branch master updated: * tp/Texinfo/ParserNonXS.pm (_process_remaining_on_line): Avoid use of goto statements to reduce program run time.
- Next by Date:
branch master updated: * tp/Texinfo/ParserNonXS.pm (_end_line_starting_block) (_process_remaining_on_line), tp/Texinfo/XS/parsetexi/end_line.c (end_line_starting_block), tp/Texinfo/XS/parsetexi/handle_commands.c (handle_block_command), tp/Texinfo/command_data.txt: do not handle especially conditional block commands opening in _process_remaining_on_line or handle_block_command, let non-specific code handle block command line parsing, and take care of their arguments in end_line_starting_block.
- Previous by thread:
branch master updated: * tp/Texinfo/ParserNonXS.pm (_process_remaining_on_line): Avoid use of goto statements to reduce program run time.
- Next by thread:
branch master updated: * tp/Texinfo/ParserNonXS.pm (_end_line_starting_block) (_process_remaining_on_line), tp/Texinfo/XS/parsetexi/end_line.c (end_line_starting_block), tp/Texinfo/XS/parsetexi/handle_commands.c (handle_block_command), tp/Texinfo/command_data.txt: do not handle especially conditional block commands opening in _process_remaining_on_line or handle_block_command, let non-specific code handle block command line parsing, and take care of their arguments in end_line_starting_block.
- Index(es):