[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Sat, 13 Apr 2024 13:56:26 -0400 (EDT) |
branch: master
commit 33d78f4b614513644e5005b138c16839d0f5a3de
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Apr 13 19:56:10 2024 +0200
* tp/Texinfo/XS/structuring_transfo/structuring.c: make some functions
static.
---
ChangeLog | 5 +++++
tp/Texinfo/Structuring.pm | 3 +--
tp/Texinfo/XS/structuring_transfo/structuring.c | 9 +++++----
3 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index abf5b56508..5820cd6193 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-13 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/structuring_transfo/structuring.c: make some functions
+ static.
+
2024-04-13 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Common.pm (locate_file_in_dirs): rename locate_init_file
diff --git a/tp/Texinfo/Structuring.pm b/tp/Texinfo/Structuring.pm
index aa7ef6ed88..d8a280b5a7 100644
--- a/tp/Texinfo/Structuring.pm
+++ b/tp/Texinfo/Structuring.pm
@@ -40,7 +40,6 @@ use Texinfo::StructTransfXS;
use Texinfo::XSLoader;
-# for %root_commands
use Texinfo::Commands;
use Texinfo::Common;
@@ -49,7 +48,7 @@ use Texinfo::Convert::Texinfo qw(target_element_to_texi_label
link_element_to_texi);
# for internal references and misc uses
use Texinfo::Convert::NodeNameNormalization;
-# for new_master_menu translations
+# for translations related to new master menu
use Texinfo::Translations;
require Exporter;
diff --git a/tp/Texinfo/XS/structuring_transfo/structuring.c
b/tp/Texinfo/XS/structuring_transfo/structuring.c
index 5755aa538f..3d9713f338 100644
--- a/tp/Texinfo/XS/structuring_transfo/structuring.c
+++ b/tp/Texinfo/XS/structuring_transfo/structuring.c
@@ -528,7 +528,7 @@ get_node_node_childs_from_sectioning (const ELEMENT *node)
return node_childs;
}
-char **
+static char **
register_referenced_node (ELEMENT *node, char **referenced_identifiers,
size_t *referenced_identifier_space_ptr,
size_t *referenced_identifier_number_ptr)
@@ -964,7 +964,7 @@ set_menus_node_directions (DOCUMENT *document)
static char *direction_bases[] = {"section_directions", "toplevel_directions"};
-ELEMENT *
+static ELEMENT *
section_direction_associated_node (const ELEMENT *section,
enum directions direction)
{
@@ -1940,7 +1940,7 @@ new_complete_node_menu (const ELEMENT *node, DOCUMENT
*document,
return (new_menu);
}
-ELEMENT_LIST *
+static ELEMENT_LIST *
print_down_menus (const ELEMENT *node, ELEMENT_STACK *up_nodes,
ERROR_MESSAGE_LIST *error_messages,
const OPTIONS *options,
@@ -2179,7 +2179,8 @@ new_master_menu (ERROR_MESSAGE_LIST *error_messages,
}
}
-ELEMENT_LIST *
+/* In Texinfo::Common */
+static ELEMENT_LIST *
protect_colon (const char *type, ELEMENT *current, void *argument)
{
return protect_text(current, ":");