From 6a83354a43c2dc48a253ee15eb62ccd1a8cd1b48 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 10 Feb 2004 19:08:19 +0000 Subject: 2004-02-10 Andrew Cagney * defs.h: Do not include "tui.h". * gdb_curses.h: New file. * tui/tui-hooks.h: New file. * tui/tui.h (tui_update_all_exec_infos): Delete declaration. (tui_install_hooks, tui_remove_hooks): Delete declarations. (tui_initialize_io): Delete declaration. (tui_initialize_readline: Delete redundant declaration. (struct tui_point): Delete definition. * tui/tui-data.h (struct tui_point): Define. * cli/cli-decode.c [TUI]: Include "tui/tui.h". * utils.c: Include "tui/tui.h". * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h". * printcmd.c [TUI]: Include "tui/tui.h". * cli/cli-cmds.c [TUI]: Include "tui/tui.h". * tui/tui-command.c: Include "gdb_curses.h". * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto. * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto. * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto. * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto. * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h". * Makefile.in: Update all dependencies. (tui_hooks_h, gdb_curses_h): Define. (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui. --- gdb/tui/tui-source.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'gdb/tui/tui-source.c') diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c index f97de2f..5a148a6 100644 --- a/gdb/tui/tui-source.c +++ b/gdb/tui/tui-source.c @@ -36,13 +36,7 @@ #include "tui/tui-winsource.h" #include "tui/tui-source.h" -#ifdef HAVE_NCURSES_H -#include -#else -#ifdef HAVE_CURSES_H -#include -#endif -#endif +#include "gdb_curses.h" /* Function to display source in the source window. */ enum tui_status -- cgit v1.1