зеркало из https://github.com/github/ruby.git
Adjust styles [ci skip]
This commit is contained in:
Родитель
c433d36b5b
Коммит
58c8b6e862
24
enumerator.c
24
enumerator.c
|
@ -1796,7 +1796,8 @@ lazy_initialize(int argc, VALUE *argv, VALUE self)
|
|||
* Expands +lazy+ enumerator to an array.
|
||||
* See Enumerable#to_a.
|
||||
*/
|
||||
static VALUE lazy_to_a(VALUE self)
|
||||
static VALUE
|
||||
lazy_to_a(VALUE self)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
@ -2753,7 +2754,8 @@ lazy_with_index(int argc, VALUE *argv, VALUE obj)
|
|||
*
|
||||
* Like Enumerable#chunk, but chains operation to be lazy-evaluated.
|
||||
*/
|
||||
static VALUE lazy_chunk(VALUE self)
|
||||
static VALUE
|
||||
lazy_chunk(VALUE self)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -2763,7 +2765,8 @@ static VALUE lazy_chunk(VALUE self)
|
|||
*
|
||||
* Like Enumerable#chunk_while, but chains operation to be lazy-evaluated.
|
||||
*/
|
||||
static VALUE lazy_chunk_while(VALUE self)
|
||||
static VALUE
|
||||
lazy_chunk_while(VALUE self)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -2774,7 +2777,8 @@ static VALUE lazy_chunk_while(VALUE self)
|
|||
*
|
||||
* Like Enumerable#slice_after, but chains operation to be lazy-evaluated.
|
||||
*/
|
||||
static VALUE lazy_slice_after(VALUE self)
|
||||
static VALUE
|
||||
lazy_slice_after(VALUE self)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -2785,7 +2789,8 @@ static VALUE lazy_slice_after(VALUE self)
|
|||
*
|
||||
* Like Enumerable#slice_before, but chains operation to be lazy-evaluated.
|
||||
*/
|
||||
static VALUE lazy_slice_before(VALUE self)
|
||||
static VALUE
|
||||
lazy_slice_before(VALUE self)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -2795,7 +2800,8 @@ static VALUE lazy_slice_before(VALUE self)
|
|||
*
|
||||
* Like Enumerable#slice_when, but chains operation to be lazy-evaluated.
|
||||
*/
|
||||
static VALUE lazy_slice_when(VALUE self)
|
||||
static VALUE
|
||||
lazy_slice_when(VALUE self)
|
||||
{
|
||||
}
|
||||
# endif
|
||||
|
@ -3562,7 +3568,8 @@ product_each(VALUE obj, struct product_state *pstate)
|
|||
VALUE eobj = RARRAY_AREF(enums, pstate->index);
|
||||
|
||||
rb_block_call(eobj, id_each_entry, 0, NULL, product_each_i, (VALUE)pstate);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
rb_funcallv(pstate->block, id_call, pstate->argc, pstate->argv);
|
||||
}
|
||||
|
||||
|
@ -3677,7 +3684,8 @@ enumerator_s_product(VALUE klass, VALUE enums)
|
|||
|
||||
if (rb_block_given_p()) {
|
||||
return enum_product_run(obj, rb_block_proc());
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2260,7 +2260,8 @@ rb_marshal_load_with_proc(VALUE port, VALUE proc, bool freeze)
|
|||
return v;
|
||||
}
|
||||
|
||||
static VALUE marshal_load(rb_execution_context_t *ec, VALUE mod, VALUE source, VALUE proc, VALUE freeze)
|
||||
static VALUE
|
||||
marshal_load(rb_execution_context_t *ec, VALUE mod, VALUE source, VALUE proc, VALUE freeze)
|
||||
{
|
||||
return rb_marshal_load_with_proc(source, proc, RTEST(freeze));
|
||||
}
|
||||
|
|
3
ruby.c
3
ruby.c
|
@ -1529,7 +1529,8 @@ void rb_call_builtin_inits(void);
|
|||
#if RBIMPL_HAS_ATTRIBUTE(weak)
|
||||
__attribute__((weak))
|
||||
#endif
|
||||
void Init_extra_exts(void)
|
||||
void
|
||||
Init_extra_exts(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -624,7 +624,8 @@ rb_mutex_synchronize_m(VALUE self)
|
|||
return rb_mutex_synchronize(self, rb_yield, Qundef);
|
||||
}
|
||||
|
||||
void rb_mutex_allow_trap(VALUE self, int val)
|
||||
void
|
||||
rb_mutex_allow_trap(VALUE self, int val)
|
||||
{
|
||||
Check_TypedStruct(self, &mutex_data_type);
|
||||
|
||||
|
@ -714,7 +715,8 @@ queue_ptr(VALUE obj)
|
|||
#define QUEUE_CLOSED FL_USER5
|
||||
|
||||
static rb_hrtime_t
|
||||
queue_timeout2hrtime(VALUE timeout) {
|
||||
queue_timeout2hrtime(VALUE timeout)
|
||||
{
|
||||
if (NIL_P(timeout)) {
|
||||
return (rb_hrtime_t)0;
|
||||
}
|
||||
|
|
|
@ -1176,12 +1176,14 @@ rb_vm_thread_backtrace_locations(int argc, const VALUE *argv, VALUE thval)
|
|||
return thread_backtrace_to_ary(argc, argv, thval, 0);
|
||||
}
|
||||
|
||||
VALUE rb_vm_backtrace(int argc, const VALUE * argv, struct rb_execution_context_struct * ec)
|
||||
VALUE
|
||||
rb_vm_backtrace(int argc, const VALUE * argv, struct rb_execution_context_struct * ec)
|
||||
{
|
||||
return ec_backtrace_to_ary(ec, argc, argv, 0, 0, 1);
|
||||
}
|
||||
|
||||
VALUE rb_vm_backtrace_locations(int argc, const VALUE * argv, struct rb_execution_context_struct * ec)
|
||||
VALUE
|
||||
rb_vm_backtrace_locations(int argc, const VALUE * argv, struct rb_execution_context_struct * ec)
|
||||
{
|
||||
return ec_backtrace_to_ary(ec, argc, argv, 0, 0, 0);
|
||||
}
|
||||
|
|
|
@ -5406,7 +5406,8 @@ wrename(const WCHAR *oldpath, const WCHAR *newpath)
|
|||
}
|
||||
|
||||
/* License: Ruby's */
|
||||
int rb_w32_urename(const char *from, const char *to)
|
||||
int
|
||||
rb_w32_urename(const char *from, const char *to)
|
||||
{
|
||||
WCHAR *wfrom;
|
||||
WCHAR *wto;
|
||||
|
@ -5425,7 +5426,8 @@ int rb_w32_urename(const char *from, const char *to)
|
|||
}
|
||||
|
||||
/* License: Ruby's */
|
||||
int rb_w32_rename(const char *from, const char *to)
|
||||
int
|
||||
rb_w32_rename(const char *from, const char *to)
|
||||
{
|
||||
WCHAR *wfrom;
|
||||
WCHAR *wto;
|
||||
|
|
Загрузка…
Ссылка в новой задаче