texinfo-commits
[Top][All Lists]
Advanced

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

[6355] info_read_in_echo_area argument is const


From: Gavin D. Smith
Subject: [6355] info_read_in_echo_area argument is const
Date: Tue, 23 Jun 2015 19:12:57 +0000

Revision: 6355
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6355
Author:   gavin
Date:     2015-06-23 19:12:56 +0000 (Tue, 23 Jun 2015)
Log Message:
-----------
info_read_in_echo_area argument is const

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/echo-area.c
    trunk/info/echo-area.h

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2015-06-23 16:30:55 UTC (rev 6354)
+++ trunk/ChangeLog     2015-06-23 19:12:56 UTC (rev 6355)
@@ -1,5 +1,12 @@
 2015-06-23  Gavin Smith  <address@hidden>
 
+       * info/echo-area.c (info_read_in_echo_area)
+       (info_read_completing_internal, info_read_maybe_completing)
+       (info_read_completing_in_echo_area_with_exclusions): Add const
+       qualifier to char * in parameter list.
+
+2015-06-23  Gavin Smith  <address@hidden>
+
        * run gnulib --add-import
 
 2015-06-20  Gavin Smith  <address@hidden>

Modified: trunk/info/echo-area.c
===================================================================
--- trunk/info/echo-area.c      2015-06-23 16:30:55 UTC (rev 6354)
+++ trunk/info/echo-area.c      2015-06-23 19:12:56 UTC (rev 6355)
@@ -207,7 +207,7 @@
    or NULL if the user aborted out of this read.  PROMPT, if
    non-null, is a prompt to print before reading the line. */
 char *
-info_read_in_echo_area (char *prompt)
+info_read_in_echo_area (const char *prompt)
 {
   char *line;
 
@@ -910,7 +910,7 @@
    exit unless the line read completes, or is empty.  Use EXCLUDE_FUNC to
    exclude items in COMPLETIONS. */
 char *
-info_read_completing_internal (char *prompt, REFERENCE **completions,
+info_read_completing_internal (const char *prompt, REFERENCE **completions,
                                int force, reference_bool_fn exclude_func)
 {
   char *line;
@@ -1007,7 +1007,7 @@
   
 /* Read a line in the echo area with completion over COMPLETIONS. */
 char *
-info_read_completing_in_echo_area (char *prompt, REFERENCE **completions)
+info_read_completing_in_echo_area (const char *prompt, REFERENCE **completions)
 {
   return info_read_completing_internal (prompt, completions, 1, 0);
 }
@@ -1015,7 +1015,7 @@
 /* Read a line in the echo area allowing completion over COMPLETIONS, but
    not requiring it. */
 char *
-info_read_maybe_completing (char *prompt, REFERENCE **completions)
+info_read_maybe_completing (const char *prompt, REFERENCE **completions)
 {
   return info_read_completing_internal (prompt, completions, 0, 0);
 }
@@ -1023,7 +1023,7 @@
 /* Read a line in the echo area with completion over COMPLETIONS, using
    EXCLUDE to exclude items from the completion list. */
 char *
-info_read_completing_in_echo_area_with_exclusions (char *prompt,
+info_read_completing_in_echo_area_with_exclusions (const char *prompt,
      REFERENCE **completions, reference_bool_fn exclude)
 {
   return info_read_completing_internal (prompt, completions, 1, exclude);

Modified: trunk/info/echo-area.h
===================================================================
--- trunk/info/echo-area.h      2015-06-23 16:30:55 UTC (rev 6354)
+++ trunk/info/echo-area.h      2015-06-23 19:12:56 UTC (rev 6355)
@@ -38,27 +38,27 @@
 
 typedef int (*reference_bool_fn) (REFERENCE *);
 
-extern char *info_read_completing_internal (char *prompt,
+extern char *info_read_completing_internal (const char *prompt,
     REFERENCE **completions, int force, reference_bool_fn exclude);
 
 /* Read a line of text in the echo area.  Return a malloc ()'ed string,
    or NULL if the user aborted out of this read.  PROMPT, if
    non-null, is a prompt to print before reading the line. */
-extern char *info_read_in_echo_area (char *prompt);
+extern char *info_read_in_echo_area (const char *prompt);
 
 /* Read a line in the echo area with completion over COMPLETIONS. */
-char *info_read_completing_in_echo_area (char *prompt,
+char *info_read_completing_in_echo_area (const char *prompt,
                                          REFERENCE **completions);
 
 /* Read a line in the echo area allowing completion over COMPLETIONS, but
    not requiring it. */
-extern char *info_read_maybe_completing (char *prompt,
+extern char *info_read_maybe_completing (const char *prompt,
                                          REFERENCE **completions);
 
 /* Read a line in the echo area with completion over COMPLETIONS, using
    EXCLUDE to exclude items from the completion list. */
 char *
-info_read_completing_in_echo_area_with_exclusions (char *prompt,
+info_read_completing_in_echo_area_with_exclusions (const char *prompt,
     REFERENCE **completions, reference_bool_fn exclude);
 
 extern void ea_insert (WINDOW *window, int count, int key);




reply via email to

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