mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-22 09:46:37 +08:00
gdb: make deprecated_show_value_hack static
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>
This commit is contained in:
@ -117,7 +117,7 @@ parse_cli_boolean_value (const char *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
static void
|
||||||
deprecated_show_value_hack (struct ui_file *ignore_file,
|
deprecated_show_value_hack (struct ui_file *ignore_file,
|
||||||
int ignore_from_tty,
|
int ignore_from_tty,
|
||||||
struct cmd_list_element *c,
|
struct cmd_list_element *c,
|
||||||
|
@ -656,16 +656,11 @@ extern void complete_on_enum (completion_tracker &tracker,
|
|||||||
extern void help_list (struct cmd_list_element *, const char *,
|
extern void help_list (struct cmd_list_element *, const char *,
|
||||||
enum command_class, struct ui_file *);
|
enum command_class, struct ui_file *);
|
||||||
|
|
||||||
/* Method for show a set/show variable's VALUE on FILE. If this
|
/* Method for show a set/show variable's VALUE on FILE. */
|
||||||
method isn't supplied deprecated_show_value_hack() is called (which
|
|
||||||
is not good). */
|
|
||||||
typedef void (show_value_ftype) (struct ui_file *file,
|
typedef void (show_value_ftype) (struct ui_file *file,
|
||||||
int from_tty,
|
int from_tty,
|
||||||
struct cmd_list_element *cmd,
|
struct cmd_list_element *cmd,
|
||||||
const char *value);
|
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. */
|
/* Various sets of extra literals accepted. */
|
||||||
extern const literal_def integer_unlimited_literals[];
|
extern const literal_def integer_unlimited_literals[];
|
||||||
|
Reference in New Issue
Block a user