X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=panel%2Fp_hide.c;h=7b780d464e166829869f1b4e330bb6456a42213a;hp=ecc9eed2226f5e078707c9a2bf047565bd19badf;hb=c55d387cebf1cee4757ca2c2ef4fbeae59ee4175;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34 diff --git a/panel/p_hide.c b/panel/p_hide.c index ecc9eed2..7b780d46 100644 --- a/panel/p_hide.c +++ b/panel/p_hide.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998 Free Software Foundation, Inc. * + * Copyright (c) 1998-2005,2010 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -36,22 +36,27 @@ */ #include "panel.priv.h" -MODULE_ID("$Id: p_hide.c,v 1.5 1999/11/25 13:49:26 juergen Exp $") +MODULE_ID("$Id: p_hide.c,v 1.11 2010/01/23 21:22:16 tom Exp $") -int -hide_panel(register PANEL *pan) +NCURSES_EXPORT(int) +hide_panel(register PANEL * pan) { - int err = OK; + int err = ERR; - if(!pan) - return(ERR); + T((T_CALLED("hide_panel(%p)"), (void *)pan)); - dBug(("--> hide_panel %s", USER_PTR(pan->user))); - dStack("",1,pan); + if (pan) + { + GetHook(pan); - HIDE_PANEL(pan,err,TRUE); + dBug(("--> hide_panel %s", USER_PTR(pan->user))); + dStack("", 1, pan); - dStack("",9,pan); + HIDE_PANEL(pan, err, ERR); - return(err); + err = OK; + + dStack("", 9, pan); + } + returnCode(err); }