From 2c93fab066c55a64e77bb5a7b593553a4ae61075 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Fri, 15 Jun 2012 16:55:49 +0900 Subject: Remove TRUE/FALSE definition in C sources. (Reported by #282 but not applied.) --- src/re.c | 8 -------- src/regenc.c | 8 -------- src/string.c | 8 -------- 3 files changed, 24 deletions(-) (limited to 'src') diff --git a/src/re.c b/src/re.c index 17b4f3da7..70e7c59b6 100644 --- a/src/re.c +++ b/src/re.c @@ -26,14 +26,6 @@ #define MKARG_B(c) (((c) & 0xff) << 16) #define MKARG_C(c) (((c) & 0xff) << 8) -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef TRUE -#define TRUE 1 -#endif - #define ARG_REG_OPTION_MASK \ (ONIG_OPTION_IGNORECASE|ONIG_OPTION_MULTILINE|ONIG_OPTION_EXTEND) #define ARG_ENCODING_FIXED 16 diff --git a/src/regenc.c b/src/regenc.c index 3764a694f..4cc496782 100644 --- a/src/regenc.c +++ b/src/regenc.c @@ -32,14 +32,6 @@ #include #include "regint.h" -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef TRUE -#define TRUE 1 -#endif - OnigEncoding OnigEncDefaultCharEncoding = ONIG_ENCODING_INIT_DEFAULT; extern int diff --git a/src/string.c b/src/string.c index 566c056cf..6392b504c 100644 --- a/src/string.c +++ b/src/string.c @@ -22,14 +22,6 @@ #include "st.h" #endif //ENABLE_REGEXP -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef TRUE -#define TRUE 1 -#endif - const char mrb_digitmap[] = "0123456789abcdefghijklmnopqrstuvwxyz"; #ifdef ENABLE_REGEXP -- cgit v1.2.3