Skip to content

Commit 476b959

Browse files
committed
Remove a few leftover defined(DOS) that remained in logical expressions, update endif comments
1 parent 97e1127 commit 476b959

File tree

15 files changed

+49
-52
lines changed

15 files changed

+49
-52
lines changed

src/bbtsub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ extern int MonoOrColor;
8989
/* take care of cursor movement & hiding */
9090
/* (during bitblts to screen) ourselves. */
9191
/*******************************************/
92-
#if defined(SUNDISPLAY) || defined(DOS)
92+
#if defined(SUNDISPLAY)
9393
#define REALCURSOR
9494
#else
9595
#undef REALCURSOR

src/bitblt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ LispPTR N_OP_pilotbitblt(LispPTR pilot_bt_tbl,int tos)
6262
{
6363
PILOTBBT *pbt;
6464
DLword *srcbase, *dstbase;
65-
#if defined(SUNDISPLAY) || defined(DOS)
65+
#if defined(SUNDISPLAY)
6666
int displayflg;
6767
#endif
6868
int sx, dx, w, h, srcbpl, dstbpl, backwardflg;
@@ -96,7 +96,7 @@ LispPTR N_OP_pilotbitblt(LispPTR pilot_bt_tbl,int tos)
9696
/* if displayflg != 0 then source or destination is DisplayBitMap */
9797
ScreenLocked = T;
9898

99-
#if SUNDISPLAY || DOS
99+
#if SUNDISPLAY
100100
displayflg = cursorin(pbt->pbtdesthi, (pbt->pbtdestlo + (dx >> 4)), w, h, backwardflg) ||
101101
cursorin(pbt->pbtsourcehi, (pbt->pbtsourcelo + (sx >> 4)), w, h, backwardflg);
102102
#endif /* SUNDISPLAY */
@@ -114,7 +114,7 @@ LispPTR N_OP_pilotbitblt(LispPTR pilot_bt_tbl,int tos)
114114

115115
#ifdef SUNDISPLAY
116116
if (displayflg) HideCursor;
117-
#endif /* SUNDISPLAY / DOS */
117+
#endif /* SUNDISPLAY */
118118

119119
new_bitblt_code
120120

@@ -127,7 +127,7 @@ LispPTR N_OP_pilotbitblt(LispPTR pilot_bt_tbl,int tos)
127127
if (in_display_segment(dstbase)) flush_display_lineregion(dx, dstbase, w, h);
128128
#endif
129129
if (displayflg) ShowCursor;
130-
#endif /* SUNDISPLAY / DOS */
130+
#endif /* SUNDISPLAY */
131131

132132
#ifdef XWINDOW
133133
flush_display_lineregion(dx, dstbase, w, h);

src/dsk.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,8 +2493,7 @@ static int make_directory(register char *dir)
24932493
/* Read thru DIR and gather all files that match FILE into */
24942494
/* VARRAY. DIR's case must match existing directory's, but */
24952495
/* FILE name matching is case-insensitive. For UNIX, the */
2496-
/* versionless file is marked with a version# of 0; for DOS, */
2497-
/* version 0 is the back-up copy of the file. */
2496+
/* versionless file is marked with a version# of 0 */
24982497
/* */
24992498
/************************************************************************/
25002499

src/dspif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void make_dsp_instance(DspInterface dsp, char *lispbitmap, int width_hint, int h
4141
fprintf(stderr, "Can't open display.");
4242
exit(-1);
4343
}
44-
#endif /* DOS | XWINDOW */
44+
#endif /* XWINDOW */
4545
} /* Now we know the maximum capabilities of the hardware. */
4646

4747
/*********************************************************************/

src/ether.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#include <sys/mbuf.h>
5959
#endif
6060
#include <nlist.h>
61-
#endif /* DOS */
61+
#endif
6262

6363
#include "commondefs.h"
6464
#include "lispemul.h"

src/initdsp.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
#include "xcursordefs.h"
6161
#endif
6262

63-
#if defined(XWINDOW) || defined(DOS)
63+
#if defined(XWINDOW)
6464
#include "devif.h"
6565
DLword *DisplayRegion68k_end_addr;
6666
extern DspInterface currentdsp;
6767
int DisplayWidth8;
68-
#endif /* DOS */
68+
#endif /* XWINDOW */
6969

7070
/* from /usr/include/sun/fbio.h some machines don't have following def. */
7171
#ifndef FBTYPE_SUNROP_COLOR
@@ -331,7 +331,7 @@ void init_display2(DLword *display_addr, int display_max)
331331
displayheight = my_screen.fb_height;
332332
#endif /* SUNDISPLAY */
333333

334-
#if (defined(XWINDOW) || defined(DOS))
334+
#if defined(XWINDOW)
335335
(currentdsp->device.enter)(currentdsp);
336336
displaywidth = currentdsp->Display.width;
337337
displayheight = currentdsp->Display.height;
@@ -578,12 +578,12 @@ void display_before_exit() {
578578

579579
#endif /* SUNDISPLAY */
580580

581-
#if defined(XWINDOW) || defined(DOS)
581+
#if defined(XWINDOW)
582582
(currentdsp->device.exit)(currentdsp);
583-
#endif /* DOS */
583+
#endif /* XWINDOW */
584584
}
585585

586-
#if defined(DISPLAYBUFFER) || defined(DOS)
586+
#if defined(DISPLAYBUFFER)
587587
/************************************************************************/
588588
/* */
589589
/* i n _ d i s p l a y _ s e g m e n t */
@@ -625,7 +625,7 @@ void flush_display_buffer() {
625625
(currentdsp->bitblt_to_screen)(currentdsp, DisplayRegion68k, currentdsp->Visible.x,
626626
currentdsp->Visible.y, currentdsp->Visible.width,
627627
currentdsp->Visible.height);
628-
#endif /* DOS */
628+
#endif /* XWINDOW */
629629
}
630630

631631
/************************************************************************/
@@ -654,11 +654,11 @@ void flush_display_region(int x, int y, int w, int h)
654654

655655
#endif /* SUNDISPLAY */
656656

657-
#if (defined(XWINDOW) || defined(DOS))
657+
#if defined(XWINDOW)
658658
TPRINT(("Enter flush_display_region x=%d, y=%d, w=%d, h=%d\n", x, y, w, h));
659659
(currentdsp->bitblt_to_screen)(currentdsp, DisplayRegion68k, x, y, w, h);
660660
TPRINT(("Exit flush_display_region\n"));
661-
#endif /* DOS */
661+
#endif /* XWINDOW */
662662
}
663663
#ifdef BYTESWAP
664664
void byte_swapped_displayregion(int x, int y, int w, int h)
@@ -704,11 +704,11 @@ void flush_display_lineregion(UNSIGNED x, DLword *ybase, UNSIGNED w, UNSIGNED h)
704704

705705
#endif /* SUNDISPLAY */
706706

707-
#if (defined(XWINDOW) || defined(DOS))
707+
#if defined(XWINDOW)
708708
TPRINT(("Enter flush_display_lineregion x=%d, y=%d, w=%d, h=%d\n", x, y, w, h));
709709
(currentdsp->bitblt_to_screen)(currentdsp, DisplayRegion68k, x, y, w, h);
710710
TPRINT(("Exit flush_display_lineregion\n"));
711-
#endif /* DOS */
711+
#endif /* XWINDOW */
712712
}
713713

714714
/************************************************************************/
@@ -737,9 +737,9 @@ void flush_display_ptrregion(DLword *ybase, UNSIGNED bitoffset, UNSIGNED w, UNSI
737737

738738
#if (defined(SUNDISPLAY) && defined(DISPLAYBUFFER))
739739
pr_rop(ColorDisplayPixrect, x, y, w, h, COPY_PIXRECT_TO_COLOR, DisplayRegionPixrect, x, y);
740-
#elif (defined(XWINDOW) || defined(DOS))
740+
#elif defined(XWINDOW)
741741
TPRINT(("Enter flush_display_ptrregion\n x=%d, y=%d, w=%d, h=%d\n", x, y, w, h));
742742
(currentdsp->bitblt_to_screen)(currentdsp, DisplayRegion68k, x, y, w, h);
743743
TPRINT(("Exit flush_display_ptrregion\n"));
744-
#endif /* DOS */
744+
#endif /* SUNDISPLAY & DISPLAYBUFFER, XWINDOW */
745745
}

src/initkbd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void init_keyboard(int flg) /* if 0 init else re-init */
226226
#elif XWINDOW
227227
init_Xevent(currentdsp);
228228

229-
#endif /* XWINDOW DOS */
229+
#endif /* SUNDISPLAY, XWINDOW */
230230
}
231231

232232
/* ----------------------------------------------------------------*/
@@ -247,7 +247,7 @@ void device_before_exit() {
247247
}
248248
close(LispKbdFd);
249249

250-
#endif /* SUNDISPLAY DOS*/
250+
#endif /* SUNDISPLAY */
251251
display_before_exit();
252252
}
253253

@@ -307,7 +307,7 @@ void seteventmask(struct inputmask *eventmask)
307307
#define KB_DEC3100 (9 + MIN_KEYTYPE) /* TODO: Can we remove this? */
308308
#define KB_HP9000 (10 + MIN_KEYTYPE) /* TODO: Can we remove this? */
309309
#define KB_X (11 + MIN_KEYTYPE)
310-
#define KB_DOS (12 + MIN_KEYTYPE)
310+
#define KB_DOS (12 + MIN_KEYTYPE) /* TODO: Can we remove this? */
311311

312312
/* KB_SUN4 not defined in older OS versions */
313313
#ifndef KB_SUN4

src/kbdsubrs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include "devif.h"
3737
extern KbdInterface currentkbd;
3838
extern DspInterface currentdsp;
39-
#endif /* DOS */
39+
#endif /* XWINDOW */
4040

4141
/****************************************************
4242
*
@@ -66,13 +66,13 @@ void KB_enable(LispPTR *args) /* args[0] : ON/OFF flag
6666
FD_SET(LispWindowFd, &LispReadFds);
6767
#elif XWINDOW
6868
enable_Xkeyboard(currentdsp);
69-
#endif /* DOS */
69+
#endif /* SUNDISPLAY, XWINDOW */
7070
} else if (args[0] == NIL) {
7171
#ifdef SUNDISPLAY
7272
FD_CLR(LispWindowFd, &LispReadFds);
7373
#elif XWINDOW
7474
disable_Xkeyboard(currentdsp);
75-
#endif /* DOS */
75+
#endif /* SUNDISPLAY, XWINDOW */
7676
} else {
7777
error("KB_enable: illegal arg \n");
7878
printf("KB_enable: arg = %d\n", args[0]);
@@ -121,7 +121,7 @@ void KB_beep(LispPTR *args) /* args[0] : ON/OFF flag
121121

122122
#elif XWINDOW
123123
if (args[0] == ATOM_T) beep_Xkeyboard(currentdsp);
124-
#endif /* SUNDISPLAY, XWINDOW, DOS */
124+
#endif /* SUNDISPLAY, XWINDOW */
125125
}
126126

127127
/****************************************************

src/keyevent.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <suntool/window.h>
3131
#include <ctype.h>
3232
#include <sundev/kbio.h>
33-
#endif /* DOS */
33+
#endif /* SUNDISPLAY */
3434

3535
#include "lispemul.h"
3636
#include "lspglob.h"
@@ -57,11 +57,11 @@
5757
#endif /* MAIKO_ENABLE_ETHERNET */
5858

5959
#include "dbprint.h"
60-
#if (defined(DOS) || defined(XWINDOW))
60+
#if defined(XWINDOW)
6161
#include "devif.h"
6262
extern DspInterface currentdsp;
6363
extern IOPAGE *IOPage68K;
64-
#endif /* DOS */
64+
#endif /* XWINDOW */
6565

6666
/* for contextsw */
6767
#define AS_OPCODE 1

src/ldsout.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ int Storage_expanded; /* T or NIL */
5050
/* Load the sysout file into memory. */
5151
/* */
5252
/************************************************************************/
53-
#if defined(DOS) || defined(XWINDOW)
53+
#if defined(XWINDOW)
5454
#include "devif.h"
5555
extern DspInterface currentdsp;
56-
#endif /* DOS || XWINDOW */
56+
#endif /* XWINDOW */
5757

5858
/* sys_size is sysout size in megabytes */
5959
int sysout_loader(const char *sysout_file_name, int sys_size) {
@@ -299,11 +299,11 @@ int sysout_loader(const char *sysout_file_name, int sys_size) {
299299
free(fptovp);
300300
DBPRINT(("sysout file is read completely.\n"));
301301

302-
#if (defined(DISPLAYBUFFER) || defined(XWINDOW) || defined(DOS))
302+
#if defined(DISPLAYBUFFER) || defined(XWINDOW)
303303
TPRINT(("Flushing display buffer...\n"));
304304
flush_display_buffer();
305305
TPRINT(("After Flushing display buffer\n"));
306-
#endif /* DISPLAYBUFFER || XWINDOW || DOS */
306+
#endif /* DISPLAYBUFFER || XWINDOW */
307307

308308
close(sysout);
309309
return (sys_size);

0 commit comments

Comments
 (0)