jwiegley / c2hsc

Utility for creating .hsc files from C API header files
BSD 3-Clause "New" or "Revised" License
26 stars 15 forks source link

Functions with the __gnu_inline__ attribute cause an error #29

Closed woehr closed 8 years ago

woehr commented 8 years ago

When a function is annotated with the gnu_inline attribute, the program errors because attributes aren't supported. As far as I can tell, c2hsc should just handle the gnu_inline attribute the same as the inline type qualifier; that is, to return "" in qualToStr. I've implemented this and it works for my inputs, but I wanted to see what you thought of the solution since it's basically a hack to get a single attribute to work. I can submit a pull request if what I've described is satisfactory.

woehr commented 8 years ago

Addressed by eb38e4c2ec5a9a87df7ee9e3d4ec010ebe01ca0c