diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-23 16:17:27 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-23 16:17:27 +0100 |
commit | 9edd1ff3da38221719d8567e78803e9efa9a5b14 (patch) | |
tree | d376609f8626140a34eec3fdf06a2860cdde7735 /tools | |
parent | cb92de2b2595e0aba5ac34efc98fa3fef6d94487 (diff) | |
download | ffi-efl-9edd1ff3da38221719d8567e78803e9efa9a5b14.zip ffi-efl-9edd1ff3da38221719d8567e78803e9efa9a5b14.tar.gz |
tools/genruby: gen_enums, remove trainling ', '
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/genruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |