diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-24 10:15:54 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-24 10:15:54 +0000 |
commit | e9ae5755d3e70272c36bf5a1fefcdb3010035925 (patch) | |
tree | 18e124884419255a628cce48604d3f11e2938957 /gdb/tui/tuiGeneralWin.c | |
parent | ad0fd2c86127cf8f988f37521c2f0006240b085a (diff) | |
download | gdb-e9ae5755d3e70272c36bf5a1fefcdb3010035925.zip gdb-e9ae5755d3e70272c36bf5a1fefcdb3010035925.tar.gz gdb-e9ae5755d3e70272c36bf5a1fefcdb3010035925.tar.bz2 |
* tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
(tuiAsmWinIsDisplayed): Remove.
(tuiShowAllSourceWinsContent): Remove.
(tuiUpdateOnEnd): Remove.
* tuiGeneralWin.c (scrollWinForward): Remove.
(scrollWinBackward): Remove.
(_winResize): Don't declare.
* tui.h (tuiUpdateOnEnd): Don't declare.
(vcatch_errors, va_catch_errors): Likewise.
* tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
(tuiShowAllSourceWinsContent): Likewise.
* tuiGeneralWin.h (scrollWinForward): Likewise.
(scrollWinBackward): Likewise.
Diffstat (limited to 'gdb/tui/tuiGeneralWin.c')
-rw-r--r-- | gdb/tui/tuiGeneralWin.c | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/gdb/tui/tuiGeneralWin.c b/gdb/tui/tuiGeneralWin.c index b3f8b91..7b60068 100644 --- a/gdb/tui/tuiGeneralWin.c +++ b/gdb/tui/tuiGeneralWin.c @@ -45,12 +45,6 @@ #include "tuiGeneralWin.h" #include "tuiWin.h" -/* - ** local support functions - */ -static void _winResize (void); - - /*********************** ** PUBLIC FUNCTIONS ***********************/ @@ -297,90 +291,6 @@ makeAllVisible (int visible) return; } /* makeAllVisible */ - -/* - ** scrollWinForward - */ -void -scrollWinForward (TuiGenWinInfoPtr winInfo, int numLines) -{ - if (winInfo->content != (OpaquePtr) NULL && - winInfo->lastVisibleLine < winInfo->contentSize - 1) - { - int i, firstLine, newLastLine; - - firstLine = winInfo->lastVisibleLine - winInfo->viewportHeight + 1; - if (winInfo->lastVisibleLine + numLines > winInfo->contentSize) - newLastLine = winInfo->contentSize - 1; - else - newLastLine = winInfo->lastVisibleLine + numLines - 1; - - for (i = (newLastLine - winInfo->viewportHeight); - (i <= newLastLine); i++) - { - TuiWinElementPtr line; - int lineHeight; - - line = (TuiWinElementPtr) winInfo->content[i]; - if (line->highlight) - wstandout (winInfo->handle); - mvwaddstr (winInfo->handle, - i - (newLastLine - winInfo->viewportHeight), - 1, - displayableWinContentOf (winInfo, line)); - if (line->highlight) - wstandend (winInfo->handle); - lineHeight = winElementHeight (winInfo, line); - newLastLine += (lineHeight - 1); - } - winInfo->lastVisibleLine = newLastLine; - } - - return; -} /* scrollWinForward */ - - -/* - ** scrollWinBackward - */ -void -scrollWinBackward (TuiGenWinInfoPtr winInfo, int numLines) -{ - if (winInfo->content != (OpaquePtr) NULL && - (winInfo->lastVisibleLine - winInfo->viewportHeight) > 0) - { - int i, newLastLine, firstLine; - - firstLine = winInfo->lastVisibleLine - winInfo->viewportHeight + 1; - if ((firstLine - numLines) < 0) - newLastLine = winInfo->viewportHeight - 1; - else - newLastLine = winInfo->lastVisibleLine - numLines + 1; - - for (i = newLastLine - winInfo->viewportHeight; (i <= newLastLine); i++) - { - TuiWinElementPtr line; - int lineHeight; - - line = (TuiWinElementPtr) winInfo->content[i]; - if (line->highlight) - wstandout (winInfo->handle); - mvwaddstr (winInfo->handle, - i - (newLastLine - winInfo->viewportHeight), - 1, - displayableWinContentOf (winInfo, line)); - if (line->highlight) - wstandend (winInfo->handle); - lineHeight = winElementHeight (winInfo, line); - newLastLine += (lineHeight - 1); - } - winInfo->lastVisibleLine = newLastLine; - } - - return; -} /* scrollWinBackward */ - - /* ** refreshAll(). ** Function to refresh all the windows currently displayed |