aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-windata.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-02-07 00:23:56 +0000
committerAndrew Cagney <cagney@redhat.com>2004-02-07 00:23:56 +0000
commitedae1ccf4432e5b4353100cc1224192fc0934ca8 (patch)
tree5b02473ea9c41a336ccb831fbbb2a4e00499d35a /gdb/tui/tui-windata.c
parent3a51760f5d78bf8f13cdcbc51440827174a3e361 (diff)
downloadbinutils-edae1ccf4432e5b4353100cc1224192fc0934ca8.zip
binutils-edae1ccf4432e5b4353100cc1224192fc0934ca8.tar.gz
binutils-edae1ccf4432e5b4353100cc1224192fc0934ca8.tar.bz2
2004-02-06 Andrew Cagney <cagney@redhat.com>
* tui/tui-windata.h: Update copyright. Include "tui-data.h". (tui_erase_data_content): Rename tuiEraseDataContent. (tui_display_all_data): Rename tuiDisplayAllData. (tui_check_data_values): Rename tuiCheckDataValues. (tui_display_data_from_line): Rename tuiDisplayDataFromLine. (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed. (tui_first_data_element_no_in_line): Rename tuiFirstDataElementNoInLine. (tui_delete_data_content_windows): Rename tuiDeleteDataContentWindows. (tui_refresh_data_win): Rename tuiRefreshDataWin. (tui_display_data_from): Rename tuiDisplayDataFrom. (tui_vertical_data_scroll): Rename tuiVerticalDataScroll. * tui/tui-windata.c, tui/tui-hooks.c: Update references. * tui/tui-win.c, tui/tui-regs.c: Update references. * tui/tui-layout.c, tui/tui.c: Update references.
Diffstat (limited to 'gdb/tui/tui-windata.c')
-rw-r--r--gdb/tui/tui-windata.c55
1 files changed, 19 insertions, 36 deletions
diff --git a/gdb/tui/tui-windata.c b/gdb/tui/tui-windata.c
index 42775de..facea77 100644
--- a/gdb/tui/tui-windata.c
+++ b/gdb/tui/tui-windata.c
@@ -122,7 +122,7 @@ tuiDeleteDataContentWindows (void)
void
-tuiEraseDataContent (char *prompt)
+tui_erase_data_content (char *prompt)
{
werase (dataWin->generic.handle);
tui_check_and_display_highlight_if_needed (dataWin);
@@ -141,24 +141,19 @@ tuiEraseDataContent (char *prompt)
prompt);
}
wrefresh (dataWin->generic.handle);
-
- return;
-} /* tuiEraseDataContent */
+}
-/*
- ** tuiDisplayAllData().
- ** This function displays the data that is in the data window's
- ** content. It does not set the content.
- */
+/* This function displays the data that is in the data window's
+ content. It does not set the content. */
void
-tuiDisplayAllData (void)
+tui_display_all_data (void)
{
if (dataWin->generic.contentSize <= 0)
- tuiEraseDataContent (NO_DATA_STRING);
+ tui_erase_data_content (NO_DATA_STRING);
else
{
- tuiEraseDataContent ((char *) NULL);
+ tui_erase_data_content ((char *) NULL);
tuiDeleteDataContentWindows ();
tui_check_and_display_highlight_if_needed (dataWin);
tui_display_registers_from (0);
@@ -171,8 +166,7 @@ tuiDisplayAllData (void)
{
}
}
- return;
-} /* tuiDisplayAllData */
+}
/*
@@ -241,7 +235,7 @@ tuiDisplayDataFrom (int elementNo, int reuseWindows)
if (firstLine >= 0)
{
- tuiEraseDataContent ((char *) NULL);
+ tui_erase_data_content ((char *) NULL);
if (!reuseWindows)
tuiDeleteDataContentWindows ();
tuiDisplayDataFromLine (firstLine);
@@ -251,14 +245,11 @@ tuiDisplayDataFrom (int elementNo, int reuseWindows)
} /* tuiDisplayDataFrom */
-/*
- ** tuiRefreshDataWin()
- ** Function to redisplay the contents of the data window.
- */
+/* Function to redisplay the contents of the data window. */
void
-tuiRefreshDataWin (void)
+tui_refresh_data_win (void)
{
- tuiEraseDataContent ((char *) NULL);
+ tui_erase_data_content ((char *) NULL);
if (dataWin->generic.contentSize > 0)
{
int firstElement = tuiFirstDataItemDisplayed ();
@@ -266,17 +257,12 @@ tuiRefreshDataWin (void)
if (firstElement >= 0) /* re-use existing windows */
tuiDisplayDataFrom (firstElement, TRUE);
}
-
- return;
-} /* tuiRefreshDataWin */
+}
-/*
- ** tuiCheckDataValues().
- ** Function to check the data values and hilite any that have changed
- */
+/* Function to check the data values and hilite any that have changed. */
void
-tuiCheckDataValues (struct frame_info *frame)
+tui_check_data_values (struct frame_info *frame)
{
tui_check_register_values (frame);
@@ -305,15 +291,12 @@ tuiCheckDataValues (struct frame_info *frame)
#endif
}
}
-} /* tuiCheckDataValues */
+}
-/*
- ** tuiVerticalDataScroll()
- ** Scroll the data window vertically forward or backward.
- */
+/* Scroll the data window vertically forward or backward. */
void
-tuiVerticalDataScroll (TuiScrollDirection scrollDirection, int numToScroll)
+tui_vertical_data_scroll (TuiScrollDirection scrollDirection, int numToScroll)
{
int firstElementNo;
int firstLine = (-1);
@@ -335,7 +318,7 @@ tuiVerticalDataScroll (TuiScrollDirection scrollDirection, int numToScroll)
firstLine += numToScroll;
else
firstLine -= numToScroll;
- tuiEraseDataContent ((char *) NULL);
+ tui_erase_data_content ((char *) NULL);
tuiDeleteDataContentWindows ();
tuiDisplayDataFromLine (firstLine);
}