texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/Makefile.am (libtexinfoxs_la_SOUR


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/Makefile.am (libtexinfoxs_la_SOURCES), tp/Texinfo/XS/main/call_perl_function.h: add call_perl_function.h file for a more common code, also given that these functions should probably only called from the HTML converter.
Date: Sat, 28 Oct 2023 09:08:48 -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 411f34e35d * tp/Texinfo/XS/Makefile.am (libtexinfoxs_la_SOURCES), 
tp/Texinfo/XS/main/call_perl_function.h: add call_perl_function.h file for a 
more common code, also given that these functions should probably only called 
from the HTML converter.
411f34e35d is described below

commit 411f34e35de51c093ff8f4a0cf6dd564ba23c85b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Oct 28 15:08:51 2023 +0200

    * tp/Texinfo/XS/Makefile.am (libtexinfoxs_la_SOURCES),
    tp/Texinfo/XS/main/call_perl_function.h: add call_perl_function.h file
    for a more common code, also given that these functions should
    probably only called from the HTML converter.
---
 ChangeLog                                          |  7 +++++
 tp/Texinfo/XS/Makefile.am                          |  3 +-
 tp/Texinfo/XS/convert/convert_html.c               |  1 +
 tp/Texinfo/XS/main/call_perl_function.c            |  2 +-
 .../main/{tree_perl_api.h => call_perl_function.h} | 10 ++-----
 tp/Texinfo/XS/main/tree_perl_api.h                 | 35 ----------------------
 6 files changed, 14 insertions(+), 44 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a334127f59..d083e04488 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-10-28  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/Makefile.am (libtexinfoxs_la_SOURCES),
+       tp/Texinfo/XS/main/call_perl_function.h: add call_perl_function.h file
+       for a more common code, also given that these functions should
+       probably only called from the HTML converter. 
+
 2023-10-28  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/HTML.pm (_convert_def_line_type): fix call of
diff --git a/tp/Texinfo/XS/Makefile.am b/tp/Texinfo/XS/Makefile.am
index 2dc36990ed..dd9ae71fe4 100644
--- a/tp/Texinfo/XS/Makefile.am
+++ b/tp/Texinfo/XS/Makefile.am
@@ -287,7 +287,8 @@ libtexinfoxs_la_SOURCES= \
                      main/build_perl_info.h \
                      main/get_perl_info.c \
                      main/get_perl_info.h \
-                     main/call_perl_function.c
+                     main/call_perl_function.c \
+                     main/call_perl_function.h
 
 # locate include files under out-of-source builds.
 libtexinfoxs_la_CPPFLAGS = -I$(srcdir)/main -I$(srcdir)/convert $(AM_CPPFLAGS) 
$(XSLIBS_CPPFLAGS)
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index 868d4f8996..657a1072c6 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -35,6 +35,7 @@
 #include "convert_to_texinfo.h"
 #include "translations.h"
 #include "convert_utils.h"
+#include "call_perl_function.h"
 #include "convert_html.h"
 
 
diff --git a/tp/Texinfo/XS/main/call_perl_function.c 
b/tp/Texinfo/XS/main/call_perl_function.c
index a3da5bfab5..cf1f9c9dc9 100644
--- a/tp/Texinfo/XS/main/call_perl_function.c
+++ b/tp/Texinfo/XS/main/call_perl_function.c
@@ -31,8 +31,8 @@
 #undef context
 
 #include "utils.h"
-#include "tree_perl_api.h"
 #include "build_perl_info.h"
+#include "call_perl_function.h"
 
 char *
 call_nodenamenormalization_unicode_to_transliterate (char *text)
diff --git a/tp/Texinfo/XS/main/tree_perl_api.h 
b/tp/Texinfo/XS/main/call_perl_function.h
similarity index 90%
copy from tp/Texinfo/XS/main/tree_perl_api.h
copy to tp/Texinfo/XS/main/call_perl_function.h
index 501076f132..4bbe99a16e 100644
--- a/tp/Texinfo/XS/main/tree_perl_api.h
+++ b/tp/Texinfo/XS/main/call_perl_function.h
@@ -1,14 +1,10 @@
-/* tree_perl_api.h - API to interact with perl from C code */
-#ifndef TREE_PERL_API_H
-#define TREE_PERL_API_H
+/* call_perl_function.h - API to interact with perl from C code */
+#ifndef CALL_PERL_FUNCTION_H
+#define CALL_PERL_FUNCTION_H
 
 #include "tree_types.h"
 #include "utils.h"
 
-/* in build_perl_info */
-void unregister_perl_tree_element (ELEMENT *e);
-
-/* in call_perl_function */
 char *call_nodenamenormalization_unicode_to_transliterate (char *text);
 
 TARGET_FILENAME *call_file_id_setting_special_unit_target_file_name (
diff --git a/tp/Texinfo/XS/main/tree_perl_api.h 
b/tp/Texinfo/XS/main/tree_perl_api.h
index 501076f132..c59744130c 100644
--- a/tp/Texinfo/XS/main/tree_perl_api.h
+++ b/tp/Texinfo/XS/main/tree_perl_api.h
@@ -3,43 +3,8 @@
 #define TREE_PERL_API_H
 
 #include "tree_types.h"
-#include "utils.h"
 
 /* in build_perl_info */
 void unregister_perl_tree_element (ELEMENT *e);
 
-/* in call_perl_function */
-char *call_nodenamenormalization_unicode_to_transliterate (char *text);
-
-TARGET_FILENAME *call_file_id_setting_special_unit_target_file_name (
-                     CONVERTER *self, OUTPUT_UNIT *special_unit, char *target,
-                                                      char *default_filename);
-char *call_file_id_setting_label_target_name (CONVERTER *self,
-                       char *normalized, ELEMENT *label_element, char *target,
-                       int *called);
-char *call_file_id_setting_node_file_name (CONVERTER *self,
-                       ELEMENT *target_element, char *node_filename,
-                       int *called);
-TARGET_CONTENTS_FILENAME * call_file_id_setting_sectioning_command_target_name
-                     (CONVERTER *self,
-                      ELEMENT *command, char *target, char *target_contents,
-                      char *target_shortcontents, char *filename);
-FILE_NAME_PATH *call_file_id_setting_unit_file_name (CONVERTER *self,
-                                                     OUTPUT_UNIT *output_unit,
-                                               char *filename, char *filepath);
-char *call_formatting_function_format_title_titlepage (CONVERTER *self);
-
-char *call_types_conversion (CONVERTER *self, enum element_type type,
-                             ELEMENT *element, char *content);
-char *call_types_open (CONVERTER *self, enum element_type type,
-                       ELEMENT *element);
-char *call_commands_conversion (CONVERTER *self, enum command_id cmd,
-                          ELEMENT *element, HTML_ARGS_FORMATTED 
*args_formatted,
-                          const char *content);
-char *call_commands_open (CONVERTER *self, enum command_id cmd,
-                          ELEMENT *element);
-char *call_output_units_conversion (CONVERTER *self,
-                                    enum output_unit_type unit_type,
-                                OUTPUT_UNIT *output_unit, const char *content);
-
 #endif



reply via email to

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