summaryrefslogtreecommitdiffstats
path: root/tools/genruby.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-17 09:10:21 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-17 09:10:21 +0100
commitbd1d327ea83589cb8771dd8c3581b499d80a9983 (patch)
treedc8ad762b45695bd56594a6b214295b15e20e7af /tools/genruby.rb
parentcfc1d6b1393c9211c4a03dbd32e77ef5bbb203d7 (diff)
downloadffi-efl-bd1d327ea83589cb8771dd8c3581b499d80a9983.zip
ffi-efl-bd1d327ea83589cb8771dd8c3581b499d80a9983.tar.gz
tools/genruby.rb: accept functions with no parameters
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 58e5f91..f6588e6 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -256,7 +256,7 @@ def gen_functions path, indent
r << indent+"fcts = ["
open(path+'-functions','r').readlines.each do |l|
l.strip!
- if not l=~ /EAPI ([a-zA-Z0-9_\* ]+?)(\w+) ?\(([a-zA-Z0-9_ \*,\.]+)\)( *[A-Z]{2,})?/
+ if not l=~ /EAPI ([a-zA-Z0-9_\* ]+?)(\w+) ?\(([a-zA-Z0-9_ \*,\.]*)\)( *[A-Z]{2,})?/
puts "# #{l}\n#{indent}# FIXME"
r << indent+"# #{l}\n#{indent}# FIXME"
next