From 94da5f7c360b64e12c55fa0be266d9f48e66e937 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 11 Mar 2023 14:25:11 -0800 Subject: Rename builtin attr :inline to :leaf --- tool/mk_builtin_loader.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tool') diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb index d6cd32e97c..fc6900808f 100644 --- a/tool/mk_builtin_loader.rb +++ b/tool/mk_builtin_loader.rb @@ -6,7 +6,7 @@ require_relative 'ruby_vm/helpers/c_escape' SUBLIBS = {} REQUIRED = {} -BUILTIN_ATTRS = %w[inline] +BUILTIN_ATTRS = %w[leaf] def string_literal(lit, str = []) while lit @@ -46,15 +46,12 @@ end def inline_attrs(args) raise "args was empty" if args.empty? - attrs = [] args.each do |arg| attr = symbol_literal(arg) unless BUILTIN_ATTRS.include?(attr) raise "attr (#{attr}) was not in: #{BUILTIN_ATTRS.join(', ')}" end - attrs << attr end - attrs end def make_cfunc_name inlines, name, lineno -- cgit v1.2.1