File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -175,14 +175,20 @@ def parse_ctype(ty, tymap=nil)
175
175
/\A (?:signed\s +)?int\s +long(?:\s +\w +)?\z / ,
176
176
/\A long(?:\s +int)?\s +signed(?:\s +\w +)?\z /
177
177
return TYPE_LONG
178
+ when /\A unsigned\s +short(?:\s +int\s +)?(?:\s +\w +)?\z / ,
179
+ /\A unsigned\s +int\s +short(?:\s +\w +)?\z / ,
180
+ /\A short(?:\s +int)?\s +unsigned(?:\s +\w +)?\z / ,
181
+ /\A int\s +unsigned\s +short(?:\s +\w +)?\z / ,
182
+ /\A (?:int\s +)?short\s +unsigned(?:\s +\w +)?\z /
183
+ return TYPE_USHORT
184
+ when /\A (?:signed\s +)?short(?:\s +int\s +)?(?:\s +\w +)?\z / ,
185
+ /\A (?:signed\s +)?int\s +short(?:\s +\w +)?\z / ,
186
+ /\A int\s +(?:signed\s +)?short(?:\s +\w +)?\z /
187
+ return TYPE_SHORT
178
188
when /\A (?:signed\s +)?int(?:\s +\w +)?\z /
179
189
return TYPE_INT
180
190
when /\A (?:unsigned\s +int|uint)(?:\s +\w +)?\z /
181
191
return TYPE_UINT
182
- when /\A (?:signed\s +)?short(?:\s +int\s +)?(?:\s +\w +)?\z /
183
- return TYPE_SHORT
184
- when /\A unsigned\s +short(?:\s +int\s +)?(?:\s +\w +)?\z /
185
- return TYPE_USHORT
186
192
when /\A (?:signed\s +)?char(?:\s +\w +)?\z /
187
193
return TYPE_CHAR
188
194
when /\A unsigned\s +char(?:\s +\w +)?\z /
You can’t perform that action at this time.
0 commit comments