texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: Changes in spacing


From: Patrice Dumas
Subject: branch master updated: Changes in spacing
Date: Sun, 12 May 2024 15:17:54 -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 2c2dde5a94 Changes in spacing
2c2dde5a94 is described below

commit 2c2dde5a944493a32bf651e1effc8f7b5f454dba
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun May 12 21:17:41 2024 +0200

    Changes in spacing
---
 tp/Texinfo/XS/convert/call_html_perl_function.c    | 72 +++++++++++-----------
 tp/Texinfo/XS/convert/convert_html.c               | 69 +++++++++++----------
 tp/Texinfo/XS/convert/converter.c                  |  6 +-
 tp/Texinfo/XS/convert/converter.h                  |  4 +-
 tp/Texinfo/XS/convert/get_html_perl_info.c         | 36 +++++------
 tp/Texinfo/XS/main/api_to_perl.c                   |  4 +-
 tp/Texinfo/XS/main/build_perl_info.c               | 14 ++---
 tp/Texinfo/XS/main/builtin_commands.c              |  8 +--
 tp/Texinfo/XS/main/call_perl_function.c            |  8 +--
 tp/Texinfo/XS/main/convert_to_texinfo.c            |  4 +-
 tp/Texinfo/XS/main/convert_utils.c                 | 22 +++----
 tp/Texinfo/XS/main/document.c                      |  6 +-
 tp/Texinfo/XS/main/errors.c                        |  4 +-
 tp/Texinfo/XS/main/get_perl_info.c                 | 22 +++----
 tp/Texinfo/XS/main/manipulate_indices.c            |  8 +--
 tp/Texinfo/XS/main/manipulate_tree.c               | 18 +++---
 tp/Texinfo/XS/main/node_name_normalization.c       |  4 +-
 tp/Texinfo/XS/main/output_unit.c                   |  6 +-
 tp/Texinfo/XS/main/targets.c                       | 20 +++---
 tp/Texinfo/XS/main/translations.c                  | 22 +++----
 tp/Texinfo/XS/main/unicode.c                       | 14 ++---
 tp/Texinfo/XS/main/utils.c                         | 28 ++++-----
 tp/Texinfo/XS/parsetexi/indices.c                  |  2 +-
 tp/Texinfo/XS/structuring_transfo/structuring.c    | 26 ++++----
 .../XS/structuring_transfo/transformations.c       | 12 ++--
 25 files changed, 220 insertions(+), 219 deletions(-)

diff --git a/tp/Texinfo/XS/convert/call_html_perl_function.c 
b/tp/Texinfo/XS/convert/call_html_perl_function.c
index 1f741dfa45..5904960a12 100644
--- a/tp/Texinfo/XS/convert/call_html_perl_function.c
+++ b/tp/Texinfo/XS/convert/call_html_perl_function.c
@@ -91,7 +91,7 @@ call_file_id_setting_special_unit_target_file_name (CONVERTER 
*self,
       SPAGAIN;
 
       if (count != 2)
-        croak("special_unit_target_file_name should return 2 items\n");
+        croak ("special_unit_target_file_name should return 2 items\n");
 
       filename_sv = POPs;
       if (SvOK (filename_sv))
@@ -164,7 +164,7 @@ call_file_id_setting_label_target_name (CONVERTER *self,
       SPAGAIN;
 
       if (count != 1)
-        croak("label_target_name should return 1 item\n");
+        croak ("label_target_name should return 1 item\n");
 
       target_ret_sv = POPs;
       target_ret = SvPVutf8 (target_ret_sv, len);
@@ -220,7 +220,7 @@ call_file_id_setting_node_file_name (CONVERTER *self,
       SPAGAIN;
 
       if (count != 1)
-        croak("node_file_name should return 1 item\n");
+        croak ("node_file_name should return 1 item\n");
 
       node_filename_ret_sv = POPs;
       /* user can return undef */
@@ -292,7 +292,7 @@ call_file_id_setting_sectioning_command_target_name 
(CONVERTER *self,
       SPAGAIN;
 
       if (count != 4)
-        croak("sectioning_command_target_name should return 4 items\n");
+        croak ("sectioning_command_target_name should return 4 items\n");
 
       filename_ret_sv = POPs;
       filename_ret = SvPVutf8 (filename_ret_sv, len);
@@ -357,7 +357,7 @@ call_file_id_setting_unit_file_name (CONVERTER *self,
       SPAGAIN;
 
       if (count != 2)
-        croak("unit_file_name should return 2 items\n");
+        croak ("unit_file_name should return 2 items\n");
 
       filepath_ret_sv = POPs;
       if (SvOK (filepath_ret_sv))
@@ -427,7 +427,7 @@ call_file_id_setting_external_target_split_name (CONVERTER 
*self,
       SPAGAIN;
 
       if (count != 3)
-        croak("external_target_split_name should return 3 items\n");
+        croak ("external_target_split_name should return 3 items\n");
 
       filename_sv = POPs;
       if (SvOK (filename_sv))
@@ -508,7 +508,7 @@ call_file_id_setting_external_target_non_split_name 
(CONVERTER *self,
       SPAGAIN;
 
       if (count != 2)
-        croak("external_target_non_split_name should return 2 items\n");
+        croak ("external_target_non_split_name should return 2 items\n");
 
       file_sv = POPs;
       if (SvOK (file_sv))
@@ -579,7 +579,7 @@ call_formatting_function_format_comment (CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_comment should return 1 item\n");
+    croak ("format_comment should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -631,7 +631,7 @@ call_formatting_function_format_program_string (CONVERTER 
*self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_program_string should return 1 item\n");
+    croak ("format_program_string should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -683,7 +683,7 @@ call_formatting_function_format_titlepage (CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_titlepage should return 1 item\n");
+    croak ("format_titlepage should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -735,7 +735,7 @@ call_formatting_function_format_title_titlepage (CONVERTER 
*self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_title_titlepage should return 1 item\n");
+    croak ("format_title_titlepage should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -789,7 +789,7 @@ call_formatting_function_format_protect_text (CONVERTER 
*self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_protect_text should return 1 item\n");
+    croak ("format_protect_text should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -841,7 +841,7 @@ call_formatting_function_format_footnotes_segment 
(CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_footnotes_segment should return 1 item\n");
+    croak ("format_footnotes_segment should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -893,7 +893,7 @@ call_formatting_function_format_footnotes_sequence 
(CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_footnotes_sequence should return 1 item\n");
+    croak ("format_footnotes_sequence should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -947,7 +947,7 @@ call_formatting_function_format_css_lines (CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_css_lines should return 1 item\n");
+    croak ("format_css_lines should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1008,7 +1008,7 @@ call_formatting_function_format_end_file (CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_end_file should return 1 item\n");
+    croak ("format_end_file should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1070,7 +1070,7 @@ call_formatting_function_format_begin_file (CONVERTER 
*self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_begin_file should return 1 item\n");
+    croak ("format_begin_file should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1127,7 +1127,7 @@ call_formatting_function_format_translate_message 
(CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_translate_message should return 1 item\n");
+    croak ("format_translate_message should return 1 item\n");
 
   result_sv = POPs;
   if (SvOK (result_sv))
@@ -1196,7 +1196,7 @@ call_formatting_function_format_button_icon_img 
(CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_button_icon_img should return 1 item\n");
+    croak ("format_button_icon_img should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1257,7 +1257,7 @@ call_formatting_function_format_button (CONVERTER *self,
   SPAGAIN;
 
   if (count != 3)
-    croak("format_button should return 3 items\n");
+    croak ("format_button should return 3 items\n");
 
   need_delimiter_sv = POPs;
   if (SvOK (need_delimiter_sv))
@@ -1336,7 +1336,7 @@ call_formatting_function_format_navigation_panel 
(CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_navigation_panel should return 1 item\n");
+    croak ("format_navigation_panel should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1396,7 +1396,7 @@ call_formatting_function_format_navigation_header 
(CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_navigation_header should return 1 item\n");
+    croak ("format_navigation_header should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1484,7 +1484,7 @@ call_formatting_function_format_heading_text (CONVERTER 
*self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_heading_text should return 1 item\n");
+    croak ("format_heading_text should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1549,7 +1549,7 @@ call_formatting_function_format_contents (CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_contents should return 1 item\n");
+    croak ("format_contents should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1606,7 +1606,7 @@ call_formatting_function_format_separate_anchor 
(CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_separate_anchor should return 1 item\n");
+    croak ("format_separate_anchor should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1665,7 +1665,7 @@ call_formatting_function_format_element_header (CONVERTER 
*self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_element_header should return 1 item\n");
+    croak ("format_element_header should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1728,7 +1728,7 @@ call_formatting_function_format_element_footer (CONVERTER 
*self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_element_footer should return 1 item\n");
+    croak ("format_element_footer should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1785,7 +1785,7 @@ call_formatting_function_format_node_redirection_page 
(CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("format_node_redirection_page should return 1 item\n");
+    croak ("format_node_redirection_page should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -1856,7 +1856,7 @@ call_types_conversion (CONVERTER *self, const enum 
element_type type,
   SPAGAIN;
 
   if (count != 1)
-    croak("types_conversion should return 1 item\n");
+    croak ("types_conversion should return 1 item\n");
 
   result_sv = POPs;
   /* it is encoded using non strict encoding, so the UTF-8 could be invalid.
@@ -1912,7 +1912,7 @@ call_types_open (CONVERTER *self, const enum element_type 
type,
   SPAGAIN;
 
   if (count != 1)
-    croak("types_open should return 1 item\n");
+    croak ("types_open should return 1 item\n");
 
   result_sv = POPs;
   /* it is encoded using non strict encoding, so the UTF-8 could be invalid.
@@ -1982,7 +1982,7 @@ call_commands_conversion (CONVERTER *self, const enum 
command_id cmd,
   SPAGAIN;
 
   if (count != 1)
-    croak("commands_conversion should return 1 item\n");
+    croak ("commands_conversion should return 1 item\n");
 
   result_sv = POPs;
   /* it is encoded using non strict encoding, so the UTF-8 could be invalid.
@@ -2042,7 +2042,7 @@ call_commands_open (CONVERTER *self, const enum 
command_id cmd,
   SPAGAIN;
 
   if (count != 1)
-    croak("commands_open should return 1 item\n");
+    croak ("commands_open should return 1 item\n");
 
   result_sv = POPs;
   /* it is encoded using non strict encoding, so the UTF-8 could be invalid.
@@ -2104,7 +2104,7 @@ call_output_units_conversion (CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("output_units_conversion should return 1 item\n");
+    croak ("output_units_conversion should return 1 item\n");
 
 
   result_sv = POPs;
@@ -2165,7 +2165,7 @@ call_special_unit_body_formatting (CONVERTER *self,
   SPAGAIN;
 
   if (count != 1)
-    croak("special_unit_body_formatting should return 1 item\n");
+    croak ("special_unit_body_formatting should return 1 item\n");
 
 
   result_sv = POPs;
@@ -2221,7 +2221,7 @@ call_button_simple_function (CONVERTER *self,
   SPAGAIN;
 
   if (count != 2)
-    croak("button_simple_function should return 2 items\n");
+    croak ("button_simple_function should return 2 items\n");
 
   need_delimiter_sv = POPs;
   if (SvOK (need_delimiter_sv))
@@ -2288,7 +2288,7 @@ call_button_direction_function (CONVERTER *self,
   SPAGAIN;
 
   if (count != 2)
-    croak("button_direction_function should return 2 items\n");
+    croak ("button_direction_function should return 2 items\n");
 
   need_delimiter_sv = POPs;
   if (SvOK (need_delimiter_sv))
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index e1421c0821..e96446da3b 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -515,7 +515,7 @@ find_element_target_search (const HTML_TARGET_LIST *targets,
 
   searched_element.element = element;
   result = (HTML_TARGET *) bsearch (&searched_element,
-               targets->list, targets->number, sizeof(HTML_TARGET),
+               targets->list, targets->number, sizeof (HTML_TARGET),
                compare_element_target);
   return result;
 }
@@ -931,7 +931,7 @@ find_page_name_number
 
   result = (PAGE_NAME_NUMBER *) bsearch (&searched_page_name,
                 page_name_number->list,
-                page_name_number->number, sizeof(PAGE_NAME_NUMBER),
+                page_name_number->number, sizeof (PAGE_NAME_NUMBER),
                 compare_page_name_number);
   if (!result)
     return 0;
@@ -1549,7 +1549,7 @@ prepare_special_units (CONVERTER *self, int 
output_units_descriptor)
 
   if (self->document->global_commands->footnotes.number > 0
       && self->conf->footnotestyle.string
-      && !strcmp(self->conf->footnotestyle.string, "separate")
+      && !strcmp (self->conf->footnotestyle.string, "separate")
       && output_units->number > 1)
     add_string ("footnotes", do_special);
 
@@ -2984,7 +2984,7 @@ find_htmlxref_manual
 
   result = (HTMLXREF_MANUAL *) bsearch (&searched_manual,
                 htmlxref_manuals->list,
-                htmlxref_manuals->number, sizeof(HTMLXREF_MANUAL),
+                htmlxref_manuals->number, sizeof (HTMLXREF_MANUAL),
                 compare_htmlxref_manual);
 
   return result;
@@ -3935,7 +3935,7 @@ html_internal_command_text (CONVERTER *self, const 
ELEMENT *command,
 
           if (command->cmd)
             {
-              const char *command_name = element_command_name(command);
+              const char *command_name = element_command_name (command);
               context_name = command_name;
               xasprintf (&explanation, "command_text:%s @%s",
                          html_command_text_type_name[type],
@@ -4032,7 +4032,7 @@ html_command_text (CONVERTER *self, const ELEMENT 
*command,
            argument, in a menu, or a reconstituted tree. */
         xasprintf (&context_str, "command_text %s @%s",
                    html_command_text_type_name[type],
-                   element_command_name(command));
+                   element_command_name (command));
       else if (command->type)
         xasprintf (&context_str, "command_text %s %s",
                    html_command_text_type_name[type],
@@ -4218,7 +4218,7 @@ find_css_selector_style
 
   result = (CSS_SELECTOR_STYLE *) bsearch (&searched_selector,
                 css_element_class_styles->list,
-                css_element_class_styles->number, sizeof(CSS_SELECTOR_STYLE),
+                css_element_class_styles->number, sizeof (CSS_SELECTOR_STYLE),
                 compare_selector_style);
 
   return result;
@@ -4815,7 +4815,7 @@ find_footnote_id_number (const CONVERTER *self, const 
char *footnote_id)
 
   result = (FOOTNOTE_ID_NUMBER *) bsearch (&searched_footnote_id,
                 self->shared_conversion_state.footnote_id_numbers,
-                global_footnotes->number, sizeof(FOOTNOTE_ID_NUMBER),
+                global_footnotes->number, sizeof (FOOTNOTE_ID_NUMBER),
                 compare_footnote_id);
   return result;
 }
@@ -6029,7 +6029,7 @@ html_default_format_heading_text (CONVERTER *self, const 
enum command_id cmd,
 
   text_append_n (result, ">", 1);
 
-  copiable_anchor = get_copiable_anchor(self, heading_target);
+  copiable_anchor = get_copiable_anchor (self, heading_target);
 
   if (copiable_anchor)
     text_append_n (result, "<span>", 6);
@@ -6111,7 +6111,8 @@ html_default_format_contents (CONVERTER *self, const enum 
command_id cmd,
   if (max_root_level < 1)
     max_root_level = 1;
   /*
-   fprintf(stderr, "ROOT_LEVEL Max: %d, Min: %d\n", max_root_level, 
min_root_level);
+   fprintf (stderr, "ROOT_LEVEL Max: %d, Min: %d\n", max_root_level,
+                                                     min_root_level);
    */
 
   if ((is_contents && !self->conf->BEFORE_TOC_LINES.string)
@@ -9067,7 +9068,7 @@ convert_uref_command (CONVERTER *self, const enum 
command_id cmd,
       if (strlen (replacement))
         text = replacement;
     }
-  if ((!text || !strlen(text)) && url_string)
+  if ((!text || !strlen (text)) && url_string)
     text = url_string;
 
   if (!url || !strlen (url))
@@ -9603,7 +9604,7 @@ css_string_accent (CONVERTER *self, const char *text,
                   if (!p)
                     {
                       char *first_char_text;
-                      uint8_t *first_char_u8 = malloc (7 * sizeof(uint8_t));
+                      uint8_t *first_char_u8 = malloc (7 * sizeof (uint8_t));
                       int first_char_len
                         = u8_uctomb (first_char_u8, first_char, 6);
                       if (first_char_len < 0)
@@ -9891,7 +9892,7 @@ mini_toc_internal (CONVERTER *self, const ELEMENT 
*element, TEXT *result)
         the same result for the other files, as the formatting is done in a
         global context, while taking the tree first and calling convert_tree
         converts in the current page context.
-         text = html_command_text(self, section, HTT_text_nonumber);
+         text = html_command_text (self, section, HTT_text_nonumber);
       */
           TREE_ADDED_ELEMENTS *command_tree
              = html_command_tree (self, section, 1);
@@ -10108,7 +10109,7 @@ convert_heading_command (CONVERTER *self, const enum 
command_id cmd,
       if (in_skipped_node_top == 1)
         {
           format_separate_anchor (self, element_id,
-                                  builtin_command_name(cmd), result);
+                                  builtin_command_name (cmd), result);
           text_append (result, element_header.text);
           free (element_header.text);
           text_append (result, tables_of_contents.text);
@@ -10128,7 +10129,7 @@ convert_heading_command (CONVERTER *self, const enum 
command_id cmd,
       if (level_corrected_cmd != cmd)
         {
           xasprintf (&level_set_class, "%s-level-set-%s",
-                     builtin_command_name(cmd),
+                     builtin_command_name (cmd),
                      builtin_command_name (level_corrected_cmd));
         }
     }
@@ -10350,7 +10351,7 @@ convert_heading_command (CONVERTER *self, const enum 
command_id cmd,
   else if (heading_id)
     {
    /* case of a lone node and no header, and case of an empty @top */
-      format_separate_anchor (self, heading_id, builtin_command_name(cmd),
+      format_separate_anchor (self, heading_id, builtin_command_name (cmd),
                               result);
     }
 
@@ -11597,7 +11598,7 @@ convert_itemize_command (CONVERTER *self, const enum 
command_id cmd,
     }
 
   classes = new_string_list ();
-  add_string (builtin_command_name(cmd), classes);
+  add_string (builtin_command_name (cmd), classes);
 
   if (mark_class_name)
     {
@@ -11661,7 +11662,7 @@ convert_enumerate_command (CONVERTER *self, const enum 
command_id cmd,
     }
 
   classes = new_string_list ();
-  add_string (builtin_command_name(cmd), classes);
+  add_string (builtin_command_name (cmd), classes);
 
   attribute_class = html_attribute_class (self, "ol", classes);
   destroy_strings_list (classes);
@@ -11746,7 +11747,7 @@ convert_multitable_command (CONVERTER *self, const enum 
command_id cmd,
     }
 
   classes = new_string_list ();
-  add_string (builtin_command_name(cmd), classes);
+  add_string (builtin_command_name (cmd), classes);
 
   attribute_class = html_attribute_class (self, "table", classes);
   destroy_strings_list (classes);
@@ -11775,7 +11776,7 @@ convert_xtable_command (CONVERTER *self, const enum 
command_id cmd,
     }
 
   classes = new_string_list ();
-  add_string (builtin_command_name(cmd), classes);
+  add_string (builtin_command_name (cmd), classes);
 
   attribute_class = html_attribute_class (self, "dl", classes);
   destroy_strings_list (classes);
@@ -13632,7 +13633,7 @@ convert_contents_command (CONVERTER *self, const enum 
command_id cmd,
       && self->document->sections_list
       && self->document->sections_list->number > 1)
     {
-      char *contents = contents_inline_element(self, used_cmd, element);
+      char *contents = contents_inline_element (self, used_cmd, element);
       if (contents)
         {
           text_append (result, contents);
@@ -14839,8 +14840,8 @@ convert_def_line_type (CONVERTER *self, const enum 
element_type type,
         }
 
       xasprintf (&alias_class, "%s-alias-%s",
-                    builtin_command_name(original_def_cmd),
-                    builtin_command_name(original_cmd));
+                    builtin_command_name (original_def_cmd),
+                    builtin_command_name (original_cmd));
     }
   else
     original_cmd = original_def_cmd;
@@ -14869,7 +14870,7 @@ convert_def_line_type (CONVERTER *self, const enum 
element_type type,
 
   classes = new_string_list ();
 
-  add_string (builtin_command_name(original_cmd), classes);
+  add_string (builtin_command_name (original_cmd), classes);
   if (alias_class)
     {
       add_string (alias_class, classes);
@@ -14878,7 +14879,7 @@ convert_def_line_type (CONVERTER *self, const enum 
element_type type,
   if (base_cmd != original_cmd)
     {
       char *class;
-      xasprintf (&class, "def-cmd-%s", builtin_command_name(base_cmd));
+      xasprintf (&class, "def-cmd-%s", builtin_command_name (base_cmd));
       add_string (class, classes);
       free (class);
     }
@@ -14892,7 +14893,7 @@ convert_def_line_type (CONVERTER *self, const enum 
element_type type,
       ELEMENT *root_code = new_element (ET__code);
       char *explanation;
 
-      xasprintf (&explanation, "DEF_TYPE %s", builtin_command_name(def_cmd));
+      xasprintf (&explanation, "DEF_TYPE %s", builtin_command_name (def_cmd));
 
       add_to_contents_as_array (root_code, parsed_def->type);
 
@@ -14935,7 +14936,7 @@ convert_def_line_type (CONVERTER *self, const enum 
element_type type,
       char *attribute_class = html_attribute_class (self, "strong",
                                                     &def_name_classes);
       char *explanation;
-      xasprintf (&explanation, "DEF_NAME %s", builtin_command_name(def_cmd));
+      xasprintf (&explanation, "DEF_NAME %s", builtin_command_name (def_cmd));
 
       ELEMENT *root_code = new_element (ET__code);
 
@@ -14960,12 +14961,12 @@ convert_def_line_type (CONVERTER *self, const enum 
element_type type,
     {
       char *args_formatted;
       char *explanation;
-      xasprintf (&explanation, "DEF_ARGS %s", builtin_command_name(def_cmd));
+      xasprintf (&explanation, "DEF_ARGS %s", builtin_command_name (def_cmd));
    /* arguments not only metasyntactic variables
       (deftypefn, deftypevr, deftypeop, deftypecv) */
       /* Texinfo::Common::def_no_var_arg_commands{$base_command_name} */
-      if (strlen (builtin_command_name(base_cmd)) >= 7
-          && !memcmp (builtin_command_name(base_cmd), "deftype", 7))
+      if (strlen (builtin_command_name (base_cmd)) >= 7
+          && !memcmp (builtin_command_name (base_cmd), "deftype", 7))
         {
           ELEMENT *root_code = new_element (ET__code);
 
@@ -15133,7 +15134,7 @@ convert_def_line_type (CONVERTER *self, const enum 
element_type type,
           char *explanation;
 
           xasprintf (&explanation, "DEF_CATEGORY %s",
-                     builtin_command_name(def_cmd));
+                     builtin_command_name (def_cmd));
 
           if (open_len)
             {
@@ -16889,7 +16890,7 @@ html_initialize_output_state (CONVERTER *self, const 
char *context)
     line_break_element = "<br>";
 
   self->line_break_element.string = line_break_element;
-  self->line_break_element.len = strlen(line_break_element);
+  self->line_break_element.len = strlen (line_break_element);
 
   sort_css_element_class_styles (self);
 
@@ -18399,7 +18400,7 @@ convert_to_html_internal (CONVERTER *self, const 
ELEMENT *element,
       text_init (&type_result);
       text_append (&type_result, "");
 
-      html_open_type_update_context(self, type);
+      html_open_type_update_context (self, type);
 
       if (self->type_open_function[type].type_open)
         (*self->type_open_function[type].type_open)
@@ -18972,7 +18973,7 @@ html_node_redirections (CONVERTER *self,
   FILE_SOURCE_INFO_LIST *files_source_info = &self->files_source_info;
   int redirection_files_done = 0;
   if (self->document->identifiers_target && self->conf->NODE_FILES.integer > 0
-      && strlen(output_file) > 0)
+      && strlen (output_file) > 0)
     {
       const LABEL_LIST *label_targets = self->document->labels_list;
       int i;
diff --git a/tp/Texinfo/XS/convert/converter.c 
b/tp/Texinfo/XS/convert/converter.c
index ce6a84e30e..9e72c4ea00 100644
--- a/tp/Texinfo/XS/convert/converter.c
+++ b/tp/Texinfo/XS/convert/converter.c
@@ -106,7 +106,7 @@ new_converter (void)
   registered_converter->converter_descriptor = converter_index +1;
 
   /*
-  fprintf(stderr, "REGISTER CONVERTER %zu %p %p %p\n", converter_index +1,
+  fprintf (stderr, "REGISTER CONVERTER %zu %p %p %p\n", converter_index +1,
                        converter, registered_converter, converter->document);
    */
   return converter_index +1;
@@ -1028,7 +1028,7 @@ next_for_tieaccent (const char *text, const char **next)
     }
   if (text[0] == '&')
     {
-      if (strlen (text) > 3 && isascii_alnum(*(text+1)))
+      if (strlen (text) > 3 && isascii_alnum (*(text+1)))
         {
           p = text +2;
           while (*p)
@@ -1060,7 +1060,7 @@ next_for_tieaccent (const char *text, const char **next)
           || (first_char >= 0x0030 && first_char <= 0x0039))
         {
           char *first_char_text;
-          uint8_t *first_char_u8 = malloc (7 * sizeof(uint8_t));
+          uint8_t *first_char_u8 = malloc (7 * sizeof (uint8_t));
           int first_char_len = u8_uctomb (first_char_u8, first_char, 6);
           if (first_char_len < 0)
             fatal ("u8_uctomb returns negative value");
diff --git a/tp/Texinfo/XS/convert/converter.h 
b/tp/Texinfo/XS/convert/converter.h
index 06256a0bae..b879a8473f 100644
--- a/tp/Texinfo/XS/convert/converter.h
+++ b/tp/Texinfo/XS/convert/converter.h
@@ -1,6 +1,6 @@
 /* converter.h - definitions for converter.c */
 #ifndef CONVERTER_H
-#define CONVERTER_H 
+#define CONVERTER_H
 
 #include <stddef.h>
 
@@ -76,7 +76,7 @@ typedef struct FLOAT_CAPTION_PREPENDED_ELEMENT {
 extern enum command_id no_brace_command_accent_upper_case[][2];
 
 CONVERTER *retrieve_converter (int converter_descriptor);
-size_t new_converter(void);
+size_t new_converter (void);
 void unregister_converter_descriptor (int converter_descriptor);
 
 void set_global_document_commands (CONVERTER *converter,
diff --git a/tp/Texinfo/XS/convert/get_html_perl_info.c 
b/tp/Texinfo/XS/convert/get_html_perl_info.c
index 58899c2c33..97f9c730d7 100644
--- a/tp/Texinfo/XS/convert/get_html_perl_info.c
+++ b/tp/Texinfo/XS/convert/get_html_perl_info.c
@@ -87,7 +87,7 @@ register_formatting_reference_with_default (char *type_string,
 
   dTHX;
 
-  default_formatting_reference_sv = register_formatting_reference_default(
+  default_formatting_reference_sv = register_formatting_reference_default (
                  type_string, formatting_reference, ref_name, default_hv);
 
   formatting_reference_sv
@@ -179,7 +179,7 @@ html_converter_initialize_sv (SV *converter_sv,
   default_css_string_formatting_references_hv
     = (HV *)SvRV (default_css_string_formatting_references);
 
-#define FETCH(key) key##_sv = hv_fetch (converter_hv, #key, strlen(#key), 0);
+#define FETCH(key) key##_sv = hv_fetch (converter_hv, #key, strlen (#key), 0);
   FETCH(htmlxref)
 
   if (htmlxref_sv)
@@ -1254,7 +1254,7 @@ html_converter_prepare_output_sv (SV *converter_sv, 
CONVERTER *converter)
 
 #undef FETCH
 
-#define FETCH(key) key##_sv = hv_fetch (element_hv, #key, strlen(#key), 0);
+#define FETCH(key) key##_sv = hv_fetch (element_hv, #key, strlen (#key), 0);
 
 /* find C Texinfo tree element based on element_sv perl tree element.
    Only for elements that can be targets of links. */
@@ -1370,7 +1370,7 @@ find_index_entry_numbers_index_entry_sv (CONVERTER 
*converter,
   index_entry_hv = (HV *) SvRV (index_entry_sv);
 
   index_name_sv = hv_fetch (index_entry_hv, "index_name",
-                            strlen("index_name") ,0);
+                            strlen ("index_name") ,0);
   if (index_name_sv)
     {
       index_name = SvPVutf8_nolen (*index_name_sv);
@@ -1379,7 +1379,7 @@ find_index_entry_numbers_index_entry_sv (CONVERTER 
*converter,
   if (index_name)
     {
       SV **number_sv = hv_fetch (index_entry_hv, "entry_number",
-                                 strlen("entry_number") ,0);
+                                 strlen ("entry_number") ,0);
 
       if (number_sv)
         {
@@ -1460,7 +1460,7 @@ html_set_shared_conversion_state (CONVERTER *converter, 
SV *converter_in,
     }
   else if (!strcmp (state_name, "footnote_id_numbers"))
     {
-      char *footnote_id = (char *)SvPVutf8_nolen(args_sv[0]);
+      char *footnote_id = (char *)SvPVutf8_nolen (args_sv[0]);
       int number = SvIV (args_sv[1]);
       FOOTNOTE_ID_NUMBER *footnote_id_number
        = find_footnote_id_number (converter, footnote_id);
@@ -1474,8 +1474,8 @@ html_set_shared_conversion_state (CONVERTER *converter, 
SV *converter_in,
       EXPLAINED_COMMAND_TYPE_LIST *type_explanations
        = &converter->shared_conversion_state.explained_commands;
       enum command_id cmd = lookup_builtin_command (cmdname);
-      char *type = (char *)SvPVutf8_nolen(args_sv[0]);
-      char *explanation = (char *)SvPVutf8_nolen(args_sv[1]);
+      char *type = (char *)SvPVutf8_nolen (args_sv[0]);
+      char *explanation = (char *)SvPVutf8_nolen (args_sv[1]);
       register_explained_command_string (type_explanations,
                                          cmd, type, explanation);
     }
@@ -1490,7 +1490,7 @@ html_set_shared_conversion_state (CONVERTER *converter, 
SV *converter_in,
     }
   else if (!strcmp (state_name, "formatted_listoffloats"))
     {
-      char *type = (char *)SvPVutf8_nolen(args_sv[0]);
+      char *type = (char *)SvPVutf8_nolen (args_sv[0]);
       int number = SvIV (args_sv[1]);
       if (converter->document && converter->document->listoffloats)
         {
@@ -1539,29 +1539,29 @@ html_get_shared_conversion_state (CONVERTER *converter, 
SV *converter_in,
       if (entry_number <= 0 || index_nr == 0)
         fatal ("index entry not found");
 
-      return newSViv(converter->shared_conversion_state
+      return newSViv (converter->shared_conversion_state
          .formatted_index_entries[index_nr-1][entry_number-1]);
     }
   else if (!strcmp (state_name, "html_menu_entry_index"))
-    return newSViv(converter->shared_conversion_state.html_menu_entry_index);
+    return newSViv (converter->shared_conversion_state.html_menu_entry_index);
   else if (!strcmp (state_name, "footnote_number"))
-    return newSViv(converter->shared_conversion_state.footnote_number);
+    return newSViv (converter->shared_conversion_state.footnote_number);
   else if (!strcmp (state_name, "footnote_id_numbers"))
     {
-      const char *footnote_id = (char *)SvPVutf8_nolen(args_sv[0]);
+      const char *footnote_id = (char *)SvPVutf8_nolen (args_sv[0]);
       const FOOTNOTE_ID_NUMBER *footnote_id_number
        = find_footnote_id_number (converter, footnote_id);
       if (footnote_id_number->number > 0)
-        return newSViv(footnote_id_number->number);
+        return newSViv (footnote_id_number->number);
     }
   else if (!strcmp (state_name, "explained_commands"))
     {
-      char *type = (char *)SvPVutf8_nolen(args_sv[0]);
+      char *type = (char *)SvPVutf8_nolen (args_sv[0]);
       enum command_id cmd = lookup_builtin_command (cmdname);
       EXPLAINED_COMMAND_TYPE_LIST *type_explanations
        = &converter->shared_conversion_state.explained_commands;
       EXPLAINED_COMMAND_TYPE *type_explanation
-         = find_explained_command_string(type_explanations, cmd, type);
+         = find_explained_command_string (type_explanations, cmd, type);
       if (type_explanation)
         {
           char *explanation_string = type_explanation->explanation;
@@ -1578,7 +1578,7 @@ html_get_shared_conversion_state (CONVERTER *converter, 
SV *converter_in,
     }
   else if (!strcmp (state_name, "formatted_listoffloats"))
     {
-      char *type = (char *)SvPVutf8_nolen(args_sv[0]);
+      char *type = (char *)SvPVutf8_nolen (args_sv[0]);
       if (converter->document && converter->document->listoffloats)
         {
           int i;
@@ -1601,7 +1601,7 @@ html_get_shared_conversion_state (CONVERTER *converter, 
SV *converter_in,
         }
     }
   else if (!strcmp (state_name, "in_skipped_node_top"))
-    return newSViv(converter->shared_conversion_state.in_skipped_node_top);
+    return newSViv (converter->shared_conversion_state.in_skipped_node_top);
   return newSV (0);
 }
 
diff --git a/tp/Texinfo/XS/main/api_to_perl.c b/tp/Texinfo/XS/main/api_to_perl.c
index 8195ef56f7..22dba257d0 100644
--- a/tp/Texinfo/XS/main/api_to_perl.c
+++ b/tp/Texinfo/XS/main/api_to_perl.c
@@ -1,10 +1,10 @@
 /* Copyright 2010-2024 Free Software Foundation, Inc.
-  
+
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
-  
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
diff --git a/tp/Texinfo/XS/main/build_perl_info.c 
b/tp/Texinfo/XS/main/build_perl_info.c
index 4c51d50b1e..f8dff7f7c0 100644
--- a/tp/Texinfo/XS/main/build_perl_info.c
+++ b/tp/Texinfo/XS/main/build_perl_info.c
@@ -435,14 +435,14 @@ store_additional_info (const ELEMENT *e, ASSOCIATED_INFO 
*a, char *key,
 
   /* Use sv_2mortal so that reference count is decremented if
          the hash is not saved. */
-  additional_info_hv = (HV *) sv_2mortal((SV *)newHV ());
+  additional_info_hv = (HV *) sv_2mortal ((SV *)newHV ());
 
 
   build_additional_info (additional_info_hv, a, avoid_recursion, &nr_info);
 
   if (nr_info > 0)
     hv_store (e->hv, key, strlen (key),
-              newRV_inc((SV *)additional_info_hv), 0);
+              newRV_inc ((SV *)additional_info_hv), 0);
 }
 
 static void
@@ -698,7 +698,7 @@ element_to_perl_hash (ELEMENT *e, int avoid_recursion)
       SOURCE_INFO *source_info = &e->source_info;
       HV *hv = newHV ();
       hv_store (e->hv, "source_info", strlen ("source_info"),
-                newRV_noinc((SV *)hv), HSH_source_info);
+                newRV_noinc ((SV *)hv), HSH_source_info);
 
       if (source_info->file_name)
         {
@@ -888,7 +888,7 @@ build_single_index_data (INDEX *index)
   hv = newHV ();
 
   STORE("name", newSVpv_utf8 (index->name, 0));
-  STORE("in_code", index->in_code ? newSViv(1) : newSViv(0));
+  STORE("in_code", index->in_code ? newSViv (1) : newSViv (0));
 
   if (index->merged_in)
     {
@@ -1183,8 +1183,8 @@ convert_error (ERROR_MESSAGE e)
   hv_store (hv, "error_line", strlen ("error_line"), err_line, 0);
   hv_store (hv, "type", strlen ("type"),
               (e.type == MSG_error || e.type == MSG_document_error)
-                                  ? newSVpv("error", strlen("error"))
-                                  : newSVpv("warning", strlen("warning")),
+                                  ? newSVpv ("error", strlen ("error"))
+                                  : newSVpv ("warning", strlen ("warning")),
             0);
 
   if (e.continuation)
@@ -1291,7 +1291,7 @@ add_formatted_error_messages (ERROR_MESSAGE_LIST 
*error_messages,
             {
               if (error_nrs_sv && SvOK (*error_nrs_sv))
                 {
-                  sv_setiv(*error_nrs_sv, error_nrs);
+                  sv_setiv (*error_nrs_sv, error_nrs);
                 }
               else
                 {
diff --git a/tp/Texinfo/XS/main/builtin_commands.c 
b/tp/Texinfo/XS/main/builtin_commands.c
index 18c150cf7e..33c4e53591 100644
--- a/tp/Texinfo/XS/main/builtin_commands.c
+++ b/tp/Texinfo/XS/main/builtin_commands.c
@@ -9,12 +9,12 @@
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-  
+
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
 #include <config.h>
-  
+
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -150,7 +150,7 @@ set_element_type_name_info (void)
       type_name_index[i-1].type = i;
     }
 
-  qsort (type_name_index, TXI_TREE_TYPES_NUMBER -1, sizeof(TYPE_INDEX),
+  qsort (type_name_index, TXI_TREE_TYPES_NUMBER -1, sizeof (TYPE_INDEX),
          compare_type_index_fn);
 
    /*
@@ -168,7 +168,7 @@ find_element_type (char *type_name)
   static TYPE_INDEX searched_type;
   searched_type.name = type_name;
   result = (TYPE_INDEX *) bsearch (&searched_type, type_name_index,
-                              TXI_TREE_TYPES_NUMBER -1, sizeof(TYPE_INDEX),
+                              TXI_TREE_TYPES_NUMBER -1, sizeof (TYPE_INDEX),
                                compare_type_index_fn);
   if (result)
     return result->type;
diff --git a/tp/Texinfo/XS/main/call_perl_function.c 
b/tp/Texinfo/XS/main/call_perl_function.c
index 441c9b351c..e9e22ff8c3 100644
--- a/tp/Texinfo/XS/main/call_perl_function.c
+++ b/tp/Texinfo/XS/main/call_perl_function.c
@@ -67,7 +67,7 @@ call_nodenamenormalization_unicode_to_transliterate (const 
char *text)
   SPAGAIN;
 
   if (count != 1)
-    croak("_unicode_to_transliterate should return 1 item\n");
+    croak ("_unicode_to_transliterate should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -133,7 +133,7 @@ call_latex_convert_to_latex_math (CONVERTER *self, const 
ELEMENT *element)
   SPAGAIN;
 
   if (count != 1)
-    croak("convert_to_latex_math should return 1 item\n");
+    croak ("convert_to_latex_math should return 1 item\n");
 
   result_sv = POPs;
   result_ret = SvPVutf8 (result_sv, len);
@@ -175,7 +175,7 @@ call_setup_collator (int use_unicode_collation, const char 
*locale_lang)
   SPAGAIN;
 
   if (count != 1)
-    croak("_setup_collator should return 1 item\n");
+    croak ("_setup_collator should return 1 item\n");
 
   collator_sv = POPs;
   if (SvOK (collator_sv))
@@ -223,7 +223,7 @@ call_collator_getSortKey (const void *collator_sv, const 
char *string)
   SPAGAIN;
 
   if (count != 1)
-    croak("getSortKey should return 1 item\n");
+    croak ("getSortKey should return 1 item\n");
 
   result_sv = POPs;
   result_ret = (unsigned char *)SvPVbyte (result_sv, len);
diff --git a/tp/Texinfo/XS/main/convert_to_texinfo.c 
b/tp/Texinfo/XS/main/convert_to_texinfo.c
index f06272b8c2..c7babd3a93 100644
--- a/tp/Texinfo/XS/main/convert_to_texinfo.c
+++ b/tp/Texinfo/XS/main/convert_to_texinfo.c
@@ -299,7 +299,7 @@ check_node_same_texinfo_code (const ELEMENT *reference_node,
   else
     node_texi = strdup ("");
 
-  equal_texi = !strcmp(reference_node_texi, node_texi);
+  equal_texi = !strcmp (reference_node_texi, node_texi);
   free (reference_node_texi);
   free (node_texi);
 
@@ -325,7 +325,7 @@ root_heading_command_to_texinfo (const ELEMENT *element)
         tree = element->args.list[0];
     }
   else
-    return strdup("Not a command");
+    return strdup ("Not a command");
 
   text_init (&text);
   if (tree)
diff --git a/tp/Texinfo/XS/main/convert_utils.c 
b/tp/Texinfo/XS/main/convert_utils.c
index b663eea67b..67abcd0e07 100644
--- a/tp/Texinfo/XS/main/convert_utils.c
+++ b/tp/Texinfo/XS/main/convert_utils.c
@@ -80,7 +80,7 @@ expand_today (OPTIONS *options)
     {
    /* This assumes that the SOURCE_DATE_EPOCH environment variable will contain
       a correct, positive integer in the time_t range */
-      tloc = (time_t)strtoll(source_date_epoch, NULL, 10);
+      tloc = (time_t)strtoll (source_date_epoch, NULL, 10);
       time_tm = gmtime (&tloc);
     }
   else
@@ -554,10 +554,10 @@ definition_category_tree (OPTIONS * options, const 
ELEMENT *current)
   def_command = lookup_extra_string (current, "def_command");
 
   /* do something more efficient */
-  if (!strcmp(def_command, "defop")
-      || !strcmp(def_command, "deftypeop")
-      || !strcmp(def_command, "defmethod")
-      || !strcmp(def_command, "deftypemethod"))
+  if (!strcmp (def_command, "defop")
+      || !strcmp (def_command, "deftypeop")
+      || !strcmp (def_command, "defmethod")
+      || !strcmp (def_command, "deftypemethod"))
     {
       ELEMENT *category_copy = copy_tree (arg_category);
       NAMED_STRING_ELEMENT_LIST *substrings
@@ -593,10 +593,10 @@ definition_category_tree (OPTIONS * options, const 
ELEMENT *current)
            */
         }
       destroy_named_string_element_list (substrings);
-    } else if (!strcmp(def_command, "defivar")
-      || !strcmp(def_command, "deftypeivar")
-      || !strcmp(def_command, "defcv")
-      || !strcmp(def_command, "deftypecv"))
+    } else if (!strcmp (def_command, "defivar")
+      || !strcmp (def_command, "deftypeivar")
+      || !strcmp (def_command, "defcv")
+      || !strcmp (def_command, "deftypecv"))
     {
       ELEMENT *category_copy = copy_tree (arg_category);
       NAMED_STRING_ELEMENT_LIST *substrings
@@ -902,13 +902,13 @@ find_root_command_next_heading_command (const ELEMENT 
*root,
                 /* ignored conditional */
                || builtin_command_data[data_cmd].data == BLOCK_conditional
                || (builtin_command_data[data_cmd].data == BLOCK_format_raw
-                   && !format_expanded_p 
+                   && !format_expanded_p
                              (formats, element_command_name (content))))
                 continue;
               else
                 return 0;
             }
-          else 
+          else
             { /* brace commands */
               if (other_flags & CF_non_formatted_brace)
                 continue;
diff --git a/tp/Texinfo/XS/main/document.c b/tp/Texinfo/XS/main/document.c
index f20411c5af..94383e7c42 100644
--- a/tp/Texinfo/XS/main/document.c
+++ b/tp/Texinfo/XS/main/document.c
@@ -116,7 +116,7 @@ register_document (ELEMENT *root, INDEX **index_names,
      | F_DOCM_global_commands;
 
   /*
-  fprintf(stderr, "REGISTER %zu %p %p %p %p\n", document_index +1, document,
+  fprintf (stderr, "REGISTER %zu %p %p %p %p\n", document_index +1, document,
                        document->tree, document->index_names, 
document->options);
    */
   return document_index +1;
@@ -505,7 +505,7 @@ remove_document_descriptor (int document_descriptor)
     }
   document->tree = 0;
   /*
-  fprintf(stderr, "REMOVE %d %p\n", document_descriptor, document);
+  fprintf (stderr, "REMOVE %d %p\n", document_descriptor, document);
    */
 }
 
@@ -527,7 +527,7 @@ unregister_document_merge_with_document (int 
document_descriptor,
   removed_document->tree = 0;
 
   /*
-  fprintf(stderr, "UNREGISTER %p\n", removed_document);
+  fprintf (stderr, "UNREGISTER %p\n", removed_document);
    */
 
   if (removed_document->small_strings)
diff --git a/tp/Texinfo/XS/main/errors.c b/tp/Texinfo/XS/main/errors.c
index e7b6841e65..16ab777cc1 100644
--- a/tp/Texinfo/XS/main/errors.c
+++ b/tp/Texinfo/XS/main/errors.c
@@ -140,7 +140,7 @@ vmessage_list_line_error (ERROR_MESSAGE_LIST 
*error_messages,
   if (translation_context)
     xvasprintf (&message, pgettext_expr (translation_context, format), v);
   else
-    xvasprintf (&message, gettext(format), v);
+    xvasprintf (&message, gettext (format), v);
 #else
   xvasprintf (&message, format, v);
 #endif
@@ -229,7 +229,7 @@ message_list_document_error_internal (ERROR_MESSAGE_LIST 
*error_messages,
   char *message;
 
 #ifdef ENABLE_NLS
-  xvasprintf (&message, gettext(format), v);
+  xvasprintf (&message, gettext (format), v);
 #else
   xvasprintf (&message, format, v);
 #endif
diff --git a/tp/Texinfo/XS/main/get_perl_info.c 
b/tp/Texinfo/XS/main/get_perl_info.c
index 63bdc731ad..804fbcb5c3 100644
--- a/tp/Texinfo/XS/main/get_perl_info.c
+++ b/tp/Texinfo/XS/main/get_perl_info.c
@@ -46,7 +46,7 @@
  /* See the NOTE in build_perl_info.c on use of functions related to
     memory allocation */
 
-#define FETCH(key) key##_sv = hv_fetch (element_hv, #key, strlen(#key), 0);
+#define FETCH(key) key##_sv = hv_fetch (element_hv, #key, strlen (#key), 0);
 
 /* used for debugging only */
 /* This function mixes Perl and gnulib allocation functions, but since it is
@@ -102,7 +102,7 @@ debug_print_element_sv (SV *element_sv)
     }
   else
     {
-      fprintf(stderr, "debug_print_element_sv: NUL\n");
+      fprintf (stderr, "debug_print_element_sv: NUL\n");
     }
 }
 #undef FETCH
@@ -261,7 +261,7 @@ add_svav_to_string_list (const SV *sv, STRING_LIST 
*string_list,
     }
 }
 
-#define FETCH(key) key##_sv = hv_fetch (hv_in, #key, strlen(#key), 0);
+#define FETCH(key) key##_sv = hv_fetch (hv_in, #key, strlen (#key), 0);
 SOURCE_INFO *
 get_source_info (SV *source_info_sv)
 {
@@ -348,7 +348,7 @@ get_sv_options (SV *sv, OPTIONS *options, CONVERTER 
*converter,
     {
       char *key;
       I32 retlen;
-      SV *value = hv_iternextsv(hv, &key, &retlen);
+      SV *value = hv_iternextsv (hv, &key, &retlen);
       if (value && SvOK (value))
         {
           get_sv_option (options, key, value, force, converter);
@@ -372,7 +372,7 @@ get_sv_configured_options (SV *configured_sv_in, OPTIONS 
*options)
     {
       char *key;
       I32 retlen;
-      SV *value = hv_iternextsv(configured_hv, &key, &retlen);
+      SV *value = hv_iternextsv (configured_hv, &key, &retlen);
       if (value && SvOK (value))
         {
           int configured = SvIV (value);
@@ -572,7 +572,7 @@ converter_initialize (SV *converter_sv)
 
   hv_in = (HV *)SvRV (converter_sv);
 
-#define FETCH(key) key##_sv = hv_fetch (hv_in, #key, strlen(#key), 0);
+#define FETCH(key) key##_sv = hv_fetch (hv_in, #key, strlen (#key), 0);
   FETCH(output_format)
 
   if (output_format_sv && SvOK (*output_format_sv))
@@ -611,7 +611,7 @@ converter_initialize (SV *converter_sv)
 
   /* store converter_descriptor in perl converter */
   hv_store (hv_in, "converter_descriptor",
-            strlen("converter_descriptor"),
+            strlen ("converter_descriptor"),
             newSViv (converter_descriptor), 0);
 
   return converter_descriptor;
@@ -724,7 +724,7 @@ get_sv_index_entries_sorted_by_letter (INDEX **index_names,
   for (i = 0; i < index_names_nr; i++)
     {
       HE *next = hv_iternext (hv_in);
-      SV *index_name_sv = hv_iterkeysv(next);
+      SV *index_name_sv = hv_iterkeysv (next);
       av_push (index_names_av, index_name_sv);
     }
    */
@@ -919,7 +919,7 @@ force_conf (CONVERTER *converter, const char *conf, SV 
*value)
 /* _raw_state is not fetched, as it is not documented as an option,
    and there is no way to set it through text options either, it can only
    be set as a state during conversion */
-#define FETCH(key) key##_sv = hv_fetch (hv_in, #key, strlen(#key), 0);
+#define FETCH(key) key##_sv = hv_fetch (hv_in, #key, strlen (#key), 0);
 TEXT_OPTIONS *
 copy_sv_options_for_convert_text (SV *sv_in)
 {
@@ -1325,7 +1325,7 @@ find_element_extra_index_entry_sv (const DOCUMENT 
*document,
   return index_entry;
 }
 
-#define FETCH(key) key##_sv = hv_fetch (element_hv, #key, strlen(#key), 0);
+#define FETCH(key) key##_sv = hv_fetch (element_hv, #key, strlen (#key), 0);
 /* find C tree root element corresponding to perl tree element element_hv */
 const ELEMENT *
 find_root_command (const DOCUMENT *document, HV *element_hv,
@@ -1402,7 +1402,7 @@ find_index_entry_subentry (const ELEMENT *index_element, 
HV *element_hv)
     }
 }
 
-#define EXTRA(key) key##_sv = hv_fetch (extra_hv, #key, strlen(#key), 0);
+#define EXTRA(key) key##_sv = hv_fetch (extra_hv, #key, strlen (#key), 0);
 
 /* returns the subentry direct parent based on "subentry_parent" */
 static SV *
diff --git a/tp/Texinfo/XS/main/manipulate_indices.c 
b/tp/Texinfo/XS/main/manipulate_indices.c
index 814cefad0f..b6dd6a84dd 100644
--- a/tp/Texinfo/XS/main/manipulate_indices.c
+++ b/tp/Texinfo/XS/main/manipulate_indices.c
@@ -444,7 +444,7 @@ setup_index_entries_sort_strings (ERROR_MESSAGE_LIST 
*error_messages,
                 {
                   const char *entry_cmdname;
 
-                  subentry_sort_string->sort_string = strdup("");
+                  subentry_sort_string->sort_string = strdup ("");
                   free (sort_string);
 
                   entry_cmdname = element_command_name (main_entry_element);
@@ -496,7 +496,7 @@ setup_index_entries_sort_strings (ERROR_MESSAGE_LIST 
*error_messages,
                     {
                       const char *entry_cmdname;
 
-                      subentry_sort_string->sort_string = strdup("");
+                      subentry_sort_string->sort_string = strdup ("");
                       free (sort_string);
 
                       entry_cmdname = element_command_name 
(main_entry_element);
@@ -1064,7 +1064,7 @@ sort_indices_by_letter (DOCUMENT *document, 
ERROR_MESSAGE_LIST *error_messages,
               if (!uc_is_general_category (next_char, UC_NON_SPACING_MARK))
                 {
                   char *first_char_text;
-                  uint8_t *first_char_u8 = malloc (7 * sizeof(uint8_t));
+                  uint8_t *first_char_u8 = malloc (7 * sizeof (uint8_t));
                   int first_char_len = u8_uctomb (first_char_u8, next_char, 6);
                   if (first_char_len < 0)
                     fatal ("u8_uctomb returns negative value");
@@ -1369,7 +1369,7 @@ index_entry_first_letter_text_or_command (const 
INDEX_ENTRY *index_entry)
       else
         parsed_element = entry_tree_element;
 
-      result = idx_leading_text_or_command(parsed_element, index_ignore_chars);
+      result = idx_leading_text_or_command (parsed_element, 
index_ignore_chars);
       if (parsed_element != entry_tree_element)
         destroy_element (parsed_element);
 
diff --git a/tp/Texinfo/XS/main/manipulate_tree.c 
b/tp/Texinfo/XS/main/manipulate_tree.c
index eacce54cd9..a3c9545153 100644
--- a/tp/Texinfo/XS/main/manipulate_tree.c
+++ b/tp/Texinfo/XS/main/manipulate_tree.c
@@ -74,7 +74,7 @@ copy_associated_info (ASSOCIATED_INFO *info, ASSOCIATED_INFO* 
new_info)
         {
         case extra_element:
         case extra_element_oot:
-          if (!strcmp(key, "_copy"))
+          if (!strcmp (key, "_copy"))
             break;
           k_copy = lookup_extra_by_index (f, "_copy", -1);
           if (k_copy)
@@ -161,7 +161,7 @@ copy_tree_internal (ELEMENT* current, ELEMENT *parent)
       return new;
     }
 
-  new = new_element(ET_NONE);
+  new = new_element (ET_NONE);
   if (current->type)
     new->type = current->type;
   if (current->cmd)
@@ -179,10 +179,10 @@ copy_tree_internal (ELEMENT* current, ELEMENT *parent)
 
   for (i = 0; i < current->args.number; i++)
     add_to_element_args (new,
-                copy_tree_internal(current->args.list[i], new));
+                copy_tree_internal (current->args.list[i], new));
   for (i = 0; i < current->contents.number; i++)
     add_to_element_contents (new,
-                copy_tree_internal(current->contents.list[i], new));
+                copy_tree_internal (current->contents.list[i], new));
   copy_associated_info (&current->info_info, &new->info_info);
   copy_associated_info (&current->extra_info, &new->extra_info);
   return new;
@@ -233,7 +233,7 @@ associate_info_references (ASSOCIATED_INFO *info, 
ASSOCIATED_INFO *new_info)
         {
         case extra_element:
         case extra_element_oot:
-          if (!strcmp(key, "_copy"))
+          if (!strcmp (key, "_copy"))
             break;
           {
             KEY_PAIR *k;
@@ -307,7 +307,7 @@ associate_info_references (ASSOCIATED_INFO *info, 
ASSOCIATED_INFO *new_info)
             break;
           }
         case extra_integer:
-          if (!strcmp(key, "_counter"))
+          if (!strcmp (key, "_counter"))
             break;
           { /* A simple integer. */
             KEY_PAIR *k = get_associated_info_key (new_info, key, k_ref->type);
@@ -871,7 +871,7 @@ protect_text (ELEMENT *current, const char *to_protect)
                                  || current->type == ET_rawline_arg)
       && strpbrk (current->text.text, to_protect))
     {
-      ELEMENT_LIST *container = new_list();
+      ELEMENT_LIST *container = new_list ();
       char *p = current->text.text;
       /* count UTF-8 encoded Unicode characters for source marks locations */
       uint8_t *u8_text = 0;
@@ -951,8 +951,8 @@ protect_text (ELEMENT *current, const char *to_protect)
                   ELEMENT *new_command;
                   char saved = p[to_protect_nr];
                   p[to_protect_nr] = '\0';
-                  new_command = new_asis_command_with_text(p, current->parent,
-                                                           current->type);
+                  new_command = new_asis_command_with_text (p, current->parent,
+                                                            current->type);
                   add_to_element_list (container, new_command);
                   if (u8_text)
                     {
diff --git a/tp/Texinfo/XS/main/node_name_normalization.c 
b/tp/Texinfo/XS/main/node_name_normalization.c
index 177bd7285c..6869f21e7c 100644
--- a/tp/Texinfo/XS/main/node_name_normalization.c
+++ b/tp/Texinfo/XS/main/node_name_normalization.c
@@ -193,12 +193,12 @@ protect_unicode_char (const char *text, TEXT *result)
 
   if (next_char <= 0xFFFF)
     {
-      xasprintf(&str, "%04lx", next_char);
+      xasprintf (&str, "%04lx", next_char);
       text_append_n (result, "_", 1);
     }
   else
     {
-      xasprintf(&str, "%06lx", next_char);
+      xasprintf (&str, "%06lx", next_char);
       text_append_n (result, "__", 2);
     }
   text_append (result, str);
diff --git a/tp/Texinfo/XS/main/output_unit.c b/tp/Texinfo/XS/main/output_unit.c
index 2018169bab..037d469db3 100644
--- a/tp/Texinfo/XS/main/output_unit.c
+++ b/tp/Texinfo/XS/main/output_unit.c
@@ -420,7 +420,7 @@ output_unit_texi (const OUTPUT_UNIT *output_unit)
   ELEMENT *unit_command;
 
   if (!output_unit)
-    return strdup("UNDEF OUTPUT UNIT");
+    return strdup ("UNDEF OUTPUT UNIT");
 
   unit_command = output_unit->unit_command;
 
@@ -443,7 +443,7 @@ output_unit_texi (const OUTPUT_UNIT *output_unit)
       return result;
     }
 
-  return root_heading_command_to_texinfo(unit_command);
+  return root_heading_command_to_texinfo (unit_command);
 }
 
 static OUTPUT_UNIT *
@@ -476,7 +476,7 @@ print_output_unit_directions (OUTPUT_UNIT *output_unit)
   int with_direction = 0;
   text_init (&result);
   text_printf (&result, "output unit: %s\n",
-               output_unit_texi(output_unit));
+               output_unit_texi (output_unit));
 
   for (i = 0; i < RUD_type_FirstInFileNodeBack+1; i++)
     {
diff --git a/tp/Texinfo/XS/main/targets.c b/tp/Texinfo/XS/main/targets.c
index e99b290f87..308c431b07 100644
--- a/tp/Texinfo/XS/main/targets.c
+++ b/tp/Texinfo/XS/main/targets.c
@@ -58,7 +58,7 @@ find_identifier_target (const LABEL_LIST *identifiers_target,
   LABEL *result;
   target_key.identifier = (char *) normalized;
   result = (LABEL *)bsearch (&target_key, identifiers_target->list,
-                             identifiers_target->number, sizeof(LABEL),
+                             identifiers_target->number, sizeof (LABEL),
                              compare_targets);
   if (result)
     return result->element;
@@ -106,14 +106,14 @@ some_fun (LABEL_LIST *labels_list)
 LABEL_LIST *
 set_labels_identifiers_target (LABEL *list_of_labels, size_t labels_number)
 {
-  LABEL *targets = malloc (labels_number * sizeof(LABEL));
-  LABEL_LIST *result = malloc (sizeof(LABEL_LIST));
+  LABEL *targets = malloc (labels_number * sizeof (LABEL));
+  LABEL_LIST *result = malloc (sizeof (LABEL_LIST));
   size_t targets_number = labels_number;
 
   int i;
 
-  memcpy (targets, list_of_labels, labels_number * sizeof(LABEL));
-  qsort (targets, labels_number, sizeof(LABEL), compare_labels);
+  memcpy (targets, list_of_labels, labels_number * sizeof (LABEL));
+  qsort (targets, labels_number, sizeof (LABEL), compare_labels);
 
   i = 0;
   while (i < targets_number)
@@ -158,7 +158,7 @@ set_labels_identifiers_target (LABEL *list_of_labels, 
size_t labels_number)
               if (j < targets_number - 1)
                 {
                   memmove (&targets[i+1], &targets[j+1],
-                         (targets_number - (j + 1))* sizeof(LABEL));
+                         (targets_number - (j + 1))* sizeof (LABEL));
                 }
               targets_number -= (j - i);
             }
@@ -177,11 +177,11 @@ set_labels_identifiers_target (LABEL *list_of_labels, 
size_t labels_number)
 LABEL_LIST *
 sort_labels_identifiers_target (LABEL *list_of_labels, size_t labels_number)
 {
-  LABEL *targets = malloc (labels_number * sizeof(LABEL));
-  LABEL_LIST *result = malloc (sizeof(LABEL_LIST));
+  LABEL *targets = malloc (labels_number * sizeof (LABEL));
+  LABEL_LIST *result = malloc (sizeof (LABEL_LIST));
 
-  memcpy (targets, list_of_labels, labels_number * sizeof(LABEL));
-  qsort (targets, labels_number, sizeof(LABEL), compare_labels);
+  memcpy (targets, list_of_labels, labels_number * sizeof (LABEL));
+  qsort (targets, labels_number, sizeof (LABEL), compare_labels);
 
   result->list = targets;
   result->number = labels_number;
diff --git a/tp/Texinfo/XS/main/translations.c 
b/tp/Texinfo/XS/main/translations.c
index 8d9c842dce..684858e683 100644
--- a/tp/Texinfo/XS/main/translations.c
+++ b/tp/Texinfo/XS/main/translations.c
@@ -1,5 +1,5 @@
 /* Copyright 2010-2024 Free Software Foundation, Inc.
-          
+
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
@@ -14,7 +14,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
 /* In sync with Texinfo::Translations */
-    
+
 #include <config.h>
 
 #include <string.h>
@@ -65,7 +65,7 @@ configure_output_strings_translations (char *localesdir,
   if (!textdomain_directory)
     {
       fprintf (stderr, "bindtextdomain: error setting %s to `%s': %s\n",
-               strings_textdomain, localesdir, strerror(errno));
+               strings_textdomain, localesdir, strerror (errno));
     }
   #endif
 }
@@ -95,7 +95,7 @@ switch_messages_locale (void)
     {
       FILE *p;
       locale_command = "locale -a";
-      
+
       p = popen (locale_command, "r");
       if (p)
         {
@@ -185,7 +185,7 @@ translate_string (const char * string, const char *in_lang,
      global locales as we use setlocale */
   call_switch_to_global_locale ();
 
-  /*  
+  /*
   We need to set LC_MESSAGES to a valid locale other than "C" or "POSIX"
   for translation via LANGUAGE to work.  (The locale is "C" if the
   tests are being run.)
@@ -212,7 +212,7 @@ translate_string (const char * string, const char *in_lang,
       saved_LANG = strdup (saved_LANG);
     }
 
-  saved_LC_MESSAGES = setlocale(LC_MESSAGES, NULL);
+  saved_LC_MESSAGES = setlocale (LC_MESSAGES, NULL);
 
   if (saved_LC_MESSAGES)
     saved_LC_MESSAGES = strdup (saved_LC_MESSAGES);
@@ -268,7 +268,7 @@ translate_string (const char * string, const char *in_lang,
     {
       fprintf (stderr,
               "translate_string: setenv `%s' error for string `%s': %s\n",
-              language_locales.text, string, strerror(errno));
+              language_locales.text, string, strerror (errno));
     }
 
   /* pgettext only works with string litterals, so use pgettext_expr */
@@ -327,7 +327,7 @@ replace_substrings (const char *string,
     return strdup (string);
 
   text_init (&substituted);
-  text_append (&substituted, "");  
+  text_append (&substituted, "");
 
   while (*p)
     {
@@ -357,7 +357,7 @@ replace_substrings (const char *string,
                                    flag))
                         {
                           text_append (&substituted,
-                                     replaced_substrings->list[i].string);     
+                                     replaced_substrings->list[i].string);
                           found = 1;
                           break;
                         }
@@ -458,9 +458,9 @@ replace_convert_substrings (char *translated_string,
     texinfo_line = translated_string;
 
   /*
-  fprintf(stderr, "INTERNAL V CMDS '%s' '%s'\n", translated_string,
+  fprintf (stderr, "INTERNAL V CMDS '%s' '%s'\n", translated_string,
                                                  texinfo_line);
-   */ 
+   */
 
   /* set parser debug level to one less than debug_level */
   if (debug_level > 0)
diff --git a/tp/Texinfo/XS/main/unicode.c b/tp/Texinfo/XS/main/unicode.c
index 68a84466fc..b3528db36a 100644
--- a/tp/Texinfo/XS/main/unicode.c
+++ b/tp/Texinfo/XS/main/unicode.c
@@ -110,12 +110,12 @@ unicode_accent (const char *text, const ELEMENT *e)
         {
           if (!strcmp (text, "i"))
             /* dotless i in UTF-8 */
-            return strdup("\xc4\xb1");
+            return strdup ("\xc4\xb1");
           else if (!strcmp (text, "j"))
-            return strdup("\xc8\xb7");
+            return strdup ("\xc8\xb7");
         }
       /* also correct for dotless I as dotless I is I */
-      return strdup(text);
+      return strdup (text);
     }
 
   if (unicode_diacritics[e->cmd].text)
@@ -142,7 +142,7 @@ unicode_accent (const char *text, const ELEMENT *e)
                 {
                   char *first_char_text;
                   char *next_text;
-                  uint8_t *first_char_u8 = malloc (7 * sizeof(uint8_t));
+                  uint8_t *first_char_u8 = malloc (7 * sizeof (uint8_t));
                   int first_char_len = u8_uctomb (first_char_u8, first_char, 
6);
                   if (first_char_len < 0)
                     fatal ("u8_uctomb returns negative value");
@@ -243,7 +243,7 @@ format_eight_bit_accents_stack (CONVERTER *self, const char 
*text,
       u8_next (&first_char, encoded_u8);
       free (encoded_u8);
       if (first_char < 127)
-        xasprintf(&new_eight_bit, "%02lX", first_char);
+        xasprintf (&new_eight_bit, "%02lX", first_char);
       else
         {
           char *codepoint;
@@ -253,7 +253,7 @@ format_eight_bit_accents_stack (CONVERTER *self, const char 
*text,
               char *found = (char *)bsearch (&codepoint,
                              unicode_to_eight_bit[encoding_index].codepoints,
                              unicode_to_eight_bit[encoding_index].number,
-                             sizeof(char *), compare_strings);
+                             sizeof (char *), compare_strings);
               if (found)
                 new_eight_bit = strdup (found);
 
@@ -447,7 +447,7 @@ int unicode_point_decoded_in_encoding (const char *encoding,
                   char *found = (char *)bsearch (&codepoint,
                              unicode_to_eight_bit[i].codepoints,
                              unicode_to_eight_bit[i].number,
-                             sizeof(char *), compare_strings);
+                             sizeof (char *), compare_strings);
                   if (found)
                     {
                       free (normalized_encoding);
diff --git a/tp/Texinfo/XS/main/utils.c b/tp/Texinfo/XS/main/utils.c
index 74cc9e9d5e..03f777f455 100644
--- a/tp/Texinfo/XS/main/utils.c
+++ b/tp/Texinfo/XS/main/utils.c
@@ -199,31 +199,31 @@ void fatal (char *message)
 int
 isascii_alnum (int c)
 {
-  return (((c & ~0x7f) == 0) && isalnum(c));
+  return (((c & ~0x7f) == 0) && isalnum (c));
 }
 
 int
 isascii_alpha (int c)
 {
-  return (((c & ~0x7f) == 0) && isalpha(c));
+  return (((c & ~0x7f) == 0) && isalpha (c));
 }
 
 int
 isascii_digit (int c)
 {
-  return (((c & ~0x7f) == 0) && isdigit(c));
+  return (((c & ~0x7f) == 0) && isdigit (c));
 }
 
 int
 isascii_lower (int c)
 {
-  return (((c & ~0x7f) == 0) && islower(c));
+  return (((c & ~0x7f) == 0) && islower (c));
 }
 
 int
 isascii_upper (int c)
 {
-  return (((c & ~0x7f) == 0) && isupper(c));
+  return (((c & ~0x7f) == 0) && isupper (c));
 }
 
 
@@ -476,11 +476,11 @@ encode_with_iconv (iconv_t our_iconv, char *s,
         case EILSEQ:
         default:
           if (source_info)
-            fprintf(stderr, "%s:%d: encoding error at byte 0x%02x\n",
+            fprintf (stderr, "%s:%d: encoding error at byte 0x%02x\n",
               source_info->file_name, source_info->line_nr,
                                              *(unsigned char *)inptr);
           else
-            fprintf(stderr, "encoding error at byte 0x%02x\n",
+            fprintf (stderr, "encoding error at byte 0x%02x\n",
                     *(unsigned char *)inptr);
           inptr++; bytes_left--;
           break;
@@ -499,13 +499,13 @@ decode_string (char *input_string, const char *encoding, 
int *status,
   *status = 0;
   /* not sure this can happen */
   if (!encoding)
-    return strdup(input_string);
+    return strdup (input_string);
 
   ENCODING_CONVERSION *conversion
     = get_encoding_conversion (encoding, &input_conversions);
 
   if (!conversion)
-    return strdup(input_string);
+    return strdup (input_string);
 
   *status = 1;
 
@@ -523,13 +523,13 @@ encode_string (char *input_string, const char *encoding, 
int *status,
      DOC_ENCODING_FOR_INPUT_FILE_NAME set to 0 and no locales encoding
      information */
   if (!encoding)
-    return strdup(input_string);
+    return strdup (input_string);
 
   ENCODING_CONVERSION *conversion
     = get_encoding_conversion (encoding, &output_conversions);
 
   if (!conversion)
-    return strdup(input_string);
+    return strdup (input_string);
 
   *status = 1;
 
@@ -824,7 +824,7 @@ normalize_encoding_name (const char *text, int 
*possible_encoding)
   for (p = text; *p; p++)
     {
       /* check if ascii and alphanumeric */
-      if (isascii_alnum(*p))
+      if (isascii_alnum (*p))
         {
           *possible_encoding = 1;
           *q = tolower (*p);
@@ -1146,7 +1146,7 @@ informative_command_value (const ELEMENT *element)
         return "1";
       /* NOTE only @set, which should be ignored, can have args.number > 1.
          We handle this case with TEXT text, but do not free memory
-         as should be, as this case should never happen. 
+         as should be, as this case should never happen.
        */
       else if (element->args.number > 0)
         {
@@ -1488,7 +1488,7 @@ enumerate_item_representation (char *specification, int 
number)
 
   if (specification[strspn (specification, digit_chars)] == '\0')
     {
-      int spec = strtol(specification, NULL, 10) + number -1;
+      int spec = strtol (specification, NULL, 10) + number -1;
       text_printf (&result, "%d", spec);
       return result.text;
     }
diff --git a/tp/Texinfo/XS/parsetexi/indices.c 
b/tp/Texinfo/XS/parsetexi/indices.c
index 628a6453fc..f2fccaf695 100644
--- a/tp/Texinfo/XS/parsetexi/indices.c
+++ b/tp/Texinfo/XS/parsetexi/indices.c
@@ -328,7 +328,7 @@ set_non_ignored_space_in_index_before_command (ELEMENT 
*content)
                        || e->cmd == CM_seeentry
                        || e->cmd == CM_seealso
                        || e->type == ET_spaces_after_close_brace)
-                && (! check_space_element(e)))
+                && (! check_space_element (e)))
         {
           pending_spaces_element->type = ET_NONE;
           pending_spaces_element = 0;
diff --git a/tp/Texinfo/XS/structuring_transfo/structuring.c 
b/tp/Texinfo/XS/structuring_transfo/structuring.c
index 07413b37a9..68d62590aa 100644
--- a/tp/Texinfo/XS/structuring_transfo/structuring.c
+++ b/tp/Texinfo/XS/structuring_transfo/structuring.c
@@ -53,7 +53,7 @@ new_block_command (ELEMENT *element, enum command_id cmd)
   ELEMENT *end_spaces_before = new_element (ET_NONE);
   ELEMENT *end_spaces_after = new_element (ET_NONE);
   ELEMENT *command_name_text = new_element (ET_NONE);
-  const char *command_name = builtin_command_name(cmd);
+  const char *command_name = builtin_command_name (cmd);
 
   element->cmd = cmd;
 
@@ -646,7 +646,7 @@ check_nodes_are_referenced (DOCUMENT *document)
                   if (menu_content->type == ET_menu_entry)
                     {
                       ELEMENT *menu_node
-                        = normalized_entry_associated_internal_node(
+                        = normalized_entry_associated_internal_node (
                                             menu_content, identifiers_target);
                       if (menu_node)
                         referenced_identifiers =
@@ -744,7 +744,7 @@ check_nodes_are_referenced (DOCUMENT *document)
                 {
                   memmove (&referenced_identifiers[i+1],
                            &referenced_identifiers[j+1],
-                    (referenced_identifier_number - (j + 1))* sizeof(char*));
+                    (referenced_identifier_number - (j + 1))* sizeof (char*));
                 }
               referenced_identifier_number -= (j - i);
             }
@@ -776,11 +776,11 @@ check_nodes_are_referenced (DOCUMENT *document)
         {
           char *normalized = lookup_extra_string (node, "normalized");
           char *found = (char *)bsearch (&normalized, referenced_identifiers,
-                             referenced_identifier_number, sizeof(char *),
+                             referenced_identifier_number, sizeof (char *),
                              compare_strings);
           if (!found)
             {
-              char *node_texi = target_element_to_texi_label(node);
+              char *node_texi = target_element_to_texi_label (node);
               nr_not_found++;
               message_list_command_warn (error_messages, options, node, 0,
                                          "node `%s' unreferenced",
@@ -1057,7 +1057,7 @@ complete_node_tree_with_menus (DOCUMENT *document)
                       if (part_section)
                         node_direction_section = part_section;
                       direction_associated_node
-                        = section_direction_associated_node(
+                        = section_direction_associated_node (
                                                   node_direction_section, d);
                       if (direction_associated_node)
                         {
@@ -1120,7 +1120,7 @@ complete_node_tree_with_menus (DOCUMENT *document)
                               && section)
                             {
                               char *node_texi
-                                = target_element_to_texi_label(node);
+                                = target_element_to_texi_label (node);
                               char *entry_texi
                                 = target_element_to_texi_label
                                                  (elt_menu_direction);
@@ -1144,7 +1144,7 @@ complete_node_tree_with_menus (DOCUMENT *document)
                    || !node_directions->list[D_next])
             {
               /* use first menu entry if available as next for Top */
-              ELEMENT *menu_child = first_menu_node(node, identifiers_target);
+              ELEMENT *menu_child = first_menu_node (node, identifiers_target);
               if (menu_child)
                 {
                   node_directions = add_extra_directions (node,
@@ -1280,7 +1280,7 @@ complete_node_tree_with_menus (DOCUMENT *document)
                           if (menu_content->type == ET_menu_entry)
                             {
                               ELEMENT *menu_node
-                                = normalized_entry_associated_internal_node(
+                                = normalized_entry_associated_internal_node (
                                                          menu_content,
                                                           identifiers_target);
                               if (menu_node == node)
@@ -1379,7 +1379,7 @@ nodes_tree (DOCUMENT *document)
                     if (part_section)
                       section = part_section;
                     direction_associated_node
-                      = section_direction_associated_node(section, d);
+                      = section_direction_associated_node (section, d);
                     if (direction_associated_node)
                       {
                         node_directions = add_extra_directions (node,
@@ -1484,7 +1484,7 @@ nodes_tree (DOCUMENT *document)
                                || options->novalidate.integer <= 0)
                             {
                               char *direction_texi
-                                 = link_element_to_texi(direction_element);
+                                 = link_element_to_texi (direction_element);
                               message_list_command_error (
                                      error_messages, options, node,
                                      "%s reference to nonexistent `%s'",
@@ -2108,11 +2108,11 @@ new_detailmenu (ERROR_MESSAGE_LIST *error_messages,
               if (entry->type == ET_menu_entry)
                 {
                   ELEMENT *menu_node
-                   = normalized_entry_associated_internal_node(entry,
+                   = normalized_entry_associated_internal_node (entry,
                                                   identifiers_target);
                   if (menu_node)
                     {
-                      ELEMENT_LIST *down_menus = print_down_menus(menu_node,
+                      ELEMENT_LIST *down_menus = print_down_menus (menu_node,
                                           0, error_messages, options,
                                           identifiers_target, use_sections);
                       if (down_menus)
diff --git a/tp/Texinfo/XS/structuring_transfo/transformations.c 
b/tp/Texinfo/XS/structuring_transfo/transformations.c
index 3b834438dc..58ac1f8cc5 100644
--- a/tp/Texinfo/XS/structuring_transfo/transformations.c
+++ b/tp/Texinfo/XS/structuring_transfo/transformations.c
@@ -178,7 +178,7 @@ correct_level (ELEMENT *section, ELEMENT *parent, int 
modifier)
       else
         cmd = CM_lowersections;
 
-      remaining_level = abs(level_to_remove);
+      remaining_level = abs (level_to_remove);
       while (remaining_level > 0)
         {
           ELEMENT *element = new_element (ET_NONE);
@@ -788,8 +788,8 @@ insert_nodes_for_sectioning_commands (DOCUMENT *document)
                 }
               else
                 {
-                  new_node_tree = copy_contents(content->args.list[0],
-                                                ET_NONE);
+                  new_node_tree = copy_contents (content->args.list[0],
+                                                 ET_NONE);
                 }
               added_node = new_node (document->error_messages, new_node_tree,
                                      document);
@@ -948,7 +948,7 @@ complete_node_menu (ELEMENT *node, int use_sections)
       if (menus)
         {
           existing_entries
-           = malloc(existing_entries_space * sizeof (EXISTING_ENTRY));
+           = malloc (existing_entries_space * sizeof (EXISTING_ENTRY));
 
           for (i = 0; i < menus->number; i++)
             {
@@ -966,7 +966,7 @@ complete_node_menu (ELEMENT *node, int use_sections)
                           if (existing_entries_nr == existing_entries_space)
                             {
                               existing_entries_space += 5;
-                              existing_entries = realloc(existing_entries,
+                              existing_entries = realloc (existing_entries,
                            existing_entries_space * sizeof (EXISTING_ENTRY));
                             }
                           existing_entries[existing_entries_nr].normalized
@@ -1231,7 +1231,7 @@ regenerate_master_menu (DOCUMENT *document, int 
use_sections)
       if (last_element->type == ET_menu_comment
           && last_element->contents.number > 0)
         {
-          ELEMENT *last_menu_comment_elt = last_contents_child(last_element);
+          ELEMENT *last_menu_comment_elt = last_contents_child (last_element);
           if (last_menu_comment_elt->type == ET_preformatted)
             preformatted = last_menu_comment_elt;
         }



reply via email to

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