Updated switch statement comments.
* Now comments represent the fact that there may not be curly braces.
This commit is contained in:
parent
ac4bdbd411
commit
7919812378
2 changed files with 3 additions and 3 deletions
|
@ -144,8 +144,8 @@ void SwitchStatement (void)
|
||||||
/* Create a loop so we may use break. */
|
/* Create a loop so we may use break. */
|
||||||
AddLoop (ExitLabel, 0);
|
AddLoop (ExitLabel, 0);
|
||||||
|
|
||||||
/* Parse the following statement, which will actually be a compound
|
/* Parse the following statement, which may actually be a compound
|
||||||
** statement because of the curly brace at the current input position
|
** statement if there is a curly brace at the current input position
|
||||||
*/
|
*/
|
||||||
HaveBreak = Statement (&RCurlyBrace);
|
HaveBreak = Statement (&RCurlyBrace);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ void switch_no_body(void)
|
||||||
|
|
||||||
void switch_empty_body(void)
|
void switch_empty_body(void)
|
||||||
{
|
{
|
||||||
switch(0) {};
|
switch(0) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* only worried about this file compiling successfully */
|
/* only worried about this file compiling successfully */
|
||||||
|
|
Loading…
Add table
Reference in a new issue