diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-06-15 06:59:28 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-06-15 06:59:28 -0700 |
| commit | a91b8ade8e6c91964e546d213def0d4120bd2f5c (patch) | |
| tree | f51fac19c6a3435f03b2fc9c5645fc326f356c45 /src | |
| parent | 5353b8555cac47f1615899e5622acb411a501eab (diff) | |
| parent | 2c93fab066c55a64e77bb5a7b593553a4ae61075 (diff) | |
| download | mruby-a91b8ade8e6c91964e546d213def0d4120bd2f5c.tar.gz mruby-a91b8ade8e6c91964e546d213def0d4120bd2f5c.zip | |
Merge pull request #288 from monaka/pr-remove-some-redundant-code-2
Remove some redundant code. (second try)
Diffstat (limited to 'src')
| -rw-r--r-- | src/re.c | 8 | ||||
| -rw-r--r-- | src/regenc.c | 8 | ||||
| -rw-r--r-- | src/string.c | 8 |
3 files changed, 0 insertions, 24 deletions
@@ -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 <string.h> #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 |
