* tui-hooks.c: Update include order.

* tui.c: Likewise.
	* tuiCommand.c: Likewise.
	* tuiData.c: Likewise.
	* tuiDataWin.c: Likewise.
	* tuiDisassem.c: Likewise.
	* tuiGeneralWin.c: Likewise.
	* tuiIO.c: Likewise.
	* tuiLayout.c: Likewise.
	* tuiRegs.c: Likewise.
	* tuiSource.c: Likewise.
	* tuiSourceWin.c: Likewise.
	* tuiStack.c: Likewise.
	* tuiWin.c: Likewise.
This commit is contained in:
Daniel Jacobowitz 2003-06-22 15:21:39 +00:00
parent db5a5748d7
commit 96ec9981bb
15 changed files with 134 additions and 245 deletions

View File

@ -1,3 +1,20 @@
2003-06-22 Daniel Jacobowitz <drow@mvista.com>
* tui-hooks.c: Update include order.
* tui.c: Likewise.
* tuiCommand.c: Likewise.
* tuiData.c: Likewise.
* tuiDataWin.c: Likewise.
* tuiDisassem.c: Likewise.
* tuiGeneralWin.c: Likewise.
* tuiIO.c: Likewise.
* tuiLayout.c: Likewise.
* tuiRegs.c: Likewise.
* tuiSource.c: Likewise.
* tuiSourceWin.c: Likewise.
* tuiStack.c: Likewise.
* tuiWin.c: Likewise.
2003-06-12 Andreas Schwab <schwab@suse.de> 2003-06-12 Andreas Schwab <schwab@suse.de>
* tuiSource.c (tuiVerticalSourceScroll): Use get_frame_pc. * tuiSource.c (tuiVerticalSourceScroll): Use get_frame_pc.

View File

@ -1,6 +1,6 @@
/* GDB hooks for TUI. /* GDB hooks for TUI.
Copyright 2001, 2002 Free Software Foundation, Inc. Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of GDB. This file is part of GDB.
@ -19,23 +19,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include "defs.h" #include "defs.h"
#include "symtab.h" #include "symtab.h"
#include "inferior.h" #include "inferior.h"
@ -66,6 +49,14 @@
#include "tuiDataWin.h" #include "tuiDataWin.h"
#include "tuiSourceWin.h" #include "tuiSourceWin.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
int tui_target_has_run = 0; int tui_target_has_run = 0;
static void (* tui_target_new_objfile_chain) (struct objfile*); static void (* tui_target_new_objfile_chain) (struct objfile*);

View File

@ -1,6 +1,6 @@
/* General functions for the WDB TUI. /* General functions for the WDB TUI.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,23 +22,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
@ -70,6 +53,14 @@
#include "symtab.h" #include "symtab.h"
#include "source.h" #include "source.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
/* Tells whether the TUI is active or not. */ /* Tells whether the TUI is active or not. */
int tui_active = 0; int tui_active = 0;
static int tui_finish_init = 1; static int tui_finish_init = 1;

View File

@ -1,6 +1,6 @@
/* Specific command window processing. /* Specific command window processing.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,15 +22,13 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that #include "defs.h"
"defs.h" should be included first. Unfortunatly some systems #include <ctype.h>
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h> #include "tui.h"
and they clash with "bfd.h"'s definiton of true/false. The correct #include "tuiData.h"
fix is to remove true/false from "bfd.h", however, until that #include "tuiWin.h"
happens, hack around it by including "config.h" and <curses.h> #include "tuiIO.h"
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H #ifdef HAVE_NCURSES_H
#include <ncurses.h> #include <ncurses.h>
#else #else
@ -39,13 +37,6 @@
#endif #endif
#endif #endif
#include "defs.h"
#include <ctype.h>
#include "tui.h"
#include "tuiData.h"
#include "tuiWin.h"
#include "tuiIO.h"
/***************************************** /*****************************************
** STATIC LOCAL FUNCTIONS FORWARD DECLS ** ** STATIC LOCAL FUNCTIONS FORWARD DECLS **

View File

@ -1,6 +1,6 @@
/* TUI data manipulation routines. /* TUI data manipulation routines.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,15 +22,12 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that #include "defs.h"
"defs.h" should be included first. Unfortunatly some systems #include "symtab.h"
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h> #include "tui.h"
and they clash with "bfd.h"'s definiton of true/false. The correct #include "tuiData.h"
fix is to remove true/false from "bfd.h", however, until that #include "tuiGeneralWin.h"
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H #ifdef HAVE_NCURSES_H
#include <ncurses.h> #include <ncurses.h>
#else #else
@ -39,12 +36,6 @@
#endif #endif
#endif #endif
#include "defs.h"
#include "symtab.h"
#include "tui.h"
#include "tuiData.h"
#include "tuiGeneralWin.h"
/**************************** /****************************
** GLOBAL DECLARATIONS ** GLOBAL DECLARATIONS
****************************/ ****************************/

View File

@ -1,6 +1,6 @@
/* Data/register window display. /* Data/register window display.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,15 +22,12 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that #include "defs.h"
"defs.h" should be included first. Unfortunatly some systems #include "tui.h"
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h> #include "tuiData.h"
and they clash with "bfd.h"'s definiton of true/false. The correct #include "tuiGeneralWin.h"
fix is to remove true/false from "bfd.h", however, until that #include "tuiRegs.h"
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H #ifdef HAVE_NCURSES_H
#include <ncurses.h> #include <ncurses.h>
#else #else
@ -39,12 +36,6 @@
#endif #endif
#endif #endif
#include "defs.h"
#include "tui.h"
#include "tuiData.h"
#include "tuiGeneralWin.h"
#include "tuiRegs.h"
/***************************************** /*****************************************
** STATIC LOCAL FUNCTIONS FORWARD DECLS ** ** STATIC LOCAL FUNCTIONS FORWARD DECLS **

View File

@ -1,6 +1,6 @@
/* Disassembly display. /* Disassembly display.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,23 +22,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include "defs.h" #include "defs.h"
#include "symtab.h" #include "symtab.h"
#include "breakpoint.h" #include "breakpoint.h"
@ -55,6 +38,14 @@
#include "tuiStack.h" #include "tuiStack.h"
#include "tui-file.h" #include "tui-file.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
struct tui_asm_line struct tui_asm_line
{ {
CORE_ADDR addr; CORE_ADDR addr;

View File

@ -1,6 +1,6 @@
/* General window behavior. /* General window behavior.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,15 +22,12 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that #include "defs.h"
"defs.h" should be included first. Unfortunatly some systems #include "tui.h"
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h> #include "tuiData.h"
and they clash with "bfd.h"'s definiton of true/false. The correct #include "tuiGeneralWin.h"
fix is to remove true/false from "bfd.h", however, until that #include "tuiWin.h"
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H #ifdef HAVE_NCURSES_H
#include <ncurses.h> #include <ncurses.h>
#else #else
@ -39,12 +36,6 @@
#endif #endif
#endif #endif
#include "defs.h"
#include "tui.h"
#include "tuiData.h"
#include "tuiGeneralWin.h"
#include "tuiWin.h"
/*********************** /***********************
** PUBLIC FUNCTIONS ** PUBLIC FUNCTIONS
***********************/ ***********************/

View File

@ -1,6 +1,6 @@
/* TUI support I/O functions. /* TUI support I/O functions.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,24 +22,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include <stdio.h>
#include "defs.h" #include "defs.h"
#include "terminal.h" #include "terminal.h"
#include "target.h" #include "target.h"
@ -59,6 +41,15 @@
#include "cli-out.h" #include "cli-out.h"
#include <fcntl.h> #include <fcntl.h>
#include <signal.h> #include <signal.h>
#include <stdio.h>
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
/* Use definition from readline 4.3. */ /* Use definition from readline 4.3. */
#undef CTRL_CHAR #undef CTRL_CHAR

View File

@ -1,6 +1,6 @@
/* TUI layout window management. /* TUI layout window management.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,23 +22,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include "defs.h" #include "defs.h"
#include "command.h" #include "command.h"
#include "symtab.h" #include "symtab.h"
@ -56,6 +39,14 @@
#include "tuiSourceWin.h" #include "tuiSourceWin.h"
#include "tuiDisassem.h" #include "tuiDisassem.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
/******************************* /*******************************
** Static Local Decls ** Static Local Decls
********************************/ ********************************/

View File

@ -1,6 +1,6 @@
/* TUI display registers in window. /* TUI display registers in window.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,23 +22,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include "defs.h" #include "defs.h"
#include "tui.h" #include "tui.h"
#include "tuiData.h" #include "tuiData.h"
@ -55,6 +38,14 @@
#include "tuiGeneralWin.h" #include "tuiGeneralWin.h"
#include "tui-file.h" #include "tui-file.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
/***************************************** /*****************************************
** LOCAL DEFINITIONS ** ** LOCAL DEFINITIONS **
******************************************/ ******************************************/

View File

@ -1,6 +1,6 @@
/* TUI display source window. /* TUI display source window.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,23 +22,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include "defs.h" #include "defs.h"
#include <ctype.h> #include <ctype.h>
#include "symtab.h" #include "symtab.h"
@ -53,6 +36,13 @@
#include "tuiSourceWin.h" #include "tuiSourceWin.h"
#include "tuiSource.h" #include "tuiSource.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
/* Function to display source in the source window. */ /* Function to display source in the source window. */
TuiStatus TuiStatus

View File

@ -1,6 +1,6 @@
/* TUI display source/assembly window. /* TUI display source/assembly window.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,23 +22,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include "defs.h" #include "defs.h"
#include <ctype.h> #include <ctype.h>
#include "symtab.h" #include "symtab.h"
@ -56,6 +39,13 @@
#include "tuiSource.h" #include "tuiSource.h"
#include "tuiDisassem.h" #include "tuiDisassem.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
/* Function to display the "main" routine. */ /* Function to display the "main" routine. */
void void

View File

@ -1,6 +1,6 @@
/* TUI display locator. /* TUI display locator.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -22,23 +22,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include "defs.h" #include "defs.h"
#include "symtab.h" #include "symtab.h"
#include "breakpoint.h" #include "breakpoint.h"
@ -56,6 +39,13 @@
#include "tuiSourceWin.h" #include "tuiSourceWin.h"
#include "tui-file.h" #include "tui-file.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
/* Get a printable name for the function at the address. /* Get a printable name for the function at the address.
The symbol name is demangled if demangling is turned on. The symbol name is demangled if demangling is turned on.

View File

@ -1,6 +1,6 @@
/* TUI window generic functions. /* TUI window generic functions.
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc. Inc.
Contributed by Hewlett-Packard Company. Contributed by Hewlett-Packard Company.
@ -27,26 +27,6 @@
Author: Susan B. Macchia */ Author: Susan B. Macchia */
/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
"defs.h" should be included first. Unfortunatly some systems
(currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
and they clash with "bfd.h"'s definiton of true/false. The correct
fix is to remove true/false from "bfd.h", however, until that
happens, hack around it by including "config.h" and <curses.h>
first. */
#include "config.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include <string.h>
#include <ctype.h>
#include <readline/readline.h>
#include "defs.h" #include "defs.h"
#include "command.h" #include "command.h"
#include "symtab.h" #include "symtab.h"
@ -66,6 +46,18 @@
#include "tuiSourceWin.h" #include "tuiSourceWin.h"
#include "tuiDataWin.h" #include "tuiDataWin.h"
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#endif
#include <string.h>
#include <ctype.h>
#include <readline/readline.h>
/******************************* /*******************************
** Static Local Decls ** Static Local Decls
********************************/ ********************************/