aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-command.c')
-rw-r--r--gdb/tui/tui-command.c29
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;