Skip to content

Commit 1043a80

Browse files
authored
Remove unnecessary (re)definitions of TRUE/FALSE (#356)
1 parent c60b522 commit 1043a80

File tree

7 files changed

+0
-30
lines changed

7 files changed

+0
-30
lines changed

inc/devif.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,6 @@ typedef struct
285285
#define mid(a, b, c) max( min( b, max( a, c ), min( a, max( b, c ))))
286286
#endif /* mid */
287287

288-
#ifndef FALSE
289-
#define FALSE 0
290-
#endif /* FALSE */
291-
292-
#ifndef TRUE
293-
#define TRUE !FALSE
294-
#endif /* TRUE */
295-
296288
#define MINKEYEVENT 2 /* leave 2 words for read,write offsets */
297289
#define NUMBEROFKEYEVENTS 383
298290

inc/kbdif.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,4 @@ typedef struct {
3131
int device_locked;
3232
#endif /* DOS */
3333
} KbdInterfaceRec, *KbdInterface;
34-
35-
36-
#ifndef TRUE
37-
#define FALSE 0
38-
#define TRUE !FALSE
39-
#endif /* TRUE */
4034
#endif /* KBDIF_H */

src/main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,6 @@ extern int maxpages;
243243
extern int *Lisp_errno;
244244
extern int Dummy_errno; /* If errno cell is not provided by Lisp, dummy_errno is used. */
245245

246-
#define FALSE 0
247-
#define TRUE !FALSE
248-
249246
char sysout_name[MAXPATHLEN]; /* Set by read_Xoption, in the X version. */
250247
int sysout_size = 0; /* ditto */
251248

src/mnwevent.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
#include "adr68k.h"
2727
#include "cell.h"
2828

29-
#ifndef FALSE
30-
#define FALSE 0
31-
#define TRUE !FALSE
32-
#endif /* FALSE */
33-
3429
extern XEvent report;
3530

3631
extern DLword *CTopMNWEvent;

src/picture.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
#include "adr68k.h"
2424
#include "lspglob.h"
2525

26-
#define FALSE 0
27-
#define TRUE !FALSE
28-
2926
#include "picture.h"
3027

3128
#define min(x, y) (((x) > (y)) ? (y) : (x))

src/timer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ extern DspInterface currentdsp;
8888
int TIMEOUT_TIME; /* For file system timeout */
8989

9090
#ifdef XWINDOW
91-
#define FALSE 0
92-
#define TRUE !FALSE
9391
volatile sig_atomic_t Event_Req = FALSE;
9492
#endif /* XWINDOW */
9593

src/truecolor.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424

2525
#include "picture.h"
2626

27-
#define FALSE 0
28-
#define TRUE !FALSE
29-
3027
#define COLOR_INIT 0
3128
#define COLOR_OVERLAYREGION 1
3229
#define COLOR_VIDEOREGION 2

0 commit comments

Comments
 (0)