From bd1d327ea83589cb8771dd8c3581b499d80a9983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 17 Feb 2012 09:10:21 +0100 Subject: tools/genruby.rb: accept functions with no parameters --- tools/genruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1-2-g2b99