diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-11-26 02:20:54 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-11-26 02:20:54 +0100 |
commit | 192a01fa0d998fc25b3b78c8885c125fa686f8d3 (patch) | |
tree | e9cf35a564fc95cd5b1c455deb79ca17c40ed155 | |
parent | 570cba583ec844216d5bf90177880600e134adc4 (diff) | |
download | ffi-efl-192a01fa0d998fc25b3b78c8885c125fa686f8d3.zip ffi-efl-192a01fa0d998fc25b3b78c8885c125fa686f8d3.tar.gz |
tools/genruby.rb: fix enum error
-rwxr-xr-x | tools/genruby.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb index fcf1543..9c05bb6 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -64,8 +64,12 @@ def gen_enums path, indent open(path+'-enums','r').readlines.each do |l| l.strip! if not l=~/((?:typedef )?enum(?: \w+)?) \{(.*)\} (\w+)/ - printf "\033[0;31mFIXME : #{l}\n#{indent}# FIXME\033[0m\n" - r << indent+"# #{l}\n#{indent}# FIXME" + if l=~/((?:typedef )?enum(?: \w+)?) \{/ + printf "\033[0;31manonymous #{$1}\033[0m\n" + else + printf "\033[0;31m#{l}\n#{indent}# FIXME\033[0m\n" + r << indent+"# #{l}\n#{indent}# FIXME" + end next end typedef = $1.strip |