Commit 2f1acd49 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

close[t:3706] Deprecate BOOL. Refs #3706.

git-svn-id: file:///svn/toku/tokudb@32750 c7de825b-a66e-492c-adef-691d508d4ae1
parent e875b44f
......@@ -76,14 +76,11 @@ typedef struct {
FILENUM *filenums;
} FILENUMS;
#if !TOKU_WINDOWS && !defined(BOOL_DEFINED)
#define BOOL_DEFINED
#include <stdbool.h>
// typedef enum __toku_bool { FALSE=0, TRUE=1} BOOL;
// In the future, use the stdbool bool and constants (true false), rather than BOOL, TRUE, and FALSE.
#define TRUE true
#define FALSE false
typedef bool BOOL;
#endif
typedef struct tokulogger *TOKULOGGER;
#define NULL_LOGGER ((TOKULOGGER)0)
......
......@@ -205,15 +205,11 @@ uint_dbt_cmp (DB *db, const DBT *a, const DBT *b) {
return 0;
}
#if !TOKU_WINDOWS && !defined(BOOL_DEFINED)
#define BOOL_DEFINED
#include <stdbool.h>
// typedef enum __toku_bool { FALSE=0, TRUE=1} BOOL;
#define TRUE true
#define FALSE false
typedef bool BOOL;
#endif
#ifdef USE_TDB
......
......@@ -11,11 +11,7 @@
#include <inttypes.h>
#include <signal.h>
#include <memory.h>
typedef u_int8_t bool;
#define true ((bool)1)
#define false ((bool)0)
#include <stdbool.h>
#define SET_BITS(bitvector, bits) ((bitvector) |= (bits))
#define REMOVE_BITS(bitvector, bits) ((bitvector) &= ~(bits))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment