mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-23 23:35:20 +00:00
Old, unsupported compilers.
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
#include <curses.h>
|
||||
|
||||
#if defined(__TURBOC__) || defined(__EMX__) || defined(__DJGPP__) || \
|
||||
defined(__CYGWIN__) || defined(__MINGW32__) || \
|
||||
defined(__WATCOMC__) || defined(__PACIFIC__)
|
||||
defined(__CYGWIN__) || defined(__MINGW32__) || defined(__WATCOMC__)
|
||||
# ifndef HAVE_VSSCANF
|
||||
# define HAVE_VSSCANF /* have vsscanf() */
|
||||
# endif
|
||||
|
||||
@@ -43,18 +43,6 @@ chtype acs_map[128] =
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __PACIFIC__
|
||||
void movedata(unsigned sseg, unsigned soff, unsigned dseg,
|
||||
unsigned doff, unsigned n)
|
||||
{
|
||||
far char *src = MK_FP(sseg, soff);
|
||||
far char *dst = MK_FP(dseg, doff);
|
||||
|
||||
while (n--)
|
||||
*dst++ = *src++;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* position hardware cursor at (y, x) */
|
||||
|
||||
void PDC_gotoyx(int row, int col)
|
||||
@@ -108,9 +96,7 @@ void _new_packet(attr_t attr, int lineno, int x, int len, const chtype *srcp)
|
||||
if (pdc_direct_video)
|
||||
{
|
||||
#if SMALL || MEDIUM
|
||||
# ifndef __PACIFIC__
|
||||
struct SREGS segregs;
|
||||
# endif
|
||||
int ds;
|
||||
#endif
|
||||
/* this should be enough for the maximum width of a screen */
|
||||
@@ -138,12 +124,8 @@ void _new_packet(attr_t attr, int lineno, int x, int len, const chtype *srcp)
|
||||
pdc_video_ofs + (lineno * curscr->_maxx + x) * 2));
|
||||
#else
|
||||
# if SMALL || MEDIUM
|
||||
# ifdef __PACIFIC__
|
||||
ds = FP_SEG((void far *) temp_line);
|
||||
# else
|
||||
segread(&segregs);
|
||||
ds = segregs.ds;
|
||||
# endif
|
||||
movedata(ds, (int)temp_line, pdc_video_seg,
|
||||
pdc_video_ofs + (lineno * curscr->_maxx + x) * 2, len * 2);
|
||||
# else
|
||||
|
||||
12
dos/pdcdos.h
12
dos/pdcdos.h
@@ -3,14 +3,6 @@
|
||||
#include <curspriv.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__PACIFIC__) && !defined(__SMALL__)
|
||||
# define __SMALL__
|
||||
#endif
|
||||
|
||||
#if defined(__HIGHC__)
|
||||
# include <bios.h>
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
* MEMORY MODEL SUPPORT:
|
||||
*
|
||||
@@ -174,7 +166,3 @@ enum
|
||||
_FONT15, /* GENIUS */
|
||||
_FONT16
|
||||
};
|
||||
|
||||
#ifdef __PACIFIC__
|
||||
void movedata(unsigned, unsigned, unsigned, unsigned, unsigned);
|
||||
#endif
|
||||
|
||||
@@ -445,9 +445,7 @@ static int _query_adapter_type(void)
|
||||
void PDC_scr_close(void)
|
||||
{
|
||||
#if SMALL || MEDIUM
|
||||
# ifndef __PACIFIC__
|
||||
struct SREGS segregs;
|
||||
# endif
|
||||
int ds;
|
||||
#endif
|
||||
PDC_LOG(("PDC_scr_close() - called\n"));
|
||||
@@ -460,12 +458,8 @@ void PDC_scr_close(void)
|
||||
pdc_video_ofs));
|
||||
#else
|
||||
# if (SMALL || MEDIUM)
|
||||
# ifdef __PACIFIC__
|
||||
ds = FP_SEG((void far *)saved_screen);
|
||||
# else
|
||||
segread(&segregs);
|
||||
ds = segregs.ds;
|
||||
# endif
|
||||
movedata(ds, (int)saved_screen, pdc_video_seg, pdc_video_ofs,
|
||||
(saved_lines * saved_cols * 2));
|
||||
# else
|
||||
@@ -499,9 +493,7 @@ void PDC_scr_free(void)
|
||||
int PDC_scr_open(int argc, char **argv)
|
||||
{
|
||||
#if SMALL || MEDIUM
|
||||
# ifndef __PACIFIC__
|
||||
struct SREGS segregs;
|
||||
# endif
|
||||
int ds;
|
||||
#endif
|
||||
int i;
|
||||
@@ -559,12 +551,8 @@ int PDC_scr_open(int argc, char **argv)
|
||||
saved_lines * saved_cols * 2, saved_screen);
|
||||
#else
|
||||
# if SMALL || MEDIUM
|
||||
# ifdef __PACIFIC__
|
||||
ds = FP_SEG((void far *) saved_screen);
|
||||
# else
|
||||
segread(&segregs);
|
||||
ds = segregs.ds;
|
||||
# endif
|
||||
movedata(pdc_video_seg, pdc_video_ofs, ds, (int)saved_screen,
|
||||
(saved_lines * saved_cols * 2));
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user