p_hide.c revision 166124
1169689Skan/**************************************************************************** 2169689Skan * Copyright (c) 1998-2000,2005 Free Software Foundation, Inc. * 3169689Skan * * 4169689Skan * Permission is hereby granted, free of charge, to any person obtaining a * 5169689Skan * copy of this software and associated documentation files (the * 6169689Skan * "Software"), to deal in the Software without restriction, including * 7169689Skan * without limitation the rights to use, copy, modify, merge, publish, * 8169689Skan * distribute, distribute with modifications, sublicense, and/or sell * 9169689Skan * copies of the Software, and to permit persons to whom the Software is * 10169689Skan * furnished to do so, subject to the following conditions: * 11169689Skan * * 12169689Skan * The above copyright notice and this permission notice shall be included * 13169689Skan * in all copies or substantial portions of the Software. * 14169689Skan * * 15169689Skan * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 16169689Skan * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 17169689Skan * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 18169689Skan * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 19169689Skan * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 20169689Skan * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 21169689Skan * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 22169689Skan * * 23169689Skan * Except as contained in this notice, the name(s) of the above copyright * 24169689Skan * holders shall not be used in advertising or otherwise to promote the * 25169689Skan * sale, use or other dealings in this Software without prior written * 26169689Skan * authorization. * 27169689Skan ****************************************************************************/ 28169689Skan 29169689Skan/**************************************************************************** 30169689Skan * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1995 * 31169689Skan * and: Eric S. Raymond <esr@snark.thyrsus.com> * 32169689Skan ****************************************************************************/ 33169689Skan 34169689Skan/* p_hide.c 35169689Skan * Remove a panel from the stack 36169689Skan */ 37169689Skan#include "panel.priv.h" 38169689Skan 39169689SkanMODULE_ID("$Id: p_hide.c,v 1.9 2005/02/19 16:39:41 tom Exp $") 40169689Skan 41169689SkanNCURSES_EXPORT(int) 42169689Skanhide_panel(register PANEL * pan) 43169689Skan{ 44169689Skan int err = OK; 45169689Skan 46169689Skan T((T_CALLED("hide_panel(%p)"), pan)); 47169689Skan if (!pan) 48169689Skan returnCode(ERR); 49169689Skan 50169689Skan dBug(("--> hide_panel %s", USER_PTR(pan->user))); 51169689Skan dStack("<u%d>", 1, pan); 52169689Skan 53169689Skan HIDE_PANEL(pan, err, ERR); 54169689Skan 55169689Skan dStack("<u%d>", 9, pan); 56169689Skan 57169689Skan returnCode(err); 58169689Skan} 59169689Skan