diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-08 01:32:26 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-08 01:32:26 +0000 |
commit | d02c80cdf4c8426e911e897c4c6a9aa950354b1b (patch) | |
tree | 6e0f5a6804dd11cb105e43a6a7aca6e580ed35d9 /gdb/tui/tui-io.c | |
parent | 6ba8e26f707d4fe30bf0ce56f521b7d6509b125b (diff) | |
download | gdb-d02c80cdf4c8426e911e897c4c6a9aa950354b1b.zip gdb-d02c80cdf4c8426e911e897c4c6a9aa950354b1b.tar.gz gdb-d02c80cdf4c8426e911e897c4c6a9aa950354b1b.tar.bz2 |
2004-02-07 Andrew Cagney <cagney@redhat.com>
* tui/tui-command.c: Include "gdb_string.h", delete register
attribute, use ISO-C function signatures.
* tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
* tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
* tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
* tui/tui.c: Ditto.
Diffstat (limited to 'gdb/tui/tui-io.c')
-rw-r--r-- | gdb/tui/tui-io.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index 559ff45..6ca2bee 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -322,8 +322,7 @@ tui_readline_output (int code, gdb_client_data data) Comes from readline/complete.c */ static char * -printable_part (pathname) - char *pathname; +printable_part (char *pathname) { char *temp; @@ -360,8 +359,7 @@ printable_part (pathname) } while (0) static int -print_filename (to_print, full_pathname) - char *to_print, *full_pathname; +print_filename (char *to_print, char *full_pathname) { int printed_len = 0; char *s; @@ -376,7 +374,7 @@ print_filename (to_print, full_pathname) /* The user must press "y" or "n". Non-zero return means "y" pressed. Comes from readline/complete.c */ static int -get_y_or_n () +get_y_or_n (void) { extern int _rl_abort_internal (); int c; @@ -402,9 +400,7 @@ get_y_or_n () Comes from readline/complete.c and modified to write in the TUI command window using tui_putc/tui_puts. */ static void -tui_rl_display_match_list (matches, len, max) - char **matches; - int len, max; +tui_rl_display_match_list (char **matches, int len, int max) { typedef int QSFUNC (const void *, const void *); extern int _rl_qsort_string_compare (const void*, const void*); @@ -598,7 +594,7 @@ tui_cont_sig (int sig) /* Initialize the IO for gdb in curses mode. */ void -tui_initialize_io () +tui_initialize_io (void) { #ifdef SIGCONT signal (SIGCONT, tui_cont_sig); |