diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-08 00:05:16 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-08 00:05:16 +0000 |
commit | 6ba8e26f707d4fe30bf0ce56f521b7d6509b125b (patch) | |
tree | eab1dc218819cd320e2b2e4c0493b9b981811248 /gdb/tui/tui-io.c | |
parent | 6d26006ec89fecd98f08fd1b81916ac70be94402 (diff) | |
download | gdb-6ba8e26f707d4fe30bf0ce56f521b7d6509b125b.zip gdb-6ba8e26f707d4fe30bf0ce56f521b7d6509b125b.tar.gz gdb-6ba8e26f707d4fe30bf0ce56f521b7d6509b125b.tar.bz2 |
2004-02-07 Andrew Cagney <cagney@redhat.com>
* tui/tui-command.c: Change variable and function names to lower
case.
* tui/tui-data.c, tui/tui-disasm.c: Ditto.
* tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
* tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
* tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
* tui/tui-winsource.c, tui/tui.c: Ditto.
Diffstat (limited to 'gdb/tui/tui-io.c')
-rw-r--r-- | gdb/tui/tui-io.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index bc52ce7..559ff45 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -147,7 +147,7 @@ static int tui_readline_pipe[2]; This may be the main gdb prompt or a secondary prompt. */ static char *tui_rl_saved_prompt; -static unsigned int _tuiHandleResizeDuringIO (unsigned int); +static unsigned int tui_handle_resize_during_io (unsigned int); static void tui_putc (char c) @@ -659,7 +659,7 @@ tui_getc (FILE *fp) #endif ch = wgetch (w); - ch = _tuiHandleResizeDuringIO (ch); + ch = tui_handle_resize_during_io (ch); /* The \n must be echoed because it will not be printed by readline. */ if (ch == '\n') @@ -694,10 +694,6 @@ tui_getc (FILE *fp) if (ch == '\n' || ch == '\r' || ch == '\f') TUI_CMD_WIN->detail.command_info.curch = 0; -#if 0 - else - tuiIncrCommandCharCountBy (1); -#endif if (ch == KEY_BACKSPACE) return '\b'; @@ -708,7 +704,7 @@ tui_getc (FILE *fp) /* Cleanup when a resize has occured. Returns the character that must be processed. */ static unsigned int -_tuiHandleResizeDuringIO (unsigned int originalCh) +tui_handle_resize_during_io (unsigned int original_ch) { if (tui_win_resized ()) { @@ -718,5 +714,5 @@ _tuiHandleResizeDuringIO (unsigned int originalCh) return '\n'; } else - return originalCh; + return original_ch; } |