From 3841aadba36a89e95dfc016bd997bbb12c1fed50 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Mon, 22 May 2017 15:15:08 -0700 Subject: [PATCH] Parenthesize constant expression defines to avoid later operator precedence warnings/errors. --- inc/locfile.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/inc/locfile.h b/inc/locfile.h index fc3a0d2..fc47cc6 100755 --- a/inc/locfile.h +++ b/inc/locfile.h @@ -18,25 +18,25 @@ #define PAGE_SIZE 512 /* 1 page == 512 byte */ -#define RECOG_OLD S_POSITIVE | 0 -#define RECOG_OLDEST S_POSITIVE | 1 -#define RECOG_NEW S_POSITIVE | 2 -#define RECOG_OLD_NEW S_POSITIVE | 3 -#define RECOG_NON S_POSITIVE | 5 +#define RECOG_OLD (S_POSITIVE | 0) +#define RECOG_OLDEST (S_POSITIVE | 1) +#define RECOG_NEW (S_POSITIVE | 2) +#define RECOG_OLD_NEW (S_POSITIVE | 3) +#define RECOG_NON (S_POSITIVE | 5) -#define ACCESS_INPUT S_POSITIVE | 0 -#define ACCESS_OUTPUT S_POSITIVE | 1 -#define ACCESS_BOTH S_POSITIVE | 2 -#define ACCESS_APPEND S_POSITIVE | 3 +#define ACCESS_INPUT (S_POSITIVE | 0) +#define ACCESS_OUTPUT (S_POSITIVE | 1) +#define ACCESS_BOTH (S_POSITIVE | 2) +#define ACCESS_APPEND (S_POSITIVE | 3) /* For getfileinfo */ -#define LENGTH S_POSITIVE | 1 -#define WDATE S_POSITIVE | 2 -#define RDATE S_POSITIVE | 3 -#define AUTHOR S_POSITIVE | 5 -#define PROTECTION S_POSITIVE | 6 -#define EOL S_POSITIVE | 7 -#define ALL S_POSITIVE | 8 +#define LENGTH (S_POSITIVE | 1) +#define WDATE (S_POSITIVE | 2) +#define RDATE (S_POSITIVE | 3) +#define AUTHOR (S_POSITIVE | 5) +#define PROTECTION (S_POSITIVE | 6) +#define EOL (S_POSITIVE | 7) +#define ALL (S_POSITIVE | 8) extern DLword *Lisp_world; /* To access LispSysout area */