From d940e3b2c3c413b697c415718d4ef0991e75383f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 17 Jan 2024 16:46:38 +0900 Subject: [PATCH] `cexpr!` must be up to one per line now --- rjit_c.rb | 6 ++++-- tool/rjit/bindgen.rb | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rjit_c.rb b/rjit_c.rb index 67ac8729d4..ce718717be 100644 --- a/rjit_c.rb +++ b/rjit_c.rb @@ -1541,11 +1541,13 @@ module RubyVM::RJIT # :nodoc: all end def C.VALUE - @VALUE ||= CType::Immediate.find(Primitive.cexpr!("SIZEOF(VALUE)"), Primitive.cexpr!("SIGNED_TYPE_P(VALUE)")) + @VALUE ||= CType::Immediate.find(Primitive.cexpr!("SIZEOF(VALUE)"), + Primitive.cexpr!("SIGNED_TYPE_P(VALUE)")) end def C.shape_id_t - @shape_id_t ||= CType::Immediate.find(Primitive.cexpr!("SIZEOF(shape_id_t)"), Primitive.cexpr!("SIGNED_TYPE_P(shape_id_t)")) + @shape_id_t ||= CType::Immediate.find(Primitive.cexpr!("SIZEOF(shape_id_t)"), + Primitive.cexpr!("SIGNED_TYPE_P(shape_id_t)")) end def C.rb_id_table diff --git a/tool/rjit/bindgen.rb b/tool/rjit/bindgen.rb index 4022726302..fb26b94aa4 100755 --- a/tool/rjit/bindgen.rb +++ b/tool/rjit/bindgen.rb @@ -183,7 +183,8 @@ class BindingGenerator raise "Non-immediate type is given to dynamic_types: #{type}" end println " def C.#{type}" - println " @#{type} ||= CType::Immediate.find(Primitive.cexpr!(\"SIZEOF(#{type})\"), Primitive.cexpr!(\"SIGNED_TYPE_P(#{type})\"))" + println " @#{type} ||= CType::Immediate.find(Primitive.cexpr!(\"SIZEOF(#{type})\")," + println " Primitive.cexpr!(\"SIGNED_TYPE_P(#{type})\"))" println " end" println end