[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/parsetexi/api.c (initialize_parsi
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/XS/parsetexi/api.c (initialize_parsing), tp/Texinfo/XS/parsetexi/parser.c: inline wipe_parser_global_variablesin initialize_parsing. |
Date: |
Mon, 20 May 2024 05:34:05 -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 3c034d4103 * tp/Texinfo/XS/parsetexi/api.c (initialize_parsing),
tp/Texinfo/XS/parsetexi/parser.c: inline wipe_parser_global_variablesin
initialize_parsing.
3c034d4103 is described below
commit 3c034d4103850c71408a50082cfcbb21b25ebd25
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon May 20 11:34:09 2024 +0200
* tp/Texinfo/XS/parsetexi/api.c (initialize_parsing),
tp/Texinfo/XS/parsetexi/parser.c: inline
wipe_parser_global_variablesin initialize_parsing.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/parsetexi/api.c | 10 ++++++----
tp/Texinfo/XS/parsetexi/parser.c | 9 ---------
tp/Texinfo/XS/parsetexi/parser.h | 1 -
4 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9d6b947c41..9ee60012e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-20 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/parsetexi/api.c (initialize_parsing),
+ tp/Texinfo/XS/parsetexi/parser.c: inline
+ wipe_parser_global_variablesin initialize_parsing.
+
2024-05-20 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/parsetexi/Parsetexi.pm (parser),
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index 1da2a0be95..4dad09eb16 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -52,8 +52,6 @@ initialize_parsing (void)
{
parsed_document = new_document ();
- wipe_parser_global_variables ();
-
wipe_user_commands ();
wipe_macros ();
@@ -65,6 +63,12 @@ initialize_parsing (void)
else
global_documentlanguage = 0;
+ free (global_clickstyle);
+ global_clickstyle = strdup ("arrow");
+ global_kbdinputstyle = kbd_distinct;
+
+ current_node = current_section = current_part = 0;
+
reset_context_stack ();
reset_command_stack (&nesting_context.basic_inline_stack);
reset_command_stack (&nesting_context.basic_inline_stack_on_line);
@@ -80,8 +84,6 @@ initialize_parsing (void)
reset_obstacks ();
- current_node = current_section = current_part = 0;
-
if (!conf.no_index)
init_index_commands ();
diff --git a/tp/Texinfo/XS/parsetexi/parser.c b/tp/Texinfo/XS/parsetexi/parser.c
index c4d6f99911..88ef405aa4 100644
--- a/tp/Texinfo/XS/parsetexi/parser.c
+++ b/tp/Texinfo/XS/parsetexi/parser.c
@@ -409,15 +409,6 @@ register_global_command (ELEMENT *current)
return 0;
}
-
-void
-wipe_parser_global_variables (void)
-{
- free (global_clickstyle);
- global_clickstyle = strdup ("arrow");
- global_kbdinputstyle = kbd_distinct;
-}
-
/* setup a Texinfo tree with document_root as root and before_node_section
as first content. Used for all the tree except for those obtained by
parse_texi_line/parse_string. */
diff --git a/tp/Texinfo/XS/parsetexi/parser.h b/tp/Texinfo/XS/parsetexi/parser.h
index f9ec1f6c47..906748b165 100644
--- a/tp/Texinfo/XS/parsetexi/parser.h
+++ b/tp/Texinfo/XS/parsetexi/parser.h
@@ -125,7 +125,6 @@ enum kbd_enum {kbd_none, kbd_code, kbd_example,
kbd_distinct };
extern enum kbd_enum global_kbdinputstyle;
int register_global_command (ELEMENT *current);
-void wipe_parser_global_variables (void);
extern COUNTER count_remaining_args, count_items, count_cells;
void reset_parser_counters (void);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/parsetexi/api.c (initialize_parsing), tp/Texinfo/XS/parsetexi/parser.c: inline wipe_parser_global_variablesin initialize_parsing.,
Patrice Dumas <=
- Prev by Date:
branch master updated: * tp/Texinfo/XS/parsetexi/Parsetexi.pm (parser), tp/Texinfo/XS/parsetexi/Parsetexi.xs (conf_set_documentlanguage), tp/Texinfo/XS/parsetexi/api.c (initialize_parsing, reset_parser), tp/Texinfo/XS/parsetexi/conf.c (conf_set_documentlanguage) (reset_conf), tp/Texinfo/XS/parsetexi/conf.h (CONF), tp/Texinfo/XS/parsetexi/parser.c (wipe_parser_global_variables): add documentlanguage and global_documentlanguage_fixed in CONF, add conf_set_documentlanguage to set them. Initialize global_documentla [...]
- Next by Date:
branch master updated: * tp/Texinfo/Common.pm (%parser_state_configuration) (%parser_inner_configuration, %parser_settable_configuration), tp/Texinfo/ParserNonXS.pm (parser), tp/Texinfo/XS/parsetexi/Parsetexi.pm (parser): move %parser_state_configuration, %parser_inner_configuration and %parser_settable_configuration to Texinfo::Common. Update Parsetexi.pm to set the same keys as ParserNonXS parser. Inline _setup_conf in ParserNonXS.pm parser.
- Previous by thread:
branch master updated: * tp/Texinfo/XS/parsetexi/Parsetexi.pm (parser), tp/Texinfo/XS/parsetexi/Parsetexi.xs (conf_set_documentlanguage), tp/Texinfo/XS/parsetexi/api.c (initialize_parsing, reset_parser), tp/Texinfo/XS/parsetexi/conf.c (conf_set_documentlanguage) (reset_conf), tp/Texinfo/XS/parsetexi/conf.h (CONF), tp/Texinfo/XS/parsetexi/parser.c (wipe_parser_global_variables): add documentlanguage and global_documentlanguage_fixed in CONF, add conf_set_documentlanguage to set them. Initialize global_documentla [...]
- Next by thread:
branch master updated: * tp/Texinfo/Common.pm (%parser_state_configuration) (%parser_inner_configuration, %parser_settable_configuration), tp/Texinfo/ParserNonXS.pm (parser), tp/Texinfo/XS/parsetexi/Parsetexi.pm (parser): move %parser_state_configuration, %parser_inner_configuration and %parser_settable_configuration to Texinfo::Common. Update Parsetexi.pm to set the same keys as ParserNonXS parser. Inline _setup_conf in ParserNonXS.pm parser.
- Index(es):