Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle the const struct * and struct * patterns #2304

Merged
merged 2 commits into from Nov 10, 2022

Commits on Nov 8, 2022

  1. Handle the const struct * and struct * patterns.

    Given that C keeps a different namespace for `struct`s and aliases. The
    following patterns
    ```c
    typedef const struct foo {
        void *inner;
    } *foo;
    
    typedef struct bar {
        void *inner;
    } *bar;
    ```
    are valid C code and produces both a `struct` and a pointer called `foo`
    and `bar` in different namespaces. Given that Rust does not make this
    distinction, we add the `_ptr` prefix to the pointer type aliases to
    avoid any name collisions.
    pvdrz committed Nov 8, 2022
    Copy the full SHA
    9dedf00 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. handle enum and union as well

    pvdrz committed Nov 10, 2022
    Copy the full SHA
    a147de1 View commit details
    Browse the repository at this point in the history