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

Doesn't add squigly brackets when needed #1

Open
jfriedly opened this issue Mar 22, 2011 · 1 comment
Open

Doesn't add squigly brackets when needed #1

jfriedly opened this issue Mar 22, 2011 · 1 comment

Comments

@jfriedly
Copy link
Owner

For and while loops (and if statements) can have the squigly brackets omitted if they only have a single statement inside. If that statement is a printf statement, the fprintf statement will be added directly below it as it should, but no squigly brackets will be inserted so the fprintf would only execute once (or would always execute in an if statement).

EXAMPLE:
for(i=0;i<10;i++) printf("Hey!");

YIELDS:
for(i=0;i<10;i++) printf("Hey!");
fprintf(outfile, "Hey!);

@jfriedly
Copy link
Owner Author

I'll be fixing this soon.

@jfriedly jfriedly reopened this Mar 22, 2011
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