Remove UNDEFINED_ITEM define from TUI

The TUI defined UNDEFINED_ITEM, but only used it in a single spot.  I
think this isn't very useful, so this removes the define.

gdb/ChangeLog
2019-07-17  Tom Tromey  <tom@tromey.com>

	* tui/tui-data.h (UNDEFINED_ITEM): Remove define.
	(struct tui_data_item_window): Update.
This commit is contained in:
Tom Tromey 2019-06-28 22:51:20 -06:00
parent d9743a13e0
commit d1b6f1e5eb
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-data.h (UNDEFINED_ITEM): Remove define.
(struct tui_data_item_window): Update.
2019-07-17 Tom Tromey <tom@tromey.com> 2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR) * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)

View file

@ -104,7 +104,6 @@ enum tui_box
#define DISASSEM_NAME "asm" #define DISASSEM_NAME "asm"
#define HILITE TRUE #define HILITE TRUE
#define NO_HILITE FALSE #define NO_HILITE FALSE
#define UNDEFINED_ITEM -1
#define MIN_WIN_HEIGHT 3 #define MIN_WIN_HEIGHT 3
#define MIN_CMD_WIN_HEIGHT 3 #define MIN_CMD_WIN_HEIGHT 3
@ -263,7 +262,7 @@ struct tui_data_item_window : public tui_gen_win_info
const char *name = nullptr; const char *name = nullptr;
/* The register number, or data display number. */ /* The register number, or data display number. */
int item_no = UNDEFINED_ITEM; int item_no = -1;
void *value = nullptr; void *value = nullptr;
bool highlight = false; bool highlight = false;
char *content = nullptr; char *content = nullptr;