summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses/panel/p_bottom.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-01-26 16:43:25 +0000
committerpeter <peter@FreeBSD.org>2000-01-26 16:43:25 +0000
commiteb50977cab0b353dfbe1f519884b4a0e7820f19a (patch)
tree506da7a5cf693bf8780ad013837cbd67913bedbb /contrib/ncurses/panel/p_bottom.c
parentbacd15cb1fff2dee94d390e0f84c147cd82ea148 (diff)
downloadFreeBSD-src-eb50977cab0b353dfbe1f519884b4a0e7820f19a.zip
FreeBSD-src-eb50977cab0b353dfbe1f519884b4a0e7820f19a.tar.gz
Import ncurses-5.0-release to update the 5.0-prerelease that we had.
Diffstat (limited to 'contrib/ncurses/panel/p_bottom.c')
-rw-r--r--contrib/ncurses/panel/p_bottom.c32
1 files changed, 29 insertions, 3 deletions
diff --git a/contrib/ncurses/panel/p_bottom.c b/contrib/ncurses/panel/p_bottom.c
index 47abc69..4e6e11d 100644
--- a/contrib/ncurses/panel/p_bottom.c
+++ b/contrib/ncurses/panel/p_bottom.c
@@ -36,18 +36,44 @@
*/
#include "panel.priv.h"
-MODULE_ID("$Id: p_bottom.c,v 1.2 1998/02/11 12:14:01 tom Exp $")
+MODULE_ID("$Id: p_bottom.c,v 1.5 1999/09/29 15:22:32 juergen Exp $")
+
+/*+-------------------------------------------------------------------------
+ __panel_link_bottom(pan) - link panel into stack at bottom
+--------------------------------------------------------------------------*/
+static void
+panel_link_bottom(PANEL *pan)
+{
+#ifdef TRACE
+ dStack("<lb%d>",1,pan);
+ if(_nc_panel_is_linked(pan))
+ return;
+#endif
+
+ pan->above = (PANEL *)0;
+ pan->below = (PANEL *)0;
+
+ assert(_nc_bottom_panel == _nc_stdscr_pseudo_panel);
+
+ pan->below = _nc_bottom_panel;
+ pan->above = _nc_bottom_panel->above;
+ if (pan->above)
+ pan->above->below = pan;
+ _nc_bottom_panel->above = pan;
+
+ dStack("<lb%d>",9,pan);
+}
int
bottom_panel(PANEL *pan)
{
if(!pan)
return(ERR);
- if(pan == _nc_bottom_panel)
+ if(Is_Bottom(pan))
return(OK);
dBug(("--> bottom_panel %s", USER_PTR(pan->user)));
if(_nc_panel_is_linked(pan))
(void)hide_panel(pan);
- _nc_panel_link_bottom(pan);
+ panel_link_bottom(pan);
return(OK);
}
OpenPOWER on IntegriCloud