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

Error on prototype 2 #92

Open
mnakao opened this issue Oct 2, 2018 · 0 comments
Open

Error on prototype 2 #92

mnakao opened this issue Oct 2, 2018 · 0 comments

Comments

@mnakao
Copy link
Member

mnakao commented Oct 2, 2018

C_Front cannot deal with following prototype declarations in C99.

void func(int data[*][*], int n, int m);
void func(data, n, m)
  int n, m;
  int data[m][n];
{}

Above code is translated to below code.

void func5(int data[m][n], int n, int m);
void func5(int data[m][n], int n, int m)
{
}

The variables n and m are placed after the array.

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

No branches or pull requests

1 participant