texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Sun, 19 May 2024 16:23:17 -0400 (EDT)

branch: master
commit 492a83f020c695e30bc29b30f814f5a18d694417
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun May 19 22:23:13 2024 +0200

    * tp/Texinfo/XS/parsetexi/api.c (initialize_parsing): rename
    reset_parser_except_conf to initialize_parsing and make it static.
---
 ChangeLog                     |  5 +++++
 tp/Texinfo/XS/parsetexi/api.c | 12 ++++++------
 tp/Texinfo/XS/parsetexi/api.h |  1 -
 3 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2faad888ea..a62dcf4e07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-19  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/parsetexi/api.c (initialize_parsing): rename
+       reset_parser_except_conf to initialize_parsing and make it static.
+
 2024-05-19  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/parsetexi/api.c (reset_parser_except_conf),
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index 39e972599a..adff06d5e4 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -47,8 +47,8 @@
 #include "indices.h"
 #include "api.h"
 
-void
-reset_parser_except_conf (void)
+static void
+initialize_parsing (void)
 {
   parsed_document = new_document ();
 
@@ -124,7 +124,7 @@ parse_file (const char *filename, const char 
*input_file_name,
 
   int status;
 
-  reset_parser_except_conf ();
+  initialize_parsing ();
 
   status = input_push_file (filename);
   if (status)
@@ -169,7 +169,7 @@ parse_text (const char *string, int line_nr)
 {
   int document_descriptor;
 
-  reset_parser_except_conf ();
+  initialize_parsing ();
 
   input_push_text (strdup (string), line_nr, 0, 0);
   document_descriptor = parse_texi_document ();
@@ -185,7 +185,7 @@ parse_string (const char *string, int line_nr)
   ELEMENT *root_elt;
   int document_descriptor;
 
-  reset_parser_except_conf ();
+  initialize_parsing ();
 
   root_elt = new_element (ET_root_line);
 
@@ -201,7 +201,7 @@ parse_piece (const char *string, int line_nr)
   int document_descriptor;
   ELEMENT *before_node_section, *document_root;
 
-  reset_parser_except_conf ();
+  initialize_parsing ();
 
   before_node_section = setup_document_root_and_before_node_section ();
   document_root = before_node_section->parent;
diff --git a/tp/Texinfo/XS/parsetexi/api.h b/tp/Texinfo/XS/parsetexi/api.h
index 690e1ae858..b495bc956b 100644
--- a/tp/Texinfo/XS/parsetexi/api.h
+++ b/tp/Texinfo/XS/parsetexi/api.h
@@ -10,7 +10,6 @@ int parse_piece (const char *, int line_nr);
 int parse_string (const char *, int line_nr);
 int parse_text (const char *, int line_nr);
 void reset_parser (int debug_output);
-void reset_parser_except_conf (void);
 
 int parser_set_debug (int value);
 void parser_reset_values_conf (void);



reply via email to

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