summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-03 09:23:43 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-03 09:23:43 +0000
commit1ba6e8868c9e353be4dfeb3fc407aa2334b35f62 (patch)
treec42f33733dbc3456ee582d28ac32166971d75428 /ext/fiddle
parent68f7424bdeb9a8ec6e91e94937fe7cc72f8b890c (diff)
* ext/fiddle/lib/fiddle/cparser.rb: r49110 brake Fiddle::Import with
type_alias * test/fiddle/test_cparser.rb: added type_alias test for parse_ctype and parse_struct_signature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/lib/fiddle/cparser.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/fiddle/lib/fiddle/cparser.rb b/ext/fiddle/lib/fiddle/cparser.rb
index 531ffd9..39812e1 100644
--- a/ext/fiddle/lib/fiddle/cparser.rb
+++ b/ext/fiddle/lib/fiddle/cparser.rb
@@ -169,6 +169,7 @@ module Fiddle
when /\*/, /\[[\s\d]*\]/
return TYPE_VOIDP
else
+ ty = ty.split(' ')[0]
if( tymap[ty] )
return parse_ctype(tymap[ty], tymap)
else