1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-28 04:38:00 +00:00

Resolve warning: 'DOS' (and 'SUNDISPLAY') is not defined, evaluates to 0; use #ifdef/#if defined(...)

This commit is contained in:
Nick Briggs
2022-12-25 12:18:30 -08:00
parent 38761fbd93
commit 5c81ca3f41
3 changed files with 6 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ LispPTR N_OP_pilotbitblt(LispPTR pilot_bt_tbl, LispPTR tos)
ScreenLocked = T;
#endif /* DOS */
#if SUNDISPLAY || DOS
#if defined(SUNDISPLAY) || defined(DOS)
displayflg = cursorin(pbt->pbtdesthi, (pbt->pbtdestlo + (dx >> 4)), w, h, backwardflg) ||
cursorin(pbt->pbtsourcehi, (pbt->pbtsourcelo + (sx >> 4)), w, h, backwardflg);
#endif /* SUNDISPLAY */
@@ -115,14 +115,14 @@ LispPTR N_OP_pilotbitblt(LispPTR pilot_bt_tbl, LispPTR tos)
num_gray = ((TEXTUREBBT *)pbt)->pbtgrayheightlessone + 1;
curr_gray_line = ((TEXTUREBBT *)pbt)->pbtgrayoffset;
#if DOS
#ifdef DOS
if (displayflg) (currentdsp->mouse_invisible)(currentdsp, IOPage);
;
#endif /* SUNDISPLAY / DOS */
new_bitblt_code;
#if DOS
#ifdef DOS
flush_display_lineregion(dx, dstbase, w, h);
if (displayflg) (currentdsp->mouse_visible)(IOPage->dlmousex, IOPage->dlmousey);
#endif /* SUNDISPLAY / DOS */

View File

@@ -225,7 +225,7 @@ void init_keyboard(int flg) /* if 0 init else re-init */
/* ----------------------------------------------------------------*/
void device_before_exit(void) {
#if DOS
#ifdef DOS
(currentmouse->device.exit)(currentmouse);
(currentkbd->device.exit)(currentkbd);
#endif /* SUNDISPLAY DOS*/

View File

@@ -110,7 +110,7 @@ extern DspInterface currentdsp;
typedef struct conspage ConsPage;
typedef ByteCode *InstPtr;
#if (DOS && OPDISP)
#if defined(DOS) && defined(OPDISP)
#include "inlndos.h"
InstPtr pccache asm("si");
LispPTR *cspcache asm("di");
@@ -211,7 +211,7 @@ void dispatch(void) {
}
#endif
#if (DOS && OPDISP)
#if defined(DOS) && defined(OPDISP)
#else
LispPTR *cspcache;
LispPTR tscache;