mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-25 00:05:16 +00:00
Formatting.
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_initscr =
|
||||
"$Id: initscr.c,v 1.30 2006/02/08 17:40:33 wmcbrine Exp $";
|
||||
"$Id: initscr.c,v 1.31 2006/02/10 17:55:28 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
const char *_curses_notice = "PDCurses 2.7b - Public Domain 2006";
|
||||
@@ -191,7 +191,7 @@ extern void (*PDC_initial_slk)(void);
|
||||
|
||||
**man-end**********************************************************************/
|
||||
|
||||
WINDOW * Xinitscr(int argc, char *argv[])
|
||||
WINDOW *Xinitscr(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -325,7 +325,7 @@ WINDOW * Xinitscr(int argc, char *argv[])
|
||||
return stdscr;
|
||||
}
|
||||
|
||||
WINDOW * initscr(void)
|
||||
WINDOW *initscr(void)
|
||||
{
|
||||
PDC_LOG(("initscr() - called\n"));
|
||||
|
||||
@@ -378,14 +378,14 @@ bool isendwin(void)
|
||||
return SP->alive ? FALSE : TRUE;
|
||||
}
|
||||
|
||||
SCREEN * newterm(char *type, FILE *outfd, FILE *infd)
|
||||
SCREEN *newterm(char *type, FILE *outfd, FILE *infd)
|
||||
{
|
||||
PDC_LOG(("newterm() - called\n"));
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SCREEN * set_term(SCREEN *new)
|
||||
SCREEN *set_term(SCREEN *new)
|
||||
{
|
||||
PDC_LOG(("set_term() - called\n"));
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_pad =
|
||||
"$Id: pad.c,v 1.15 2006/02/08 17:40:33 wmcbrine Exp $";
|
||||
"$Id: pad.c,v 1.16 2006/02/10 17:55:28 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
/* save values for pechochar() */
|
||||
@@ -120,7 +120,7 @@ static int save_sminrow, save_smincol, save_smaxrow, save_smaxcol;
|
||||
|
||||
**man-end**********************************************************************/
|
||||
|
||||
WINDOW * newpad(int nlines, int ncols)
|
||||
WINDOW *newpad(int nlines, int ncols)
|
||||
{
|
||||
extern void *(*callc)(size_t, size_t);
|
||||
extern void (*fre)(void *);
|
||||
@@ -173,8 +173,7 @@ WINDOW * newpad(int nlines, int ncols)
|
||||
return win;
|
||||
}
|
||||
|
||||
WINDOW * subpad(WINDOW *orig, int nlines, int ncols,
|
||||
int begin_y, int begin_x)
|
||||
WINDOW *subpad(WINDOW *orig, int nlines, int ncols, int begin_y, int begin_x)
|
||||
{
|
||||
WINDOW *win;
|
||||
int i;
|
||||
@@ -231,8 +230,7 @@ WINDOW * subpad(WINDOW *orig, int nlines, int ncols,
|
||||
return win;
|
||||
}
|
||||
|
||||
int prefresh(WINDOW *win, int py, int px, int sy1, int sx1,
|
||||
int sy2, int sx2)
|
||||
int prefresh(WINDOW *win, int py, int px, int sy1, int sx1, int sy2, int sx2)
|
||||
{
|
||||
PDC_LOG(("prefresh() - called\n"));
|
||||
|
||||
@@ -246,8 +244,7 @@ int prefresh(WINDOW *win, int py, int px, int sy1, int sx1,
|
||||
return OK;
|
||||
}
|
||||
|
||||
int pnoutrefresh(WINDOW *w, int py, int px, int sy1, int sx1,
|
||||
int sy2, int sx2)
|
||||
int pnoutrefresh(WINDOW *w, int py, int px, int sy1, int sx1, int sy2, int sx2)
|
||||
{
|
||||
int num_cols;
|
||||
int sline = sy1;
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_slk =
|
||||
"$Id: slk.c,v 1.17 2006/02/08 17:40:33 wmcbrine Exp $";
|
||||
"$Id: slk.c,v 1.18 2006/02/10 17:55:28 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
/*man-start*********************************************************************
|
||||
@@ -313,7 +313,7 @@ int slk_noutrefresh(void)
|
||||
return wnoutrefresh(SP->slk_winptr);
|
||||
}
|
||||
|
||||
char * slk_label(int labnum)
|
||||
char *slk_label(int labnum)
|
||||
{
|
||||
PDC_LOG(("slk_label() - called\n"));
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_termattr =
|
||||
"$Id: termattr.c,v 1.20 2006/02/08 17:40:33 wmcbrine Exp $";
|
||||
"$Id: termattr.c,v 1.21 2006/02/10 17:55:28 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
/*man-start*********************************************************************
|
||||
@@ -162,7 +162,7 @@ char killchar(void)
|
||||
return _DLCHAR; /* line delete char (^U) */
|
||||
}
|
||||
|
||||
char * longname(void)
|
||||
char *longname(void)
|
||||
{
|
||||
static char _display[128];
|
||||
char *p = _display;
|
||||
@@ -258,7 +258,7 @@ chtype termattrs(void)
|
||||
return temp;
|
||||
}
|
||||
|
||||
char * termname(void)
|
||||
char *termname(void)
|
||||
{
|
||||
PDC_LOG(("termname() - called\n"));
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_terminfo =
|
||||
"$Id: terminfo.c,v 1.16 2006/02/08 17:40:33 wmcbrine Exp $";
|
||||
"$Id: terminfo.c,v 1.17 2006/02/10 17:55:28 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
/*man-start*********************************************************************
|
||||
@@ -115,7 +115,7 @@ int restartterm(char *term, int filedes, int *errret)
|
||||
return ERR;
|
||||
}
|
||||
|
||||
TERMINAL * set_curterm(TERMINAL *nterm)
|
||||
TERMINAL *set_curterm(TERMINAL *nterm)
|
||||
{
|
||||
PDC_LOG(("set_curterm() - called\n"));
|
||||
|
||||
@@ -162,14 +162,14 @@ int tgetnum(char *id)
|
||||
return ERR;
|
||||
}
|
||||
|
||||
char * tgetstr(char *id, char **area)
|
||||
char *tgetstr(char *id, char **area)
|
||||
{
|
||||
PDC_LOG(("tgetstr() - called: id %s\n", id));
|
||||
|
||||
return (char *)NULL;
|
||||
}
|
||||
|
||||
char * tgoto(char *cap, int col, int row)
|
||||
char *tgoto(char *cap, int col, int row)
|
||||
{
|
||||
PDC_LOG(("tgoto() - called\n"));
|
||||
|
||||
@@ -190,14 +190,14 @@ int tigetnum(char *capname)
|
||||
return -2;
|
||||
}
|
||||
|
||||
char * tigetstr(char *capname)
|
||||
char *tigetstr(char *capname)
|
||||
{
|
||||
PDC_LOG(("tigetstr() - called: capname %s\n", capname));
|
||||
|
||||
return (char *)(-1);
|
||||
}
|
||||
|
||||
char * tparm(char *cap, long p1, long p2, long p3, long p4,
|
||||
char *tparm(char *cap, long p1, long p2, long p3, long p4,
|
||||
long p5, long p6, long p7, long p8, long p9)
|
||||
{
|
||||
PDC_LOG(("tparm() - called: cap %s\n", cap));
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_util =
|
||||
"$Id: util.c,v 1.26 2006/02/08 17:40:33 wmcbrine Exp $";
|
||||
"$Id: util.c,v 1.27 2006/02/10 17:55:28 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
/*man-start*********************************************************************
|
||||
@@ -107,7 +107,7 @@ const char *rcsid_util =
|
||||
|
||||
static char strbuf[3] = {0, 0, 0};
|
||||
|
||||
char * unctrl(chtype c)
|
||||
char *unctrl(chtype c)
|
||||
{
|
||||
chtype ic;
|
||||
|
||||
@@ -197,7 +197,7 @@ static char *key_name[] = {
|
||||
"KEY_SUP", "KEY_SDOWN"
|
||||
};
|
||||
|
||||
char * keyname(int key)
|
||||
char *keyname(int key)
|
||||
{
|
||||
PDC_LOG(("keyname() - called: key %d\n", key));
|
||||
|
||||
@@ -237,7 +237,7 @@ int putwin(WINDOW *win, FILE *filep)
|
||||
return ERR;
|
||||
}
|
||||
|
||||
WINDOW * getwin(FILE *filep)
|
||||
WINDOW *getwin(FILE *filep)
|
||||
{
|
||||
PDC_LOG(("getwin() - called\n"));
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char *rcsid_window =
|
||||
"$Id: window.c,v 1.18 2006/02/08 17:40:33 wmcbrine Exp $";
|
||||
"$Id: window.c,v 1.19 2006/02/10 17:55:28 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
/*man-start*********************************************************************
|
||||
@@ -158,7 +158,7 @@ const char *rcsid_window =
|
||||
|
||||
**man-end**********************************************************************/
|
||||
|
||||
WINDOW * newwin(int nlines, int ncols, int begy, int begx)
|
||||
WINDOW *newwin(int nlines, int ncols, int begy, int begx)
|
||||
{
|
||||
extern void *(*callc)(size_t, size_t);
|
||||
extern void (*fre)(void *);
|
||||
@@ -254,8 +254,7 @@ int mvwin(WINDOW *win, int y, int x)
|
||||
return OK;
|
||||
}
|
||||
|
||||
WINDOW * subwin(WINDOW *orig, int nlines, int ncols,
|
||||
int begin_y, int begin_x)
|
||||
WINDOW *subwin(WINDOW *orig, int nlines, int ncols, int begin_y, int begin_x)
|
||||
{
|
||||
WINDOW *win;
|
||||
int i;
|
||||
@@ -303,8 +302,7 @@ WINDOW * subwin(WINDOW *orig, int nlines, int ncols,
|
||||
return win;
|
||||
}
|
||||
|
||||
WINDOW * derwin(WINDOW *orig, int nlines, int ncols,
|
||||
int begin_y, int begin_x)
|
||||
WINDOW *derwin(WINDOW *orig, int nlines, int ncols, int begin_y, int begin_x)
|
||||
{
|
||||
return subwin(orig, nlines, ncols, begin_y + orig->_begy,
|
||||
begin_x + orig->_begx);
|
||||
@@ -336,7 +334,7 @@ int mvderwin(WINDOW *win, int par_y, int par_x)
|
||||
return OK;
|
||||
}
|
||||
|
||||
WINDOW * dupwin(WINDOW *win)
|
||||
WINDOW *dupwin(WINDOW *win)
|
||||
{
|
||||
extern void *(*callc)(size_t, size_t);
|
||||
extern void (*fre)(void *);
|
||||
@@ -427,7 +425,7 @@ WINDOW * dupwin(WINDOW *win)
|
||||
|
||||
}
|
||||
|
||||
WINDOW * resize_window(WINDOW *win, int lins, int cols)
|
||||
WINDOW *resize_window(WINDOW *win, int lins, int cols)
|
||||
{
|
||||
extern void *(*callc)(size_t, size_t);
|
||||
extern void (*fre)(void *);
|
||||
|
||||
Reference in New Issue
Block a user