[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/parsetexi/api.c (reset_parser_exc
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/XS/parsetexi/api.c (reset_parser_except_conf), tp/Texinfo/XS/parsetexi/input.c: remove input_reset_input_stack as it should never be useful. There are debug messages in parse_texi if the input stack is not empty, if needed, the input stack variables could be reset there. |
Date: |
Mon, 13 May 2024 16:27:30 -0400 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 1c4707a838 * tp/Texinfo/XS/parsetexi/api.c (reset_parser_except_conf),
tp/Texinfo/XS/parsetexi/input.c: remove input_reset_input_stack as it should
never be useful. There are debug messages in parse_texi if the input stack is
not empty, if needed, the input stack variables could be reset there.
1c4707a838 is described below
commit 1c4707a83887f4e3b529a50298ac98ee561397b3
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon May 13 22:27:27 2024 +0200
* tp/Texinfo/XS/parsetexi/api.c (reset_parser_except_conf),
tp/Texinfo/XS/parsetexi/input.c: remove input_reset_input_stack as
it should never be useful. There are debug messages in parse_texi
if the input stack is not empty, if needed, the input stack variables
could be reset there.
---
ChangeLog | 8 ++++++++
tp/Texinfo/XS/parsetexi/api.c | 1 -
tp/Texinfo/XS/parsetexi/input.c | 22 ----------------------
tp/Texinfo/XS/parsetexi/input.h | 1 -
4 files changed, 8 insertions(+), 24 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4121e0e722..ffefbe8a84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-05-13 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/parsetexi/api.c (reset_parser_except_conf),
+ tp/Texinfo/XS/parsetexi/input.c: remove input_reset_input_stack as
+ it should never be useful. There are debug messages in parse_texi
+ if the input stack is not empty, if needed, the input stack variables
+ could be reset there.
+
2024-05-13 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/ParserNonXS.pm (_is_index_element): use
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index 76c95e6517..0b120d3cf6 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -87,7 +87,6 @@ reset_parser_except_conf (void)
opened handlers */
parser_reset_encoding_list ();
set_input_encoding ("utf-8");
- input_reset_input_stack ();
source_marks_reset_counters ();
reset_obstacks ();
diff --git a/tp/Texinfo/XS/parsetexi/input.c b/tp/Texinfo/XS/parsetexi/input.c
index 56b8ab9701..f562d0d7e9 100644
--- a/tp/Texinfo/XS/parsetexi/input.c
+++ b/tp/Texinfo/XS/parsetexi/input.c
@@ -579,28 +579,6 @@ free_small_strings (void)
small_strings_num = 0;
}
-void
-input_reset_input_stack (void)
-{
- int i;
- for (i = 0; i < input_number; i++)
- {
- switch (input_stack[i].type)
- {
- case IN_file:
- if (input_stack[i].file != stdin)
- fclose (input_stack[i].file);
- break;
- case IN_text:
- free (input_stack[i].text);
- break;
- }
- }
- input_number = 0;
- macro_expansion_nr = 0;
- value_expansion_nr = 0;
-}
-
void
parser_reset_encoding_list (void)
{
diff --git a/tp/Texinfo/XS/parsetexi/input.h b/tp/Texinfo/XS/parsetexi/input.h
index 02957fb8ad..6a58f5cef0 100644
--- a/tp/Texinfo/XS/parsetexi/input.h
+++ b/tp/Texinfo/XS/parsetexi/input.h
@@ -16,7 +16,6 @@ void input_push_text (char *text, int line_number, const char
*macro_name,
int input_push_file (const char *filename);
void input_pushback (char *line);
void set_input_source_mark (SOURCE_MARK *source_mark);
-void input_reset_input_stack (void);
void parser_reset_encoding_list (void);
int expanding_macro (const char *macro);
int top_file_index (void);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/parsetexi/api.c (reset_parser_except_conf), tp/Texinfo/XS/parsetexi/input.c: remove input_reset_input_stack as it should never be useful. There are debug messages in parse_texi if the input stack is not empty, if needed, the input stack variables could be reset there.,
Patrice Dumas <=