crystal-lang / crystal_lib

Automatic binding generator for native libraries in Crystal
138 stars 30 forks source link

Handle anon structs and unions #75

Open WhoAteDaCake opened 3 years ago

WhoAteDaCake commented 3 years ago
      typedef struct LCUI_BackgroundPosition {
        int using_value;
        union {
          struct {
            char x, y;
          };
          int value;
        };
      } LCUI_BackgroundPosition;

Would not compile correctly.

WhoAteDaCake commented 3 years ago

Ended up fixing it on my own fork

beta-ziliani commented 3 years ago

Sorry for the lake of response. Do you mind converting it into a PR?

WhoAteDaCake commented 3 years ago

Excuse me, are you a maintainer? It depends on other PRs so they should get merged first

beta-ziliani commented 3 years ago

I can help. Which PRs?

WhoAteDaCake commented 3 years ago

https://github.com/crystal-lang/crystal_lib/pull/71 https://github.com/crystal-lang/crystal_lib/pull/69 https://github.com/crystal-lang/crystal_lib/pull/67 https://github.com/crystal-lang/crystal_lib/pull/65

Dan-Do commented 3 years ago

I can help. Which PRs?

Hello @beta-ziliani. Do you still support this project? I saw many PRs in waiting.

beta-ziliani commented 3 years ago

Thanks for the ping! We're discussing the future of this shard with the team, I hope to have news soon. Feel free to ping me again in a couple of weeks.