From af02f35f827079a0258fb5bfb718294d29142d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 19 Jun 2011 18:43:09 +0200 Subject: genruby.rb: add unsigned short *, accept commented callbacks --- tools/genruby.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/genruby.rb b/tools/genruby.rb index 5753b5a..e77ebf0 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -83,6 +83,7 @@ TYPES = { 'double *' => ':double_p', 'unsigned int *' => ':uint_p', 'unsigned char *' => ':uchar_p', + 'unsigned short *' => ':ushort_p', 'char *' => ':string', # FIXME ?!?! 'char **' => ':string_array', # FIXME ?!?! 'char ***' => ':string_array_p', # FIXME ?!?! @@ -211,7 +212,7 @@ def gen_callbacks path, indent r = [] open(path+'-callbacks','r').readlines.each do |l| l.strip! - if not l=~/^\s*typedef\s+(.*)((?:\(\*?\w+\)| \*?\w+))\s*\((.*)\);\s*$/ + if not l=~/^\s*typedef\s+(.*)((?:\(\*?\w+\)| \*?\w+))\s*\((.*)\);/ r << indent+"# #{l}\n#{indent}# FIXME" next end -- cgit v1.1-2-g2b99