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

Mangled else if construct when converting inline structs #7

Open
Nevcairiel opened this issue Apr 3, 2013 · 0 comments
Open

Mangled else if construct when converting inline structs #7

Nevcairiel opened this issue Apr 3, 2013 · 0 comments

Comments

@Nevcairiel
Copy link
Member

Converting following code causes the converter to mangle the else if, producing "elseif" (one word) in the output, obviously breaking compilation:

typedef struct AVRational{
    int num; ///< numerator
    int den; ///< denominator
} AVRational;

int av_rescale_q(int a, AVRational bq, AVRational cq);

int main()
{
    AVRational framerate = {1,25};
    if (1) {
        int next_dts = av_rescale_q(1,  (AVRational){1, 1000000}, framerate);
    } else if (2) {
        // nada!
    }
    return 0;
}

The issue does not seem to appear if the inline struct is the third function parameter, in this case anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant