summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-23 11:21:00 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-23 11:21:00 +0100
commit63f08a50dce1972e3496e875088caf5618b1003c (patch)
tree3728cb85dbb5cc96526c9ff78fc10121aa7f85d8
parentfd510b99125983c49d2fdf3abfb82686b29b2cff (diff)
downloadffi-efl-63f08a50dce1972e3496e875088caf5618b1003c.zip
ffi-efl-63f08a50dce1972e3496e875088caf5618b1003c.tar.gz
tools/genruby: take care of complex enum values
-rwxr-xr-xtools/genruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb
index 7d516e4..5508981 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -142,7 +142,7 @@ def gen_enums path, indent
r = []
open(path+'-enums','r').readlines.each do |l|
l.strip!
- if not l=~/((?:typedef )?enum(?: \w+)?) \{([-A-Z0-9_=, ]+)\} (\w+)/
+ if not l=~/((?:typedef )?enum(?: \w+)?) \{(.*)\} (\w+)/
puts "FIXME : #{l}\n#{indent}# FIXME"
r << indent+"# #{l}\n#{indent}# FIXME"
next