diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-30 09:46:02 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-26 15:19:13 -0700 |
commit | 6c92c339539ec87dc12783e9c8f1688a4a370c03 (patch) | |
tree | 5f3d0621646cae14436ab8e63edcf3542c236f86 /gdb/cli | |
parent | bbea68079781ac4c2fc941867ee9888585cafb77 (diff) | |
download | gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.zip gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.tar.gz gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.tar.bz2 |
Convert wrap_here to use integer parameter
I think it only really makes sense to call wrap_here with an argument
consisting solely of spaces. Given this, it seemed better to me that
the argument be an int, rather than a string. This patch is the
result. Much of it was written by a script.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 2 | ||||
-rw-r--r-- | gdb/cli/cli-decode.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 563f290..943d4db 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -841,7 +841,7 @@ echo_command (const char *text, int from_tty) reset_terminal_style (gdb_stdout); /* Force this output to appear now. */ - wrap_here (""); + wrap_here (0); gdb_flush (gdb_stdout); } diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index a71350b..24c80dc 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -1414,7 +1414,7 @@ fput_command_names_styled (const cmd_list_element &c, continue; fputs_filtered (", ", stream); - wrap_here (" "); + wrap_here (3); fput_command_name_styled (alias, stream); } @@ -1651,7 +1651,7 @@ help_list (struct cmd_list_element *list, const char *cmdtype, fprintf_filtered (stream, "\n\ Type \"help%s\" followed by a class name for a list of commands in ", cmdtype1); - wrap_here (""); + wrap_here (0); fprintf_filtered (stream, "that class."); fprintf_filtered (stream, "\n\ @@ -1660,16 +1660,16 @@ Type \"help all\" for the list of all commands."); fprintf_filtered (stream, "\nType \"help%s\" followed by %scommand name ", cmdtype1, cmdtype2); - wrap_here (""); + wrap_here (0); fputs_filtered ("for ", stream); - wrap_here (""); + wrap_here (0); fputs_filtered ("full ", stream); - wrap_here (""); + wrap_here (0); fputs_filtered ("documentation.\n", stream); fputs_filtered ("Type \"apropos word\" to search " "for commands related to \"word\".\n", stream); fputs_filtered ("Type \"apropos -v word\" for full documentation", stream); - wrap_here (""); + wrap_here (0); fputs_filtered (" of commands related to \"word\".\n", stream); fputs_filtered ("Command name abbreviations are allowed if unambiguous.\n", stream); |