]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: make deprecated_show_value_hack static
authorAndrew Burgess <aburgess@redhat.com>
Tue, 4 Apr 2023 09:10:44 +0000 (10:10 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 28 Apr 2023 21:50:46 +0000 (22:50 +0100)
The deprecated_show_value_hack function is now only used inside
cli-setshow.c, so lets make the function static to discourage its use
anywhere else.

There should be no user visible changes after this commit

Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/cli/cli-setshow.c
gdb/command.h

index dad3e6066200603746a286ac156a90cacab983c7..07233e36a38085dd77babfd92b0683b802afb36c 100644 (file)
@@ -117,7 +117,7 @@ parse_cli_boolean_value (const char *arg)
 }
 
 \f
-void
+static void
 deprecated_show_value_hack (struct ui_file *ignore_file,
                            int ignore_from_tty,
                            struct cmd_list_element *c,
index e9c9f160e1f2ef9ef996cb44c5d4f532120bad65..a4641bb1fd537682a7928cf5ec238284bc199d41 100644 (file)
@@ -656,16 +656,11 @@ extern void complete_on_enum (completion_tracker &tracker,
 extern void help_list (struct cmd_list_element *, const char *,
                       enum command_class, struct ui_file *);
 
-/* Method for show a set/show variable's VALUE on FILE.  If this
-   method isn't supplied deprecated_show_value_hack() is called (which
-   is not good).  */
+/* Method for show a set/show variable's VALUE on FILE.  */
 typedef void (show_value_ftype) (struct ui_file *file,
                                 int from_tty,
                                 struct cmd_list_element *cmd,
                                 const char *value);
-/* NOTE: i18n: This function is not i18n friendly.  Callers should
-   instead print the value out directly.  */
-extern show_value_ftype deprecated_show_value_hack;
 
 /* Various sets of extra literals accepted.  */
 extern const literal_def integer_unlimited_literals[];