ruby / fiddle

A libffi wrapper for Ruby.
BSD 2-Clause "Simplified" License
158 stars 36 forks source link

The regular expression in cparser's parse_ctype is a bit weird. #58

Closed kojix2 closed 3 years ago

kojix2 commented 3 years ago

Something may be wrong with the regular expression here...

https://github.com/ruby/fiddle/blob/41b1343e4451c4e2bc06788a46571886b2c2f12b/lib/fiddle/cparser.rb#L236-L237

image

kojix2 commented 3 years ago

No. It was my misunderstanding. There are two separate regular expressions written here. Sorry!