зеркало из https://github.com/github/ruby.git
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
51aaf74bba
Коммит
9c8119e78b
|
@ -1714,11 +1714,11 @@ rb_alloc_tmp_buffer2(volatile VALUE *store, long count, size_t elsize)
|
||||||
#else
|
#else
|
||||||
# define RUBY_ALLOCV_LIMIT 1024
|
# define RUBY_ALLOCV_LIMIT 1024
|
||||||
# define RB_ALLOCV(v, n) ((n) < RUBY_ALLOCV_LIMIT ? \
|
# define RB_ALLOCV(v, n) ((n) < RUBY_ALLOCV_LIMIT ? \
|
||||||
((v) = 0, alloca(n)) : \
|
((v) = 0, alloca(n)) : \
|
||||||
rb_alloc_tmp_buffer(&(v), (n)))
|
rb_alloc_tmp_buffer(&(v), (n)))
|
||||||
# define RB_ALLOCV_N(type, v, n) \
|
# define RB_ALLOCV_N(type, v, n) \
|
||||||
((type*)(((size_t)(n) < RUBY_ALLOCV_LIMIT / sizeof(type)) ? \
|
((type*)(((size_t)(n) < RUBY_ALLOCV_LIMIT / sizeof(type)) ? \
|
||||||
((v) = 0, alloca((size_t)(n) * sizeof(type))) : \
|
((v) = 0, alloca((size_t)(n) * sizeof(type))) : \
|
||||||
rb_alloc_tmp_buffer2(&(v), (long)(n), sizeof(type))))
|
rb_alloc_tmp_buffer2(&(v), (long)(n), sizeof(type))))
|
||||||
#endif
|
#endif
|
||||||
#define RB_ALLOCV_END(v) rb_free_tmp_buffer(&(v))
|
#define RB_ALLOCV_END(v) rb_free_tmp_buffer(&(v))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче