[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/Makefile.am (libtexinfo_convert_l
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/XS/Makefile.am (libtexinfo_convert_la_SOURCES), tp/Texinfo/XS/convert/texinfo.c: rename txi_converter_api.c as texinfo.c. |
Date: |
Thu, 03 Oct 2024 17:20:55 -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 e6fbdcdc6d * tp/Texinfo/XS/Makefile.am
(libtexinfo_convert_la_SOURCES), tp/Texinfo/XS/convert/texinfo.c: rename
txi_converter_api.c as texinfo.c.
e6fbdcdc6d is described below
commit e6fbdcdc6dce368097a920c8786db11b55b82647
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Aug 9 09:29:37 2024 +0200
* tp/Texinfo/XS/Makefile.am (libtexinfo_convert_la_SOURCES),
tp/Texinfo/XS/convert/texinfo.c: rename txi_converter_api.c as
texinfo.c.
* tp/Texinfo/XS/convert/texinfo.c (txi_complete_document): return
void.
---
ChangeLog | 9 +++++++++
tp/Texinfo/XS/Makefile.am | 4 ++--
tp/Texinfo/XS/convert/{txi_converter_api.c => texinfo.c} | 6 ++----
tp/Texinfo/XS/convert/{txi_converter_api.h => texinfo.h} | 15 ++++++++++-----
tp/Texinfo/XS/teximakehtml.c | 2 +-
5 files changed, 24 insertions(+), 12 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e1f3faab0d..be6d45faa8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-08-09 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/Makefile.am (libtexinfo_convert_la_SOURCES),
+ tp/Texinfo/XS/convert/texinfo.c: rename txi_converter_api.c as
+ texinfo.c.
+
+ * tp/Texinfo/XS/convert/texinfo.c (txi_complete_document): return
+ void.
+
2024-08-09 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/main/translations.c: add const.
diff --git a/tp/Texinfo/XS/Makefile.am b/tp/Texinfo/XS/Makefile.am
index a608fed007..9770966e72 100644
--- a/tp/Texinfo/XS/Makefile.am
+++ b/tp/Texinfo/XS/Makefile.am
@@ -386,8 +386,8 @@ C_libtexinfo_convert_sources = \
convert/converters_defaults.h \
convert/html_converter_init_options.c \
convert/html_converter_init_options.h \
- convert/txi_converter_api.c \
- convert/txi_converter_api.h
+ convert/texinfo.c \
+ convert/texinfo.h
XS_libtexinfo_convert_sources = \
convert/build_html_perl_state.h \
diff --git a/tp/Texinfo/XS/convert/txi_converter_api.c
b/tp/Texinfo/XS/convert/texinfo.c
similarity index 99%
rename from tp/Texinfo/XS/convert/txi_converter_api.c
rename to tp/Texinfo/XS/convert/texinfo.c
index 7f4ea8e19f..ac22f26a64 100644
--- a/tp/Texinfo/XS/convert/txi_converter_api.c
+++ b/tp/Texinfo/XS/convert/texinfo.c
@@ -31,7 +31,7 @@
#include "transformations.h"
#include "converter.h"
#include "convert_html.h"
-#include "txi_converter_api.h"
+#include "texinfo.h"
void
txi_setup (const char *localesdir, int texinfo_uninstalled,
@@ -54,7 +54,6 @@ txi_parser (const char *file_path, const char
*locale_encoding,
{
char *input_file_name_and_directory[2];
char *input_directory;
- size_t document_descriptor = 0;
int i;
reset_parser (0);
@@ -86,7 +85,7 @@ txi_parser (const char *file_path, const char
*locale_encoding,
No implementation in Perl, as the modules are loaded on demand, which makes
it impossible
*/
-int
+void
txi_complete_document (DOCUMENT *document, unsigned long flags,
int format_menu)
{
@@ -174,7 +173,6 @@ txi_converter (const char *format, const char
*locale_encoding,
{
size_t converter_descriptor;
CONVERTER *converter;
- int i;
enum converter_format converter_format = find_format_data_index (format);
CONVERTER_INITIALIZATION_INFO *format_defaults;
CONVERTER_INITIALIZATION_INFO *conf;
diff --git a/tp/Texinfo/XS/convert/txi_converter_api.h
b/tp/Texinfo/XS/convert/texinfo.h
similarity index 86%
rename from tp/Texinfo/XS/convert/txi_converter_api.h
rename to tp/Texinfo/XS/convert/texinfo.h
index 3df5516e54..2a5711eeb5 100644
--- a/tp/Texinfo/XS/convert/txi_converter_api.h
+++ b/tp/Texinfo/XS/convert/texinfo.h
@@ -1,8 +1,11 @@
-/* txi_html_api.h - API of conversion of Texinfo document to HTML */
-#ifndef TXI_HTML_API_H
-#define TXI_HTML_API_H
+/* texinfo.h - Texinfo API */
+#ifndef TEXINFO_H
+#define TEXINFO_H
+
+#include <stddef.h>
#include "document_types.h"
+#include "converter_types.h"
/* document structuring and transformations selection flags */
#define STTF_relate_index_entries_to_table_items 0x0001
@@ -31,11 +34,13 @@ void
txi_parser (const char *file_path, const char *locale_encoding,
const char **expanded_formats);
-int txi_complete_document (DOCUMENT *document, unsigned long flags,
- int format_menu);
+void txi_complete_document (DOCUMENT *document, unsigned long flags,
+ int format_menu);
CONVERTER *txi_converter (const char *format, const char *locale_encoding,
const char *program_file);
+
char *txi_html_output (CONVERTER *converter, DOCUMENT *document);
+
#endif
diff --git a/tp/Texinfo/XS/teximakehtml.c b/tp/Texinfo/XS/teximakehtml.c
index 83f596ab6b..a6d39c989e 100644
--- a/tp/Texinfo/XS/teximakehtml.c
+++ b/tp/Texinfo/XS/teximakehtml.c
@@ -37,7 +37,7 @@
*/
/* retrieve_document remove_document_descriptor */
#include "document.h"
-#include "txi_converter_api.h"
+#include "texinfo.h"
#include "converter.h"
#include "convert_html.h"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/Makefile.am (libtexinfo_convert_la_SOURCES), tp/Texinfo/XS/convert/texinfo.c: rename txi_converter_api.c as texinfo.c.,
Patrice Dumas <=