summaryrefslogtreecommitdiffstats
path: root/tools/genruby.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-19 18:16:25 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-19 18:16:25 +0200
commitcae3102a21eccf24ced6ce6401d104b3e10a35a3 (patch)
treefbe6a751c0981fc44bac83a7cd84e684ef587834 /tools/genruby.rb
parent1885a987a7d9178b51c6e447dc3bb0fc8ac325ea (diff)
downloadffi-efl-cae3102a21eccf24ced6ce6401d104b3e10a35a3.zip
ffi-efl-cae3102a21eccf24ced6ce6401d104b3e10a35a3.tar.gz
genruby: fix enum output
Diffstat (limited to 'tools/genruby.rb')
-rwxr-xr-xtools/genruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb
index 032fdc8..390c6af 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -159,7 +159,7 @@ def gen_enums path, indent
values = $2
typename = $3
v = set_type typename, typename
- args = values.split(',').collect { |cst| ':'+cst.strip.downcase }.join(', ').gsub(/=/,',')
+ args = values.split(',').collect { |cst| ':'+cst.strip.downcase }.join(', ').gsub(/=/,',').gsub(/ ,/,',')
r << indent+"# #{typedef} {...} #{typename};\n"
r << wrap_text( indent+"enum :#{v}, [ #{args} ]", 150, indent+' '*4 )+"\n"
end