vickenty / lang-c

Lightweight C parser for Rust
Apache License 2.0
202 stars 30 forks source link

Fails on macos availability #9

Closed porglezomp closed 5 years ago

porglezomp commented 5 years ago

When parsing

int ptsname_r(int fildes, char *buffer, size_t buflen) __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) __attribute__((availability(tvos,introduced=11.3))) __attribute__((availability(watchos,introduced=4.3)));

it chokes on the 10.13.4 in the availability attribute.

It might be good to have a "raw" attribute for robustness that if an __attribute__ declaration fails to parse, just store the attribute string.

vickenty commented 5 years ago

Thanks!