constify parse_cli_boolean_value
authorTom Tromey <tromey@redhat.com>
Wed, 27 Mar 2013 16:35:35 +0000 (10:35 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 18 Jun 2014 14:16:56 +0000 (08:16 -0600)
This changes a parameter of parse_cli_boolean_value to be const.

2014-06-18  Tom Tromey  <tromey@redhat.com>

* cli/cli-setshow.h (parse_cli_boolean_value): Update.
* cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.

gdb/ChangeLog
gdb/cli/cli-setshow.c
gdb/cli/cli-setshow.h

index 8a7d30cef1d4d660365c9c0ffedad92f36cc665b..3990129f71e49c68fabed4dff0f324af78971248 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-18  Tom Tromey  <tromey@redhat.com>
+
+       * cli/cli-setshow.h (parse_cli_boolean_value): Update.
+       * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
+
 2014-06-18  Tom Tromey  <tromey@redhat.com>
 
        * probe.c (info_probes_for_ops): Make "arg" const.
index 75f15262c1ae490bd89d98e1037eac3a0db8053c..d14d3614f70b99850f696bee5349e7f59195f066 100644 (file)
@@ -76,7 +76,7 @@ parse_auto_binary_operation (const char *arg)
 /* See cli-setshow.h.  */
 
 int
-parse_cli_boolean_value (char *arg)
+parse_cli_boolean_value (const char *arg)
 {
   int length;
 
index a41a66d048c51517a3ef89a5828fcdba7de744c6..a68d610c29ea93aeb55cb804e08a539c82b3ac83 100644 (file)
@@ -21,7 +21,7 @@ struct cmd_list_element;
 
 /* Parse ARG, an option to a boolean variable.
    Returns 1 for true, 0 for false, and -1 if invalid.  */
-extern int parse_cli_boolean_value (char *arg);
+extern int parse_cli_boolean_value (const char *arg);
 
 extern void do_set_command (char *arg, int from_tty,
                            struct cmd_list_element *c);
This page took 0.033435 seconds and 4 git commands to generate.