summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-23 16:17:27 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-23 16:17:27 +0100
commit9edd1ff3da38221719d8567e78803e9efa9a5b14 (patch)
treed376609f8626140a34eec3fdf06a2860cdde7735
parentcb92de2b2595e0aba5ac34efc98fa3fef6d94487 (diff)
downloadffi-efl-9edd1ff3da38221719d8567e78803e9efa9a5b14.zip
ffi-efl-9edd1ff3da38221719d8567e78803e9efa9a5b14.tar.gz
tools/genruby: gen_enums, remove trainling ', '
-rwxr-xr-xtools/genruby.rb2
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 )