diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-18 22:03:22 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-18 22:03:22 +0000 |
commit | e8b915dc073aef16009a8f3b15768183bf64bfb3 (patch) | |
tree | 89f8fd85b272b72cf91daca2d476f700c9e7cadb /gdb/tui/tuiWin.c | |
parent | c774cec6a71cec1932152c9838d0a7142409d8ce (diff) | |
download | gdb-e8b915dc073aef16009a8f3b15768183bf64bfb3.zip gdb-e8b915dc073aef16009a8f3b15768183bf64bfb3.tar.gz gdb-e8b915dc073aef16009a8f3b15768183bf64bfb3.tar.bz2 |
* tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
(tuiRead, tui_vread): Remove.
* tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
(vcatch_errors, _tui_vDo): Remove.
* tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
* tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
(tui_set_layout): Rename of _tuiSetLayoutTo, public.
(_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
(_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
(_tuiLayout_command): Call tui_set_layout.
* tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
(_tuiScrollRegsForward_command): Likewise.
(_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
(_tuiShowGeneral_command): Likewise.
(_tuiShowSpecial_command): Likewise.
(_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
* tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
(_tuiScrollForward_command): Call tui_scroll.
(_tuiScrollBackward_command): Likewise.
(_tuiScrollLeft_command): Likewise.
(_tuiScrollRight_command): Likewise.
(_tuiSetFocus_command): Call _tuiSetFocus.
(_tuiRefreshAll_command): Call tuiRefreshAll.
(_tuiSetWinHeight_command): Call _tuiSetWinHeight.
(_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
* tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
Diffstat (limited to 'gdb/tui/tuiWin.c')
-rw-r--r-- | gdb/tui/tuiWin.c | 70 |
1 files changed, 20 insertions, 50 deletions
diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c index 4c3acd2..7b8c0e3 100644 --- a/gdb/tui/tuiWin.c +++ b/gdb/tui/tuiWin.c @@ -311,16 +311,14 @@ tuiScrollRight (TuiWinInfoPtr winToScroll, int numToScroll) /* - ** tui_vScroll(). + ** tui_scroll(). ** Scroll a window. Arguments are passed through a va_list. */ void -tui_vScroll (va_list args) +tui_scroll (TuiScrollDirection direction, + TuiWinInfoPtr winToScroll, + int numToScroll) { - TuiScrollDirection direction = va_arg (args, TuiScrollDirection); - TuiWinInfoPtr winToScroll = va_arg (args, TuiWinInfoPtr); - int numToScroll = va_arg (args, int); - switch (direction) { case FORWARD_SCROLL: @@ -338,9 +336,7 @@ tui_vScroll (va_list args) default: break; } - - return; -} /* tui_vScroll */ +} /* @@ -583,13 +579,8 @@ _tuiScrollForward_command (char *arg, int fromTTY) _parseScrollingArgs (arg, &winToScroll, (int *) NULL); else _parseScrollingArgs (arg, &winToScroll, &numToScroll); - tuiDo ((TuiOpaqueFuncPtr) tui_vScroll, - FORWARD_SCROLL, - winToScroll, - numToScroll); - - return; -} /* _tuiScrollForward_command */ + tui_scroll (FORWARD_SCROLL, winToScroll, numToScroll); +} /* @@ -605,13 +596,8 @@ _tuiScrollBackward_command (char *arg, int fromTTY) _parseScrollingArgs (arg, &winToScroll, (int *) NULL); else _parseScrollingArgs (arg, &winToScroll, &numToScroll); - tuiDo ((TuiOpaqueFuncPtr) tui_vScroll, - BACKWARD_SCROLL, - winToScroll, - numToScroll); - - return; -} /* _tuiScrollBackward_command */ + tui_scroll (BACKWARD_SCROLL, winToScroll, numToScroll); +} /* @@ -624,13 +610,8 @@ _tuiScrollLeft_command (char *arg, int fromTTY) TuiWinInfoPtr winToScroll; _parseScrollingArgs (arg, &winToScroll, &numToScroll); - tuiDo ((TuiOpaqueFuncPtr) tui_vScroll, - LEFT_SCROLL, - winToScroll, - numToScroll); - - return; -} /* _tuiScrollLeft_command */ + tui_scroll (LEFT_SCROLL, winToScroll, numToScroll); +} /* @@ -643,13 +624,8 @@ _tuiScrollRight_command (char *arg, int fromTTY) TuiWinInfoPtr winToScroll; _parseScrollingArgs (arg, &winToScroll, &numToScroll); - tuiDo ((TuiOpaqueFuncPtr) tui_vScroll, - RIGHT_SCROLL, - winToScroll, - numToScroll); - - return; -} /* _tuiScrollRight_command */ + tui_scroll (RIGHT_SCROLL, winToScroll, numToScroll); +} /* @@ -718,10 +694,8 @@ _tui_vSetFocus (va_list args) static void _tuiSetFocus_command (char *arg, int fromTTY) { - tuiDo ((TuiOpaqueFuncPtr) _tui_vSetFocus, arg, fromTTY); - - return; -} /* tui_SetFocus */ + _tuiSetFocus (arg, fromTTY); +} /* @@ -756,7 +730,7 @@ _tuiAllWindowsInfo (char *arg, int fromTTY) static void _tuiRefreshAll_command (char *arg, int fromTTY) { - tuiDo ((TuiOpaqueFuncPtr) tuiRefreshAll); + tuiRefreshAll (); } @@ -894,10 +868,8 @@ _tui_vSetWinHeight (va_list args) static void _tuiSetWinHeight_command (char *arg, int fromTTY) { - tuiDo ((TuiOpaqueFuncPtr) _tui_vSetWinHeight, arg, fromTTY); - - return; -} /* _tuiSetWinHeight_command */ + _tuiSetWinHeight (arg, fromTTY); +} /* @@ -956,10 +928,8 @@ _tui_vXDBsetWinHeight (va_list args) static void _tuiXDBsetWinHeight_command (char *arg, int fromTTY) { - tuiDo ((TuiOpaqueFuncPtr) _tui_vXDBsetWinHeight, arg, fromTTY); - - return; -} /* _tuiXDBsetWinHeight_command */ + _tuiXDBsetWinHeight (arg, fromTTY); +} /* |