aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-io.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-09-01 18:44:33 -0600
committerTom Tromey <tom@tromey.com>2018-10-19 17:22:27 -0600
commit84371624ada07e6f107ee14c48a609466055fe0d (patch)
tree53146dcd8ebf2c747585e75c98093bb5d1922308 /gdb/tui/tui-io.c
parent22ad8107d35d833db000e5a5050c0f53af7af51f (diff)
downloadgdb-84371624ada07e6f107ee14c48a609466055fe0d.zip
gdb-84371624ada07e6f107ee14c48a609466055fe0d.tar.gz
gdb-84371624ada07e6f107ee14c48a609466055fe0d.tar.bz2
Minor cleanups in tui-io.c
I noticed that a couple of functions in tui-io.c could be static, and that a couple more were unused and could be removed. gdb/ChangeLog 2018-10-19 Tom Tromey <tom@tromey.com> * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence) (key_is_backspace, tui_getc): Don't declare. * tui/tui-io.c (key_is_start_sequence): Now static. (key_is_end_sequence, key_is_backspace): Remove. (tui_getc): Now static.
Diffstat (limited to 'gdb/tui/tui-io.c')
-rw-r--r--gdb/tui/tui-io.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c
index 4476151..7823688 100644
--- a/gdb/tui/tui-io.c
+++ b/gdb/tui/tui-io.c
@@ -46,24 +46,14 @@
"gdb_curses.h". */
#include "readline/readline.h"
-int
+static int tui_getc (FILE *fp);
+
+static int
key_is_start_sequence (int ch)
{
return (ch == 27);
}
-int
-key_is_end_sequence (int ch)
-{
- return (ch == 126);
-}
-
-int
-key_is_backspace (int ch)
-{
- return (ch == 8);
-}
-
/* Use definition from readline 4.3. */
#undef CTRL_CHAR
#define CTRL_CHAR(c) \
@@ -614,7 +604,7 @@ tui_initialize_io (void)
/* Get a character from the command window. This is called from the
readline package. */
-int
+static int
tui_getc (FILE *fp)
{
int ch;