/****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2000,2005 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 *
*/
#include "panel.priv.h"
-MODULE_ID("$Id: p_show.c,v 1.7 1999/11/25 13:49:26 juergen Exp $")
+MODULE_ID("$Id: p_show.c,v 1.11 2005/02/19 16:42:02 tom Exp $")
-int
-show_panel(PANEL *pan)
-{
+NCURSES_EXPORT(int)
+show_panel(PANEL * pan)
+{
int err = OK;
- if(!pan)
- return(ERR);
+ T((T_CALLED("show_panel(%p)"), pan));
+
+ if (!pan)
+ returnCode(ERR);
if (Is_Top(pan))
- return(OK);
+ returnCode(OK);
dBug(("--> show_panel %s", USER_PTR(pan->user)));
- HIDE_PANEL(pan,err,FALSE);
+ HIDE_PANEL(pan, err, OK);
- dStack("<lt%d>",1,pan);
+ dStack("<lt%d>", 1, pan);
assert(_nc_bottom_panel == _nc_stdscr_pseudo_panel);
_nc_top_panel->above = pan;
- pan->below = _nc_top_panel;
- pan->above = (PANEL *)0;
+ pan->below = _nc_top_panel;
+ pan->above = (PANEL *) 0;
_nc_top_panel = pan;
-
- dStack("<lt%d>",9,pan);
- return(OK);
+ dStack("<lt%d>", 9, pan);
+
+ returnCode(OK);
}