mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-25 08:15:27 +00:00
Dropped support for Microway NDP, a long-dead compiler that was
reputedly never very good anyway.
This commit is contained in:
17
curses.h
17
curses.h
@@ -15,7 +15,7 @@
|
||||
* See the file maintain.er for details of the current maintainer. *
|
||||
************************************************************************/
|
||||
|
||||
/* $Id: curses.h,v 1.212 2006/08/11 22:10:36 wmcbrine Exp $ */
|
||||
/* $Id: curses.h,v 1.213 2006/08/11 22:19:45 wmcbrine Exp $ */
|
||||
|
||||
/*----------------------------------------------------------------------*
|
||||
* PDCurses *
|
||||
@@ -294,21 +294,6 @@ PDCurses portable platform definitions list:
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*----------------------------------------
|
||||
* MicroWay NDP C/C++ 386 4.2.0 compiler
|
||||
*/
|
||||
|
||||
#ifdef MX386
|
||||
# include <bios.h>
|
||||
# ifdef DOS
|
||||
# ifdef __i860
|
||||
typedef void _int;
|
||||
# else
|
||||
typedef int _int;
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*----------------------------------------
|
||||
* HI-TECH COMPILERS Pacific C
|
||||
*
|
||||
|
||||
12
dos/pdcdos.h
12
dos/pdcdos.h
@@ -15,7 +15,7 @@
|
||||
* See the file maintain.er for details of the current maintainer. *
|
||||
************************************************************************/
|
||||
|
||||
/* $Id: pdcdos.h,v 1.8 2006/08/11 22:10:36 wmcbrine Exp $ */
|
||||
/* $Id: pdcdos.h,v 1.9 2006/08/11 22:19:45 wmcbrine Exp $ */
|
||||
|
||||
#define CURSES_LIBRARY 1
|
||||
#include <curses.h>
|
||||
@@ -53,13 +53,7 @@
|
||||
|
||||
#include <dos.h>
|
||||
|
||||
#ifdef MX386
|
||||
typedef union REGS16 Regs;
|
||||
#else
|
||||
typedef union REGS Regs;
|
||||
#endif
|
||||
|
||||
extern Regs regs;
|
||||
extern union REGS regs;
|
||||
|
||||
#ifdef __DJGPP__ /* Note: works only in plain DOS... */
|
||||
# if DJGPP == 2
|
||||
@@ -72,7 +66,7 @@ extern Regs regs;
|
||||
# ifdef __TURBOC__
|
||||
# define _FAR_POINTER(s,o) MK_FP(s,o)
|
||||
# else
|
||||
# if (defined(__WATCOMC__) && defined(__FLAT__)) || defined(MX386)
|
||||
# if defined(__WATCOMC__) && defined(__FLAT__)
|
||||
# define _FAR_POINTER(s,o) ((((int)(s)) << 4) + ((int)(o)))
|
||||
# else
|
||||
# define _FAR_POINTER(s,o) (((long)s << 16) | (long)o)
|
||||
|
||||
13
dos/pdckbd.c
13
dos/pdckbd.c
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "pdcdos.h"
|
||||
|
||||
RCSID("$Id: pdckbd.c,v 1.32 2006/08/11 05:43:37 wmcbrine Exp $");
|
||||
RCSID("$Id: pdckbd.c,v 1.33 2006/08/11 22:19:45 wmcbrine Exp $");
|
||||
|
||||
/************************************************************************
|
||||
* Table for key code translation of function keys in keypad mode *
|
||||
@@ -349,22 +349,15 @@ int PDC_set_ctrl_break(bool setting)
|
||||
{
|
||||
PDC_LOG(("PDC_set_ctrl_break() - called\n"));
|
||||
|
||||
#ifdef MX386
|
||||
if (setting)
|
||||
_ignore_breaks();
|
||||
else
|
||||
_watch_breaks();
|
||||
#else
|
||||
# ifdef __DJGPP__
|
||||
#ifdef __DJGPP__
|
||||
signal(SIGINT, setting ? SIG_DFL : SIG_IGN);
|
||||
/* __djgpp_set_ctrl_c(setting);*/
|
||||
setcbrk(setting);
|
||||
# else
|
||||
#else
|
||||
regs.h.ah = 0x33;
|
||||
regs.h.al = 0x00;
|
||||
regs.h.dl = (unsigned char) (setting ? 1 : 0);
|
||||
int86(0x21, ®s, ®s);
|
||||
# endif
|
||||
#endif
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
# include <sys/movedata.h>
|
||||
#endif
|
||||
|
||||
RCSID("$Id: pdcscrn.c,v 1.43 2006/08/11 22:10:36 wmcbrine Exp $");
|
||||
RCSID("$Id: pdcscrn.c,v 1.44 2006/08/11 22:19:45 wmcbrine Exp $");
|
||||
|
||||
Regs regs; /* used in various other modules */
|
||||
union REGS regs; /* used in various other modules */
|
||||
|
||||
static unsigned short *saved_screen = NULL;
|
||||
static int saved_lines = 0;
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
RCSID("$Id: pdcutil.c,v 1.7 2006/07/29 06:00:54 wmcbrine Exp $");
|
||||
RCSID("$Id: pdcutil.c,v 1.8 2006/08/11 22:19:45 wmcbrine Exp $");
|
||||
|
||||
void PDC_beep(void)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ void PDC_napms(int ms)
|
||||
|
||||
delay(ms);
|
||||
|
||||
# elif defined(MSC) || defined(MX386)
|
||||
# elif defined(MSC)
|
||||
{
|
||||
clock_t goal = (ms / 50) + clock();
|
||||
while (goal > clock())
|
||||
|
||||
Reference in New Issue
Block a user