summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/genruby.rb8
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