From 9edd1ff3da38221719d8567e78803e9efa9a5b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 23 Jan 2012 16:17:27 +0100 Subject: tools/genruby: gen_enums, remove trainling ', ' --- tools/genruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/genruby.rb b/tools/genruby.rb index f583677..77a4fb1 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -174,7 +174,7 @@ def gen_enums path, indent i=v.to_i+1 end end - args = syms.inject(''){|r,s| r+=":#{s.strip.downcase}, #{h[s]}, " } + args = syms.inject(''){|r,s| r+=":#{s.strip.downcase}, #{h[s]}, " }.sub(/, $/,'') end r << indent+"# #{typedef} {...} #{typename};" r << wrap_text( indent+"enum #{tsym}, [ #{args} ]", indent+' '*4 ) -- cgit v1.1-2-g2b99