aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-windata.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-02-07 20:57:02 +0000
committerAndrew Cagney <cagney@redhat.com>2004-02-07 20:57:02 +0000
commit6d012f143df40b0870ee1f64940080c1591801a3 (patch)
tree03c02968dd85d7b77298a7c13c9b9878d01ae89e /gdb/tui/tui-windata.c
parent1c80067325ac5c90f84154900ac057780b7869af (diff)
downloadgdb-6d012f143df40b0870ee1f64940080c1591801a3.zip
gdb-6d012f143df40b0870ee1f64940080c1591801a3.tar.gz
gdb-6d012f143df40b0870ee1f64940080c1591801a3.tar.bz2
2004-02-07 Andrew Cagney <cagney@redhat.com>
* tui/tui.h: Do not include <stdarg.h>, <string.h>, and "ansidecl.h". Do not undef "reg" and "chtype". Fix case of fields and variables. * tui/tui-wingeneral.h (m_beVisible): Delete macro. (m_beInvisible): Delete macro. * tui/tui-data.h: Fix case case fields and variables. (m_genWinPtrIsNull): Delete macro. (tui_win_list): Rename winList. (TUI_SRC_WIN): Rename srcWin. (TUI_DISASM_WIN): Rename disassemWin. (TUI_DATA_WIN): Rename dataWin. (TUI_CMD_WIN): Rename cmdWin. (m_genWinPtrNotNull): Delete macro. (m_winPtrIsNull): Delete macro. (m_winPtrNotNull): Delete macro. (tui_win_is_source_type): Replace m_winIsSourceType (tui_win_is_auxillary): Replace m_winIsAuzillary. (tui_win_has_locator): Replace m_hasLocator. (tui_set_win_highlight): Replace m_setWinHighlightOn and m_setWinHighlightOff. * tui/tui-data.c: Update references. (tui_win_is_source_type, tui_set_win_highlight): New functions. (tui_win_has_locator, tui_win_is_auxillary): New functions. * tui/tui-command.c, tui/tui-disasm.c: Update references. * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto. * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto. * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto. * tui/tui-winsource.c, tui/tui.c: Ditto.
Diffstat (limited to 'gdb/tui/tui-windata.c')
-rw-r--r--gdb/tui/tui-windata.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/gdb/tui/tui-windata.c b/gdb/tui/tui-windata.c
index 93993af..0548536 100644
--- a/gdb/tui/tui-windata.c
+++ b/gdb/tui/tui-windata.c
@@ -59,13 +59,13 @@ tuiFirstDataItemDisplayed (void)
int elementNo = (-1);
int i;
- for (i = 0; (i < dataWin->generic.contentSize && elementNo < 0); i++)
+ for (i = 0; (i < TUI_DATA_WIN->generic.content_size && elementNo < 0); i++)
{
struct tui_gen_win_info * dataItemWin;
dataItemWin = &((tui_win_content)
- dataWin->generic.content)[i]->whichElement.dataWindow;
- if (dataItemWin->handle != (WINDOW *) NULL && dataItemWin->isVisible)
+ TUI_DATA_WIN->generic.content)[i]->which_element.data_window;
+ if (dataItemWin->handle != (WINDOW *) NULL && dataItemWin->is_visible)
elementNo = i;
}
@@ -108,13 +108,13 @@ tuiDeleteDataContentWindows (void)
int i;
struct tui_gen_win_info * dataItemWinPtr;
- for (i = 0; (i < dataWin->generic.contentSize); i++)
+ for (i = 0; (i < TUI_DATA_WIN->generic.content_size); i++)
{
dataItemWinPtr = &((tui_win_content)
- dataWin->generic.content)[i]->whichElement.dataWindow;
+ TUI_DATA_WIN->generic.content)[i]->which_element.data_window;
tui_delete_win (dataItemWinPtr->handle);
dataItemWinPtr->handle = (WINDOW *) NULL;
- dataItemWinPtr->isVisible = FALSE;
+ dataItemWinPtr->is_visible = FALSE;
}
return;
@@ -124,23 +124,23 @@ tuiDeleteDataContentWindows (void)
void
tui_erase_data_content (char *prompt)
{
- werase (dataWin->generic.handle);
- tui_check_and_display_highlight_if_needed (dataWin);
+ werase (TUI_DATA_WIN->generic.handle);
+ tui_check_and_display_highlight_if_needed (TUI_DATA_WIN);
if (prompt != (char *) NULL)
{
- int halfWidth = (dataWin->generic.width - 2) / 2;
+ int halfWidth = (TUI_DATA_WIN->generic.width - 2) / 2;
int xPos;
if (strlen (prompt) >= halfWidth)
xPos = 1;
else
xPos = halfWidth - strlen (prompt);
- mvwaddstr (dataWin->generic.handle,
- (dataWin->generic.height / 2),
+ mvwaddstr (TUI_DATA_WIN->generic.handle,
+ (TUI_DATA_WIN->generic.height / 2),
xPos,
prompt);
}
- wrefresh (dataWin->generic.handle);
+ wrefresh (TUI_DATA_WIN->generic.handle);
}
@@ -149,20 +149,20 @@ tui_erase_data_content (char *prompt)
void
tui_display_all_data (void)
{
- if (dataWin->generic.contentSize <= 0)
+ if (TUI_DATA_WIN->generic.content_size <= 0)
tui_erase_data_content (NO_DATA_STRING);
else
{
tui_erase_data_content ((char *) NULL);
tuiDeleteDataContentWindows ();
- tui_check_and_display_highlight_if_needed (dataWin);
+ tui_check_and_display_highlight_if_needed (TUI_DATA_WIN);
tui_display_registers_from (0);
/*
** Then display the other data
*/
- if (dataWin->detail.dataDisplayInfo.dataContent !=
+ if (TUI_DATA_WIN->detail.data_display_info.data_content !=
(tui_win_content) NULL &&
- dataWin->detail.dataDisplayInfo.dataContentCount > 0)
+ TUI_DATA_WIN->detail.data_display_info.data_content_count > 0)
{
}
}
@@ -182,10 +182,10 @@ tuiDisplayDataFromLine (int lineNo)
if (lineNo < 0)
_lineNo = 0;
- tui_check_and_display_highlight_if_needed (dataWin);
+ tui_check_and_display_highlight_if_needed (TUI_DATA_WIN);
/* there is no general data, force regs to display (if there are any) */
- if (dataWin->detail.dataDisplayInfo.dataContentCount <= 0)
+ if (TUI_DATA_WIN->detail.data_display_info.data_content_count <= 0)
tui_display_registers_from_line (_lineNo, TRUE);
else
{
@@ -227,7 +227,7 @@ tuiDisplayDataFrom (int elementNo, int reuseWindows)
{
int firstLine = (-1);
- if (elementNo < dataWin->detail.dataDisplayInfo.regsContentCount)
+ if (elementNo < TUI_DATA_WIN->detail.data_display_info.regs_content_count)
firstLine = tui_line_from_reg_element_no (elementNo);
else
{ /* calculate the firstLine from the element number */
@@ -250,7 +250,7 @@ void
tui_refresh_data_win (void)
{
tui_erase_data_content ((char *) NULL);
- if (dataWin->generic.contentSize > 0)
+ if (TUI_DATA_WIN->generic.content_size > 0)
{
int firstElement = tuiFirstDataItemDisplayed ();
@@ -267,21 +267,21 @@ tui_check_data_values (struct frame_info *frame)
tui_check_register_values (frame);
/* Now check any other data values that there are */
- if (m_winPtrNotNull (dataWin) && dataWin->generic.isVisible)
+ if (TUI_DATA_WIN != NULL && TUI_DATA_WIN->generic.is_visible)
{
int i;
- for (i = 0; dataWin->detail.dataDisplayInfo.dataContentCount; i++)
+ for (i = 0; TUI_DATA_WIN->detail.data_display_info.data_content_count; i++)
{
#ifdef LATER
TuiDataElementPtr dataElementPtr;
struct tui_gen_win_info * dataItemWinPtr;
Opaque newValue;
- dataItemPtr = &dataWin->detail.dataDisplayInfo.
- dataContent[i]->whichElement.dataWindow;
+ dataItemPtr = &TUI_DATA_WIN->detail.data_display_info.
+ data_content[i]->which_element.data_window;
dataElementPtr = &((tui_win_content)
- dataItemWinPtr->content)[0]->whichElement.data;
+ dataItemWinPtr->content)[0]->which_element.data;
if value
has changed (dataElementPtr, frame, &newValue)
{
@@ -302,7 +302,7 @@ tui_vertical_data_scroll (enum tui_scroll_direction scrollDirection, int numToSc
int firstLine = (-1);
firstElementNo = tuiFirstDataItemDisplayed ();
- if (firstElementNo < dataWin->detail.dataDisplayInfo.regsContentCount)
+ if (firstElementNo < TUI_DATA_WIN->detail.data_display_info.regs_content_count)
firstLine = tui_line_from_reg_element_no (firstElementNo);
else
{ /* calculate the first line from the element number which is in