mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 15:55:14 +00:00
The return value of PDC_gotoyx() was not used.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* See the file maintain.er for details of the current maintainer. *
|
||||
************************************************************************/
|
||||
|
||||
/* $Id: curspriv.h,v 1.102 2006/07/28 09:24:40 wmcbrine Exp $ */
|
||||
/* $Id: curspriv.h,v 1.103 2006/07/28 20:53:09 wmcbrine Exp $ */
|
||||
|
||||
/* CURSPRIV.H
|
||||
|
||||
@@ -96,7 +96,7 @@ int PDC_get_cursor_mode(void);
|
||||
int PDC_get_font(void);
|
||||
int PDC_get_rows(void);
|
||||
int PDC_get_buffer_rows(void);
|
||||
int PDC_gotoyx(int, int);
|
||||
void PDC_gotoyx(int, int);
|
||||
void PDC_init_atrtab(void);
|
||||
WINDOW *PDC_makenew(int, int, int, int);
|
||||
int PDC_mouse_in_slk(int, int);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
RCSID("$Id: pdcdisp.c,v 1.44 2006/07/28 19:08:24 wmcbrine Exp $");
|
||||
RCSID("$Id: pdcdisp.c,v 1.45 2006/07/28 20:53:09 wmcbrine Exp $");
|
||||
|
||||
extern unsigned char atrtab[MAX_ATRTAB];
|
||||
|
||||
@@ -46,15 +46,12 @@ void movedata(unsigned sseg, unsigned soff, unsigned dseg,
|
||||
screen. We don't optimize here -- on a PC, it takes more time
|
||||
to optimize than to do things directly.
|
||||
|
||||
PDCurses Return Value:
|
||||
This function returns OK on success and ERR on error.
|
||||
|
||||
Portability:
|
||||
PDCurses int PDC_gotoyx(int row, int col);
|
||||
PDCurses void PDC_gotoyx(int row, int col);
|
||||
|
||||
**man-end****************************************************************/
|
||||
|
||||
int PDC_gotoyx(int row, int col)
|
||||
void PDC_gotoyx(int row, int col)
|
||||
{
|
||||
PDC_LOG(("PDC_gotoyx() - called: row %d col %d\n", row, col));
|
||||
|
||||
@@ -63,8 +60,6 @@ int PDC_gotoyx(int row, int col)
|
||||
regs.h.dh = (unsigned char) row;
|
||||
regs.h.dl = (unsigned char) col;
|
||||
int86(0x10, ®s, ®s);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*man-start**************************************************************
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <curses.h>
|
||||
#include <string.h>
|
||||
|
||||
RCSID("$Id: pdcdisp.c,v 1.30 2006/07/28 09:24:40 wmcbrine Exp $");
|
||||
RCSID("$Id: pdcdisp.c,v 1.31 2006/07/28 20:53:09 wmcbrine Exp $");
|
||||
|
||||
extern unsigned char atrtab[MAX_ATRTAB];
|
||||
|
||||
@@ -34,15 +34,12 @@ extern unsigned char atrtab[MAX_ATRTAB];
|
||||
We don't optimize here -- on a PC, it takes more time to
|
||||
optimize than to do things directly.
|
||||
|
||||
PDCurses Return Value:
|
||||
This function returns OK on success and ERR on error.
|
||||
|
||||
Portability:
|
||||
PDCurses int PDC_gotoyx(int row, int col);
|
||||
PDCurses void PDC_gotoyx(int row, int col);
|
||||
|
||||
**man-end****************************************************************/
|
||||
|
||||
int PDC_gotoyx(int row, int col)
|
||||
void PDC_gotoyx(int row, int col)
|
||||
{
|
||||
PDC_LOG(("PDC_gotoyx() - called: row %d col %d\n", row, col));
|
||||
|
||||
@@ -51,7 +48,6 @@ int PDC_gotoyx(int row, int col)
|
||||
#else
|
||||
VioSetCurPos(row, col, 0);
|
||||
#endif
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*man-start**************************************************************
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
extern HANDLE hConOut;
|
||||
extern unsigned char atrtab[MAX_ATRTAB];
|
||||
|
||||
RCSID("$Id: pdcdisp.c,v 1.29 2006/07/28 09:24:40 wmcbrine Exp $");
|
||||
RCSID("$Id: pdcdisp.c,v 1.30 2006/07/28 20:53:09 wmcbrine Exp $");
|
||||
|
||||
/*man-start**************************************************************
|
||||
|
||||
@@ -37,15 +37,12 @@ RCSID("$Id: pdcdisp.c,v 1.29 2006/07/28 09:24:40 wmcbrine Exp $");
|
||||
We don't optimize here -- on a PC, it takes more time to
|
||||
optimize than to do things directly.
|
||||
|
||||
PDCurses Return Value:
|
||||
This function returns OK on success and ERR on error.
|
||||
|
||||
Portability:
|
||||
PDCurses int PDC_gotoyx(int row, int col);
|
||||
PDCurses void PDC_gotoyx(int row, int col);
|
||||
|
||||
**man-end****************************************************************/
|
||||
|
||||
int PDC_gotoyx(int row, int col)
|
||||
void PDC_gotoyx(int row, int col)
|
||||
{
|
||||
COORD coord;
|
||||
|
||||
@@ -56,8 +53,6 @@ int PDC_gotoyx(int row, int col)
|
||||
coord.Y = row;
|
||||
|
||||
SetConsoleCursorPosition(hConOut, coord);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*man-start**************************************************************
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
RCSID("$Id: pdcdisp.c,v 1.31 2006/07/28 19:32:07 wmcbrine Exp $");
|
||||
RCSID("$Id: pdcdisp.c,v 1.32 2006/07/28 20:53:09 wmcbrine Exp $");
|
||||
|
||||
int PDC_display_cursor(int oldrow, int oldcol, int newrow, int newcol,
|
||||
int visibility)
|
||||
@@ -73,22 +73,17 @@ int PDC_display_cursor(int oldrow, int oldcol, int newrow, int newcol,
|
||||
screen. We don't optimize here -- on a PC, it takes more time
|
||||
to optimize than to do things directly.
|
||||
|
||||
PDCurses Return Value:
|
||||
This function returns OK on success and ERR on error.
|
||||
|
||||
Portability:
|
||||
PDCurses int PDC_gotoyx(int row, int col);
|
||||
PDCurses void PDC_gotoyx(int row, int col);
|
||||
|
||||
**man-end****************************************************************/
|
||||
|
||||
int PDC_gotoyx(int row, int col)
|
||||
void PDC_gotoyx(int row, int col)
|
||||
{
|
||||
PDC_LOG(("PDC_gotoyx() - called: row %d col %d\n", row, col));
|
||||
|
||||
PDC_display_cursor(SP->cursrow, SP->curscol, row, col,
|
||||
SP->visibility);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*man-start**************************************************************
|
||||
|
||||
Reference in New Issue
Block a user