Reformatted comments; removed useless comments and declarations.

This commit is contained in:
William McBrine
2006-06-02 02:52:54 +00:00
parent 5d6f636b72
commit 11211d73e0

View File

@@ -1,6 +1,6 @@
/*+-------------------------------------------------------------------------
$Id: ptest.c,v 1.19 2006/03/29 19:50:13 wmcbrine Exp $
--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------*
* $Id: ptest.c,v 1.20 2006/06/02 02:52:54 wmcbrine Exp $ *
*----------------------------------------------------------------------*/
#include <curses.h>
#include <panel.h>
@@ -16,34 +16,22 @@ char *mod[] =
"test ", "TEST ", "(**) ", "*()* ", "<--> ", "LAST "
};
PANEL *mkpanel(int, int, int, int);
void fill_panel(PANEL *);
void pflush(void);
void wait_a_while(long);
void saywhat(const char *);
void rmpanel(PANEL *);
/*+-------------------------------------------------------------------------
wait_a_while(msec)
--------------------------------------------------------------------------*/
void wait_a_while(long msec)
{
/* timeout(msec); */
getch();
}
/*+-------------------------------------------------------------------------
saywhat(text)
--------------------------------------------------------------------------*/
void saywhat(const char *text)
{
wmove(stdscr, LINES - 1, 0);
wprintw(stdscr, "%-20.20s", text);
}
/*+-------------------------------------------------------------------------
mkpanel(rows, cols, tly, tlx) - alloc a win and panel and associate them
--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------*
* mkpanel - alloc a win and panel and associate them *
*----------------------------------------------------------------------*/
PANEL *mkpanel(int rows, int cols, int tly, int tlx)
{
WINDOW *win = newwin(rows, cols, tly, tlx);
@@ -60,9 +48,6 @@ PANEL *mkpanel(int rows, int cols, int tly, int tlx)
return pan;
}
/*+-------------------------------------------------------------------------
rmpanel(pan)
--------------------------------------------------------------------------*/
void rmpanel(PANEL *pan)
{
WINDOW *win = pan->win;
@@ -71,18 +56,12 @@ void rmpanel(PANEL *pan)
delwin(win);
}
/*+-------------------------------------------------------------------------
pflush()
--------------------------------------------------------------------------*/
void pflush(void)
{
update_panels();
doupdate();
}
/*+-------------------------------------------------------------------------
fill_panel(win)
--------------------------------------------------------------------------*/
void fill_panel(PANEL *pan)
{
WINDOW *win = pan->win;
@@ -102,9 +81,6 @@ void fill_panel(PANEL *pan)
}
}
/*+-------------------------------------------------------------------------
main(argc,argv)
--------------------------------------------------------------------------*/
int main(int argc, char **argv)
{
int itmp, y,x;