texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/misc.c: add const.


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/misc.c: add const.
Date: Tue, 03 Dec 2024 16:03:55 -0500

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 0bbd38ccf4 * tp/Texinfo/XS/misc.c: add const.
0bbd38ccf4 is described below

commit 0bbd38ccf47ab0048b172f339706a894fe544cfd
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Dec 3 22:02:01 2024 +0100

    * tp/Texinfo/XS/misc.c: add const.
---
 ChangeLog                         |  4 ++++
 tp/TODO                           |  6 ------
 tp/Texinfo/XS/convert/converter.c |  1 +
 tp/Texinfo/XS/misc.c              | 23 ++++++++++++-----------
 tp/Texinfo/XS/miscxs.h            | 10 +++++-----
 5 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5e58e7814b..8e391a64c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-12-03  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/misc.c: add const.
+
 2024-12-03  Gavin Smith <gavinsmith0123@gmail.com>
 
        * NEWS: mention libtool version
diff --git a/tp/TODO b/tp/TODO
index f6f04c3810..6d8c0dc491 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -82,12 +82,6 @@ pointers.  I don't someone looking at these files for the 
first time
 would have an easy time figuring out what they are for.
 
 
-In the https://github.com/gnu-texinfo/ci-check for cygwin32, unexplained
-failure with missing symbols.  Would need access to the platform.
-See Eli advice on how to debug the issue:
-https://lists.gnu.org/archive/html/bug-texinfo/2024-10/msg00091.html
-
-
 Make building "source marks" optional?
 
 
diff --git a/tp/Texinfo/XS/convert/converter.c 
b/tp/Texinfo/XS/convert/converter.c
index c9d15dc597..fe7870f51f 100644
--- a/tp/Texinfo/XS/convert/converter.c
+++ b/tp/Texinfo/XS/convert/converter.c
@@ -229,6 +229,7 @@ set_generic_converter_options (OPTIONS *options)
 }
 
 /* initialize the converter */
+/* corresponds to setting %all_converters_defaults in Perl */
 static void
 init_generic_converter (CONVERTER *self)
 {
diff --git a/tp/Texinfo/XS/misc.c b/tp/Texinfo/XS/misc.c
index f199feb3ce..24f334fecb 100644
--- a/tp/Texinfo/XS/misc.c
+++ b/tp/Texinfo/XS/misc.c
@@ -24,10 +24,11 @@
 const char *whitespace_chars = " \t\f\v\r\n";
 
 char *
-xs_process_text (char *text)
+xs_process_text (const char *text)
 {
   static char *new;
-  char *p, *q;
+  const char *p;
+  char *q;
 
   new = realloc (new, strlen (text) + 1);
   strcpy (new, text);
@@ -79,7 +80,7 @@ xs_process_text (char *text)
 char *
 xs_unicode_text (char *text, int in_code)
 {
-  char *p, *q;
+  const char *p, *q;
   static char *new;
   int new_space, new_len;
 
@@ -177,9 +178,9 @@ xs_unicode_text (char *text, int in_code)
 }
 
 char *
-xs_entity_text (char *text)
+xs_entity_text (const char *text)
 {
-  char *p, *q;
+  const char *p, *q;
   static char *new;
   int new_space, new_len;
 
@@ -253,7 +254,7 @@ xs_entity_text (char *text)
   return new;
 }
 
-void xs_parse_command_name (char *text,
+void xs_parse_command_name (const char *text,
                             char **command,
                             int *is_single_letter)
 {
@@ -262,7 +263,7 @@ void xs_parse_command_name (char *text,
 
   if (isascii_alnum (text[0]))
     {
-      char *p, *q;
+      const char *p, *q;
       static char *s;
 
       p = text;
@@ -290,7 +291,7 @@ void xs_parse_command_name (char *text,
 }
 
 /* Return list ($at_command, $open_brace, ....) */
-void xs_parse_texi_regex (char *text,
+void xs_parse_texi_regex (const char *text,
                           char **arobase,
                           char **open_brace,
                           char **close_brace,
@@ -338,7 +339,7 @@ void xs_parse_texi_regex (char *text,
     }
   else
     {
-      char *p;
+      const char *p;
 
       if (*text == '*')
         *asterisk = "*";
@@ -359,9 +360,9 @@ void xs_parse_texi_regex (char *text,
 }
 
 char *
-xs_default_format_protect_text (char *text)
+xs_default_format_protect_text (const char *text)
 {
-  char *p, *q;
+  const char *p, *q;
   static char *new;
   int new_space, new_len;
 
diff --git a/tp/Texinfo/XS/miscxs.h b/tp/Texinfo/XS/miscxs.h
index 374355a49a..1d5b2b2460 100644
--- a/tp/Texinfo/XS/miscxs.h
+++ b/tp/Texinfo/XS/miscxs.h
@@ -1,10 +1,10 @@
 char *xs_unicode_text (char *, int);
-char *xs_entity_text (char *);
-char *xs_process_text (char *text);
-void xs_parse_command_name (char *text,
+char *xs_entity_text (const char *);
+char *xs_process_text (const char *text);
+void xs_parse_command_name (const char *text,
                             char **,
                             int*);
-void xs_parse_texi_regex (char *text,
+void xs_parse_texi_regex (const char *text,
                           char **,
                           char **,
                           char **,
@@ -13,4 +13,4 @@ void xs_parse_texi_regex (char *text,
                           char **,
                           char **,
                           char **);
-char *xs_default_format_protect_text (char *);
+char *xs_default_format_protect_text (const char *);



reply via email to

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