diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-19 18:16:25 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-19 18:16:25 +0200 |
commit | cae3102a21eccf24ced6ce6401d104b3e10a35a3 (patch) | |
tree | fbe6a751c0981fc44bac83a7cd84e684ef587834 /tools | |
parent | 1885a987a7d9178b51c6e447dc3bb0fc8ac325ea (diff) | |
download | ffi-efl-cae3102a21eccf24ced6ce6401d104b3e10a35a3.zip ffi-efl-cae3102a21eccf24ced6ce6401d104b3e10a35a3.tar.gz |
genruby: fix enum output
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 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 |