texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/convert/converter.c (new_converte


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/convert/converter.c (new_converter) (set_converter_init_information): call init_generic_converter in set_converter_init_information, not in new_converter, such that new_converter only allocate the converter. Also it is more similar to Perl code.
Date: Tue, 03 Dec 2024 16:56:40 -0500

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 0663afb9e2 * tp/Texinfo/XS/convert/converter.c (new_converter) 
(set_converter_init_information): call init_generic_converter in 
set_converter_init_information, not in new_converter, such that new_converter 
only allocate the converter.  Also it is more similar to Perl code.
0663afb9e2 is described below

commit 0663afb9e275d2d5802c6a0fb9bf2a15b7045257
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Dec 3 22:56:33 2024 +0100

    * tp/Texinfo/XS/convert/converter.c (new_converter)
    (set_converter_init_information): call init_generic_converter in
    set_converter_init_information, not in new_converter, such that
    new_converter only allocate the converter.  Also it is more similar to
    Perl code.
---
 ChangeLog                         | 8 ++++++++
 tp/Texinfo/XS/convert/converter.c | 4 ++--
 tp/Texinfo/XS/typemap             | 0
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 99b3768c10..067eb502e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-12-03  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/converter.c (new_converter)
+       (set_converter_init_information): call init_generic_converter in
+       set_converter_init_information, not in new_converter, such that
+       new_converter only allocate the converter.  Also it is more similar to
+       Perl code.
+
 2024-12-03  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/Makefile.am (MiscXS_la_SOURCES),
diff --git a/tp/Texinfo/XS/convert/converter.c 
b/tp/Texinfo/XS/convert/converter.c
index fe7870f51f..b8b61da959 100644
--- a/tp/Texinfo/XS/convert/converter.c
+++ b/tp/Texinfo/XS/convert/converter.c
@@ -287,8 +287,6 @@ new_converter (enum converter_format format)
 
   converter->format = format;
 
-  init_generic_converter (converter);
-
   converter_list[converter_index] = converter;
   converter->converter_descriptor = converter_index +1;
 
@@ -337,6 +335,8 @@ set_converter_init_information (CONVERTER *converter,
                             CONVERTER_INITIALIZATION_INFO *format_defaults,
                             CONVERTER_INITIALIZATION_INFO *user_conf)
 {
+  init_generic_converter (converter);
+
   apply_converter_info (converter, format_defaults, 0);
 
   /* Also keep format_defaults options as an OPTIONS structure */
diff --git a/tp/Texinfo/XS/typemap b/tp/Texinfo/XS/typemap
deleted file mode 100644
index e69de29bb2..0000000000



reply via email to

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