c99-to-c89
c99-to-c89 copied to clipboard
Nested loops are mangled
void test()
{
for(int j=0; j < 10; j++) {
for(int i=0; i < 20; i++) {
}
}
}
is converted to
void test()
{
{ int j=0; for( ; i < 20; i++) {
}
} }
}
I can reproduce this, and I created a test case at https://github.com/mstorsjo/c99-to-c89/commit/nested-for.