summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-06 10:13:20 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-06 10:13:20 +0900
commit58c8b6e86273ccb7a1b903d9ab35956b69b3b1bf (patch)
tree4528c4b2002b01bc01858783dd87a4fcab4e317d /enumerator.c
parentc433d36b5bd0b6a649a0c4112a9868bd5190cbc6 (diff)
downloadruby-58c8b6e86273ccb7a1b903d9ab35956b69b3b1bf.tar.gz
Adjust styles [ci skip]
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/enumerator.c b/enumerator.c
index ce2eacbd2a..d7546ee9e8 100644
--- a/enumerator.c
+++ b/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;
}
}