PANEL* panel_below(const PANEL *pan) { if(!pan) { /* if top and bottom are equal, we have no or only the pseudo panel */ return(EMPTY_STACK() ? (PANEL*)0 : _nc_top_panel); } else { /* we must not return the pseudo panel */ return(Is_Pseudo(pan->below) ? (PANEL*) 0 : pan->below); } }
panel_below(const PANEL * pan) { PANEL *result; T((T_CALLED("panel_below(%p)"), (const void *)pan)); if (pan) { GetHook(pan); /* we must not return the pseudo panel */ result = Is_Pseudo(pan->below) ? (PANEL *) 0 : pan->below; } else { #if NCURSES_SP_FUNCS result = ceiling_panel(CURRENT_SCREEN); #else /* if top and bottom are equal, we have no or only the pseudo panel */ result = EMPTY_STACK()? (PANEL *) 0 : _nc_top_panel; #endif } returnPanel(result); }