diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/encoding.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 93fe77de2d..0d6cd04fef 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -26,11 +26,11 @@ #define ENC_CODERANGE_MASK (FL_USER12|FL_USER13) #define ENC_CODERANGE_UNKNOWN 0 -#define ENC_CODERANGE_SINGLE FL_USER12 -#define ENC_CODERANGE_MULTI FL_USER13 +#define ENC_CODERANGE_7BIT FL_USER12 +#define ENC_CODERANGE_8BIT FL_USER13 #define ENC_CODERANGE_BROKEN (FL_USER12|FL_USER13) #define ENC_CODERANGE(obj) (RBASIC(obj)->flags & ENC_CODERANGE_MASK) -#define ENC_CODERANGE_ASCIIONLY(obj) (ENC_CODERANGE(obj) == ENC_CODERANGE_SINGLE) +#define ENC_CODERANGE_ASCIIONLY(obj) (ENC_CODERANGE(obj) == ENC_CODERANGE_7BIT) #define ENC_CODERANGE_SET(obj,cr) (RBASIC(obj)->flags = \ (RBASIC(obj)->flags & ~ENC_CODERANGE_MASK) | (cr)) #define ENC_CODERANGE_CLEAR(obj) ENC_CODERANGE_SET(obj,0) |