Empty versions of getwin() and putwin(). These WILL be fleshed out, but

not today.
This commit is contained in:
William McBrine
2005-12-17 01:03:16 +00:00
parent 14a2e033c5
commit 6b22076dfe
7 changed files with 51 additions and 14 deletions

View File

@@ -324,7 +324,7 @@ FUNCTIONS
mvwscanw scanw
napms kernel
newpad pad
*** newterm initscr
newterm initscr
newwin window
nl outopts
nocbreak inopts

View File

@@ -46,6 +46,7 @@ EXPORTS
filter
flash
flushinp
getwin
has_colors
has_ic
has_il
@@ -84,6 +85,7 @@ EXPORTS
pnoutrefresh
prefresh
printw
putwin
qiflush
raw
raw_output

View File

@@ -61,7 +61,7 @@
#endif
#ifdef PDCDEBUG
char *rcsid_initscr = "$Id: initscr.c,v 1.8 2005/11/24 18:50:40 wmcbrine Exp $";
char *rcsid_initscr = "$Id: initscr.c,v 1.9 2005/12/17 01:03:16 wmcbrine Exp $";
#else
char* _curses_notice = "PDCurses 2.2 - Public Domain 1994";
#endif
@@ -165,7 +165,7 @@ extern void (*PDC_initial_slk)();
WINDOW *Xinitscr(int argc, char *argv[]);
int endwin(void);
int isendwin(void);
*** SCREEN *newterm(char *type, FILE *outfd, FILE *infd);
SCREEN *newterm(char *type, FILE *outfd, FILE *infd);
SCREEN *set_term(SCREEN *new);
*** void delscreen(SCREEN *sp);

View File

@@ -33,7 +33,7 @@
#endif
#ifdef PDCDEBUG
char *rcsid_terminfo = "$Id: terminfo.c,v 1.2 2005/12/17 00:26:17 wmcbrine Exp $";
char *rcsid_terminfo = "$Id: terminfo.c,v 1.3 2005/12/17 01:03:16 wmcbrine Exp $";
#endif
/*man-start*********************************************************************
@@ -97,9 +97,9 @@ int newcol;
}
/***********************************************************************/
#ifdef HAVE_PROTO
int vidattr(chtype attr)
int PDC_CDECL vidattr(chtype attr)
#else
int vidattr(attr)
int PDC_CDECL vidattr(attr)
chtype attr;
#endif
/***********************************************************************/
@@ -111,9 +111,9 @@ chtype attr;
}
/***********************************************************************/
#ifdef HAVE_PROTO
int vidputs(chtype attr, int (*putfunc)(int))
int PDC_CDECL vidputs(chtype attr, int (*putfunc)(int))
#else
int vidputs(attr, putfunc)
int PDC_CDECL vidputs(attr, putfunc)
chtype attr;
int (*putfunc)();
#endif

View File

@@ -53,10 +53,11 @@
/* undefine any macros for functions defined in this module */
#undef unctrl
#undef keyname
#undef has_key
#undef filter
#undef use_env
#undef put_win
#undef get_win
#undef putwin
#undef getwin
#undef delay_output
#undef flushinp
@@ -65,7 +66,7 @@
#endif
#ifdef PDCDEBUG
char *rcsid_util = "$Id: util.c,v 1.8 2005/12/16 23:27:47 wmcbrine Exp $";
char *rcsid_util = "$Id: util.c,v 1.9 2005/12/17 01:03:16 wmcbrine Exp $";
#endif
/*man-start*********************************************************************
@@ -77,8 +78,8 @@ char *rcsid_util = "$Id: util.c,v 1.8 2005/12/16 23:27:47 wmcbrine Exp $";
char *keyname(int key);
void filter(void);
void use_env(bool x);
*** int putwin(WINDOW *win, FILE *filep);
*** WINDOW *getwin(FILE *filep);
int putwin(WINDOW *win, FILE *filep);
WINDOW *getwin(FILE *filep);
int delay_output( int ms );
int flushinp(void);
@@ -113,7 +114,8 @@ char *rcsid_util = "$Id: util.c,v 1.8 2005/12/16 23:27:47 wmcbrine Exp $";
If this is not true, then we will be unable to reliably flush
the typeahead.
filter() and use_env() are no-ops on PDCurses.
filter() and use_env() are no-ops on PDCurses. getwin() and
putwin() also do nothing yet.
X/Open Return Value:
All functions return OK on success and ERR on error.
@@ -292,6 +294,35 @@ bool x;
}
/***********************************************************************/
#ifdef HAVE_PROTO
int PDC_CDECL putwin(WINDOW *win, FILE *filep)
#else
int PDC_CDECL putwin(win, filep)
WINDOW *win;
FILE *filep;
#endif
/***********************************************************************/
{
#ifdef PDCDEBUG
if (trace_on) PDC_debug("putwin() - called\n");
#endif
return ERR;
}
/***********************************************************************/
#ifdef HAVE_PROTO
WINDOW* PDC_CDECL getwin(FILE *filep)
#else
WINDOW* PDC_CDECL getwin(filep)
FILE *filep;
#endif
/***********************************************************************/
{
#ifdef PDCDEBUG
if (trace_on) PDC_debug("getwin() - called\n");
#endif
return (WINDOW *)NULL;
}
/***********************************************************************/
#ifdef HAVE_PROTO
int PDC_CDECL delay_output( int ms )
#else
int PDC_CDECL delay_output(ms)

View File

@@ -48,6 +48,7 @@ EXPORTS filter
EXPORTS flash
EXPORTS flushinp
EXPORTS getstr
EXPORTS getwin
EXPORTS halfdelay
EXPORTS has_colors
EXPORTS has_ic
@@ -137,6 +138,7 @@ EXPORTS pechochar
EXPORTS pnoutrefresh
EXPORTS prefresh
EXPORTS printw
EXPORTS putwin
EXPORTS qiflush
EXPORTS raw
EXPORTS raw_output

View File

@@ -41,6 +41,7 @@ filter
flash
flushinp
getstr
getwin
halfdelay
has_colors
has_ic
@@ -130,6 +131,7 @@ pechochar
pnoutrefresh
prefresh
printw
putwin
qiflush
raw
raw_output