From 98d0a13a20b7fa537c9c9cda5ea88bca25976a24 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sun, 2 Aug 2020 14:07:51 +0900 Subject: [PATCH] Change the underlying type of boolean to C99 _Bool --- src/portab.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/portab.h b/src/portab.h index cad424b..7059852 100644 --- a/src/portab.h +++ b/src/portab.h @@ -26,12 +26,6 @@ #include "config.h" -#ifdef DMALLOC -#include -#endif - -#define YES 1 -#define NO 0 #define OK 0 #define NG (-1) #define true 1 @@ -40,7 +34,7 @@ #ifndef FALSE #define FALSE 0 #undef TRUE -#define TRUE (!FALSE) +#define TRUE 1 #endif #define min(x,y) ((x) < (y) ? (x) : (y)) @@ -53,7 +47,7 @@ typedef unsigned long ___DWORD; #else typedef unsigned int ___DWORD; #endif -typedef char ___boolean; +typedef _Bool ___boolean; #ifndef BYTE #define BYTE ___BYTE