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-command.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-command.c')
-rw-r--r-- | gdb/tui/tui-command.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gdb/tui/tui-command.c b/gdb/tui/tui-command.c index 2a51fc8..c3a9b5c 100644 --- a/gdb/tui/tui-command.c +++ b/gdb/tui/tui-command.c @@ -64,7 +64,7 @@ tui_dispatch_ctrl_char (unsigned int ch) return ch; else { - unsigned int c = 0, chCopy = ch; + unsigned int c = 0, ch_copy = ch; register int i; char *term; @@ -77,31 +77,32 @@ tui_dispatch_ctrl_char (unsigned int ch) term[i] = toupper (term[i]); if ((strcmp (term, "XTERM") == 0) && key_is_start_sequence (ch)) { - unsigned int pageCh = 0, tmpChar; + unsigned int page_ch = 0; + unsigned int tmp_char; - tmpChar = 0; - while (!key_is_end_sequence (tmpChar)) + tmp_char = 0; + while (!key_is_end_sequence (tmp_char)) { - tmpChar = (int) wgetch (w); - if (tmpChar == ERR) + tmp_char = (int) wgetch (w); + if (tmp_char == ERR) { return ch; } - if (!tmpChar) + if (!tmp_char) break; - if (tmpChar == 53) - pageCh = KEY_PPAGE; - else if (tmpChar == 54) - pageCh = KEY_NPAGE; + if (tmp_char == 53) + page_ch = KEY_PPAGE; + else if (tmp_char == 54) + page_ch = KEY_NPAGE; else { return 0; } } - chCopy = pageCh; + ch_copy = page_ch; } - switch (chCopy) + switch (ch_copy) { case KEY_NPAGE: tui_scroll_forward (win_info, 0); @@ -127,7 +128,7 @@ tui_dispatch_ctrl_char (unsigned int ch) tui_refresh_all_win (); break; default: - c = chCopy; + c = ch_copy; break; } return c; |