diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-01-28 16:59:12 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-01-28 16:59:12 +0300 |
commit | 2f8b243fa466b68eb657119d612075bffeea364e (patch) | |
tree | ef09363920bda43082d351b5acfcd360514d8143 /src/ruby/nxt_ruby.c | |
parent | 4bad2cf1e983c90f9a240b9a03adaeb334fcb072 (diff) | |
download | unit-2f8b243fa466b68eb657119d612075bffeea364e.tar.gz unit-2f8b243fa466b68eb657119d612075bffeea364e.tar.bz2 |
Ruby: changing callback functions prototype for v2.7.
This closes #371 issue on GitHub.
Diffstat (limited to 'src/ruby/nxt_ruby.c')
-rw-r--r-- | src/ruby/nxt_ruby.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ruby/nxt_ruby.c b/src/ruby/nxt_ruby.c index e4b30319..417e2d8d 100644 --- a/src/ruby/nxt_ruby.c +++ b/src/ruby/nxt_ruby.c @@ -52,7 +52,8 @@ static int nxt_ruby_hash_info(VALUE r_key, VALUE r_value, VALUE arg); static int nxt_ruby_hash_add(VALUE r_key, VALUE r_value, VALUE arg); static int nxt_ruby_rack_result_body(VALUE result); static int nxt_ruby_rack_result_body_file_write(VALUE filepath); -static VALUE nxt_ruby_rack_result_body_each(VALUE body); +static VALUE nxt_ruby_rack_result_body_each(VALUE body, VALUE arg, + int argc, const VALUE *argv, VALUE blockarg); static void nxt_ruby_exception_log(nxt_task_t *task, uint32_t level, const char *desc); @@ -813,7 +814,8 @@ nxt_ruby_rack_result_body_file_write(VALUE filepath) static VALUE -nxt_ruby_rack_result_body_each(VALUE body) +nxt_ruby_rack_result_body_each(VALUE body, VALUE arg, int argc, + const VALUE *argv, VALUE blockarg) { int rc; |