mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/ruby.h ({RSTRING,RBIGNUM}_EMBED_LEN_MAX): made int.
* include/ruby/ruby.h (OBJ_{TAINTED,UNTRUSTED,FROZEN}): return int. * include/ruby/encoding.h (ENC_CODERANGE): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8c8f85ed4f
commit
afdeb2d35e
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Sun Mar 15 11:15:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* include/ruby/ruby.h ({RSTRING,RBIGNUM}_EMBED_LEN_MAX): made int.
|
||||||
|
|
||||||
|
* include/ruby/ruby.h (OBJ_{TAINTED,UNTRUSTED,FROZEN}): return int.
|
||||||
|
|
||||||
|
* include/ruby/encoding.h (ENC_CODERANGE): ditto.
|
||||||
|
|
||||||
Sun Mar 15 11:11:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Mar 15 11:11:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (rb_hash_uint, rb_hash_start, rb_hash_end): use VALUE
|
* string.c (rb_hash_uint, rb_hash_start, rb_hash_end): use VALUE
|
||||||
|
|
|
@ -42,11 +42,11 @@
|
||||||
|
|
||||||
#define ENCODING_MAXNAMELEN 42
|
#define ENCODING_MAXNAMELEN 42
|
||||||
|
|
||||||
#define ENC_CODERANGE_MASK (FL_USER8|FL_USER9)
|
#define ENC_CODERANGE_MASK ((int)(FL_USER8|FL_USER9))
|
||||||
#define ENC_CODERANGE_UNKNOWN 0
|
#define ENC_CODERANGE_UNKNOWN 0
|
||||||
#define ENC_CODERANGE_7BIT FL_USER8
|
#define ENC_CODERANGE_7BIT ((int)FL_USER8)
|
||||||
#define ENC_CODERANGE_VALID FL_USER9
|
#define ENC_CODERANGE_VALID ((int)FL_USER9)
|
||||||
#define ENC_CODERANGE_BROKEN (FL_USER8|FL_USER9)
|
#define ENC_CODERANGE_BROKEN ((int)(FL_USER8|FL_USER9))
|
||||||
#define ENC_CODERANGE(obj) (RBASIC(obj)->flags & ENC_CODERANGE_MASK)
|
#define ENC_CODERANGE(obj) (RBASIC(obj)->flags & ENC_CODERANGE_MASK)
|
||||||
#define ENC_CODERANGE_ASCIIONLY(obj) (ENC_CODERANGE(obj) == ENC_CODERANGE_7BIT)
|
#define ENC_CODERANGE_ASCIIONLY(obj) (ENC_CODERANGE(obj) == ENC_CODERANGE_7BIT)
|
||||||
#define ENC_CODERANGE_SET(obj,cr) (RBASIC(obj)->flags = \
|
#define ENC_CODERANGE_SET(obj,cr) (RBASIC(obj)->flags = \
|
||||||
|
|
Loading…
Reference in a new issue