+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.
+
2018-10-19 Tom Tromey <tom@tromey.com>
* symfile.c (reread_symbols): Clear "static_links".
"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) \
/* Get a character from the command window. This is called from the
readline package. */
-int
+static int
tui_getc (FILE *fp)
{
int ch;
/* Initialize the IO for gdb in curses mode. */
extern void tui_initialize_io (void);
-/* Get a character from the command window. */
-extern int tui_getc (FILE *);
-
/* Readline callback.
Redisplay the command line with its prompt after readline has
changed the edited text. */
extern struct ui_out *tui_out;
extern cli_ui_out *tui_old_uiout;
-extern int key_is_start_sequence (int ch);
-extern int key_is_end_sequence (int ch);
-extern int key_is_backspace (int ch);
-extern int key_is_command_char (int ch);
-
#endif