texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Fri, 4 Oct 2024 12:02:14 -0400 (EDT)

branch: master
commit d869e6c6ba0e9003faa8ce505645b4ccbeaadd5c
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Oct 4 18:02:10 2024 +0200

    * tp/Texinfo/XS/convert/convert_html.c
    (html_setup_output_simple_page),
    tp/Texinfo/XS/convert/html_prepare_converter.c (html_set_pages_files):
    readd self->pending_closes initialization that disappeared.
    
    * tp/Texinfo/XS/convert/convert_html.c (html_command_description):
    call html_get_target instead of find_element_target.
---
 ChangeLog                                      | 25 ++++++++++++++++++-------
 tp/Texinfo/XS/convert/convert_html.c           |  9 +++++++--
 tp/Texinfo/XS/convert/html_prepare_converter.c |  6 ++++++
 3 files changed, 31 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 09a71df5b7..94501a7097 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,13 +1,12 @@
 2024-10-04  Patrice Dumas  <pertusus@free.fr>
 
-       * tp/Texinfo/XS/convert/convert_html.c,
-       tp/Texinfo/XS/convert/html_prepare_converter.c
-       (commands_internal_open_table): remove duplicate
-       commands_internal_open_table from convert_html.c, add
-       html_open_node_part_command.
+       * tp/Texinfo/XS/convert/convert_html.c
+       (html_setup_output_simple_page),
+       tp/Texinfo/XS/convert/html_prepare_converter.c (html_set_pages_files):
+       readd self->pending_closes initialization that disappeared.
 
-       * tp/Texinfo/XS/convert/convert_html.h: declare node_part_command
-       open function.
+       * tp/Texinfo/XS/convert/convert_html.c (html_command_description):
+       call html_get_target instead of find_element_target.
 
 2024-08-14  Patrice Dumas  <pertusus@free.fr>
 
@@ -18,6 +17,7 @@
        * tp/Texinfo/XS/convert/convert_html.c (html_get_top_unit)
        (html_set_file_source_info, html_add_to_files_source_info)
        (html_find_file_source_info, html_setup_output_simple_page):
+       prepend html_ and declare.
 
        * tp/Texinfo/XS/convert/html_prepare_converter.c (html_get_target)
        (html_prepare_output_units_global_targets)
@@ -82,6 +82,17 @@
        html_convert_output, not in setup_output, to delay modifications
        to the start of the conversion.
 
+2024-10-04  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/convert_html.c,
+       tp/Texinfo/XS/convert/html_prepare_converter.c
+       (commands_internal_open_table): remove duplicate
+       commands_internal_open_table from convert_html.c, add
+       html_open_node_part_command.
+
+       * tp/Texinfo/XS/convert/convert_html.h: declare node_part_command
+       open function.
+
 2024-08-14  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/html_converter_types.h
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index 90c228ce9a..6ec72dfc1c 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -560,6 +560,12 @@ html_setup_output_simple_page (CONVERTER *self, const char 
*output_filename)
   memset (self->html_files_information.list, 0,
           self->html_files_information.number * sizeof (FILE_ASSOCIATED_INFO));
 
+  self->pending_closes.number = 1+1;
+  self->pending_closes.list = (STRING_STACK *)
+       malloc (self->pending_closes.number * sizeof (STRING_STACK));
+  memset (self->pending_closes.list, 0,
+          self->pending_closes.number * sizeof (STRING_STACK));
+
   self->page_name_number.number = 1;
   self->page_name_number.list = (PAGE_NAME_NUMBER *)
       malloc (self->page_name_number.number * sizeof (PAGE_NAME_NUMBER));
@@ -2627,8 +2633,7 @@ html_command_description (CONVERTER *self, const ELEMENT 
*command,
           if (!node_description)
             return 0;
 
-          node_target_info
-            = find_element_target (self->html_targets, node);
+          node_target_info = html_get_target (self, node);
           node_target_info->formatted_nodedescription_nr++;
           formatted_nodedescription_nr
             = node_target_info->formatted_nodedescription_nr;
diff --git a/tp/Texinfo/XS/convert/html_prepare_converter.c 
b/tp/Texinfo/XS/convert/html_prepare_converter.c
index c1d4bbb80d..4e1748375d 100644
--- a/tp/Texinfo/XS/convert/html_prepare_converter.c
+++ b/tp/Texinfo/XS/convert/html_prepare_converter.c
@@ -4532,6 +4532,12 @@ html_set_pages_files (CONVERTER *self, const 
OUTPUT_UNIT_LIST *output_units,
   memset (self->html_files_information.list, 0,
           self->html_files_information.number * sizeof (FILE_ASSOCIATED_INFO));
 
+  self->pending_closes.number = self->output_unit_files.number +1;
+  self->pending_closes.list = (STRING_STACK *)
+    malloc (self->pending_closes.number * sizeof (STRING_STACK));
+  memset (self->pending_closes.list, 0,
+          self->pending_closes.number * sizeof (STRING_STACK));
+
   return files_source_info;
 }
 



reply via email to

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