diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2006-02-14 18:45:14 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2006-02-14 18:45:14 +0000 |
commit | 96c1eda247c7846f4bbd32d65db6819baefad08b (patch) | |
tree | 9bc74063c6c31a5947f17bf6da9c2b5c54d76434 /gdb/tui/tui-win.c | |
parent | 92dd43fa3bc92e0a97408eaa406143c41460581c (diff) | |
download | gdb-96c1eda247c7846f4bbd32d65db6819baefad08b.zip gdb-96c1eda247c7846f4bbd32d65db6819baefad08b.tar.gz gdb-96c1eda247c7846f4bbd32d65db6819baefad08b.tar.bz2 |
* doublest.h (DOUBLEST): Use long double only if we can scan
it in. Undefine HAVE_LONG_DOUBLE otherwise.
(DOUBLEST_FORMAT): New.
* c-exp.y (parse_number): Use it.
* jv-exp.y (parse_number): Likewise.
* objc-exp.y (parse_number): Likewise.
* p-exp.y (parse_number): Likewise.
* varobj.c (free_variable): Silence type-punning warnings.
* tui/tui-data.h (struct tui_list): Change type of list member.
* tui/tui-data.c: Remove no-longer-needed type casts.
(source_windows): Silence type-punning warnings.
* tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
Diffstat (limited to 'gdb/tui/tui-win.c')
-rw-r--r-- | gdb/tui/tui-win.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 87ab925..9dd7d4a 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -1119,7 +1119,7 @@ tui_adjust_win_heights (struct tui_win_info * primary_win_info, int new_height) make_invisible_and_set_new_height (primary_win_info, new_height); if (primary_win_info->generic.type == CMD_WIN) { - win_info = (struct tui_win_info *) (tui_source_windows ())->list[0]; + win_info = (tui_source_windows ())->list[0]; src_win_info = win_info; } else @@ -1148,7 +1148,7 @@ tui_adjust_win_heights (struct tui_win_info * primary_win_info, int new_height) else { first_win = TUI_DATA_WIN; - second_win = (struct tui_win_info *) (tui_source_windows ())->list[0]; + second_win = (tui_source_windows ())->list[0]; } if (primary_win_info == TUI_CMD_WIN) { /* @@ -1393,7 +1393,7 @@ new_height_ok (struct tui_win_info * primary_win_info, int new_height) struct tui_win_info * win_info; if (primary_win_info == TUI_CMD_WIN) - win_info = (struct tui_win_info *) (tui_source_windows ())->list[0]; + win_info = (tui_source_windows ())->list[0]; else win_info = TUI_CMD_WIN; ok = ((new_height + @@ -1414,7 +1414,7 @@ new_height_ok (struct tui_win_info * primary_win_info, int new_height) else { first_win = TUI_DATA_WIN; - second_win = (struct tui_win_info *) (tui_source_windows ())->list[0]; + second_win = (tui_source_windows ())->list[0]; } /* ** We could simply add all the heights to obtain the same result @@ -1543,7 +1543,7 @@ parse_scrolling_args (char *arg, struct tui_win_info * * win_to_scroll, error (_("Invalid window specified. \n\ The window name specified must be valid and visible.\n")); else if (*win_to_scroll == TUI_CMD_WIN) - *win_to_scroll = (struct tui_win_info *) (tui_source_windows ())->list[0]; + *win_to_scroll = (tui_source_windows ())->list[0]; } xfree (buf); } |