[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Tue, 12 Mar 2024 13:02:28 -0400 (EDT) |
branch: master
commit cc7ea4199a80e9c41deafddec870631d4a251703
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Mar 12 18:02:22 2024 +0100
* tp/Texinfo/XS/convert/get_html_perl_info.c
(html_converter_initialize_sv), tp/Texinfo/XS/main/converter_types.h
(CONVERTER): count the number of file_id_setting references actually set.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/convert/get_html_perl_info.c | 1 +
tp/Texinfo/XS/main/converter_types.h | 1 +
3 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 95e34194db..d50281536c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-12 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/convert/get_html_perl_info.c
+ (html_converter_initialize_sv), tp/Texinfo/XS/main/converter_types.h
+ (CONVERTER): count the number of file_id_setting references actually
set.
+
2024-03-12 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/convert/get_html_perl_info.c
diff --git a/tp/Texinfo/XS/convert/get_html_perl_info.c
b/tp/Texinfo/XS/convert/get_html_perl_info.c
index 224227bfa9..58899c2c33 100644
--- a/tp/Texinfo/XS/convert/get_html_perl_info.c
+++ b/tp/Texinfo/XS/convert/get_html_perl_info.c
@@ -562,6 +562,7 @@ html_converter_initialize_sv (SV *converter_sv,
{\
converter->file_id_setting_refs[FIS_##name]\
= (const void *) (* name##_sv);\
+ converter->file_id_setting_ref_number++; \
}\
}
HTML_FILE_ID_SETTING_NAMES_LIST
diff --git a/tp/Texinfo/XS/main/converter_types.h
b/tp/Texinfo/XS/main/converter_types.h
index e763f6e3db..dac79a7f71 100644
--- a/tp/Texinfo/XS/main/converter_types.h
+++ b/tp/Texinfo/XS/main/converter_types.h
@@ -731,6 +731,7 @@ typedef struct CONVERTER {
/* perl function references. This should be SV *sv,
but we don't want to include the Perl headers everywhere; */
const void *file_id_setting_refs[FIS_external_target_non_split_name+1];
+ int file_id_setting_ref_number; /* number of references actually set */
FORMATTING_REFERENCE
formatting_references[FR_format_translate_message+1];
FORMATTING_REFERENCE