From 929ac4183efe127b8c08f3fbd414ca28aa05ff61 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Mon, 12 Feb 2018 14:31:16 -0500 Subject: [PATCH] Old, unsupported compilers. --- curspriv.h | 3 +-- dos/pdcdisp.c | 18 ------------------ dos/pdcdos.h | 12 ------------ dos/pdcscrn.c | 12 ------------ 4 files changed, 1 insertion(+), 44 deletions(-) diff --git a/curspriv.h b/curspriv.h index 37fb6666..cf2b2b1b 100644 --- a/curspriv.h +++ b/curspriv.h @@ -10,8 +10,7 @@ #include #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 diff --git a/dos/pdcdisp.c b/dos/pdcdisp.c index d27d3894..f70cfffd 100644 --- a/dos/pdcdisp.c +++ b/dos/pdcdisp.c @@ -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 diff --git a/dos/pdcdos.h b/dos/pdcdos.h index 0f75abf6..0c8daa34 100644 --- a/dos/pdcdos.h +++ b/dos/pdcdos.h @@ -3,14 +3,6 @@ #include #include -#if defined(__PACIFIC__) && !defined(__SMALL__) -# define __SMALL__ -#endif - -#if defined(__HIGHC__) -# include -#endif - /*---------------------------------------------------------------------- * MEMORY MODEL SUPPORT: * @@ -174,7 +166,3 @@ enum _FONT15, /* GENIUS */ _FONT16 }; - -#ifdef __PACIFIC__ -void movedata(unsigned, unsigned, unsigned, unsigned, unsigned); -#endif diff --git a/dos/pdcscrn.c b/dos/pdcscrn.c index fcb5a3b9..7e997d98 100644 --- a/dos/pdcscrn.c +++ b/dos/pdcscrn.c @@ -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