зеркало из https://github.com/github/ruby.git
* ruby.h (RSTRING_EMBED_LEN_MASK): uses 5 bits to support 64bit
environment. [ruby-dev:29369] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9ba4002960
Коммит
ba9066bd84
|
@ -1,3 +1,8 @@
|
|||
Fri Sep 1 22:07:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ruby.h (RSTRING_EMBED_LEN_MASK): uses 5 bits to support 64bit
|
||||
environment. [ruby-dev:29369]
|
||||
|
||||
Fri Sep 1 22:02:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_resize): should copy embedded string to
|
||||
|
|
2
ruby.h
2
ruby.h
|
@ -378,7 +378,7 @@ struct RString {
|
|||
} as;
|
||||
};
|
||||
#define RSTRING_NOEMBED FL_USER1
|
||||
#define RSTRING_EMBED_LEN_MASK (FL_USER2|FL_USER3|FL_USER4|FL_USER5)
|
||||
#define RSTRING_EMBED_LEN_MASK (FL_USER2|FL_USER3|FL_USER4|FL_USER5|FL_USER6)
|
||||
#define RSTRING_EMBED_LEN_SHIFT (FL_USHIFT+2)
|
||||
#define RSTRING_LEN(str) \
|
||||
(!(RBASIC(str)->flags & RSTRING_NOEMBED) ? \
|
||||
|
|
Загрузка…
Ссылка в новой задаче