Added braces around single statement blocks.
This commit is contained in:
@@ -155,13 +155,15 @@ new_track
|
||||
cdtext = track_get_cdtext(track);
|
||||
|
||||
cur_filename = new_filename;
|
||||
if (NULL != cur_filename)
|
||||
if (NULL != cur_filename) {
|
||||
prev_filename = cur_filename;
|
||||
}
|
||||
|
||||
if (NULL == prev_filename)
|
||||
if (NULL == prev_filename) {
|
||||
yyerror("no file specified for track");
|
||||
else
|
||||
} else {
|
||||
track_set_filename(track, prev_filename);
|
||||
}
|
||||
|
||||
new_filename = NULL;
|
||||
}
|
||||
@@ -209,11 +211,12 @@ track_statement
|
||||
}
|
||||
}
|
||||
|
||||
for (; i <= $2; i++)
|
||||
for (; i <= $2; i++) {
|
||||
track_add_index(track, \
|
||||
track_get_zero_pre(track) + $3 \
|
||||
- track_get_start(track));
|
||||
}
|
||||
}
|
||||
| POSTGAP time '\n' { track_set_zero_post(track, $2); }
|
||||
| track_data
|
||||
| error '\n'
|
||||
@@ -273,8 +276,9 @@ Cd *cue_parse (FILE *fp)
|
||||
cue_yyin = fp;
|
||||
yydebug = 0;
|
||||
|
||||
if (0 == yyparse())
|
||||
if (0 == yyparse()) {
|
||||
return cd;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -135,9 +135,10 @@ track_list
|
||||
|
||||
track
|
||||
: new_track track_def track_statements {
|
||||
while (2 > track_get_nindex(track))
|
||||
while (2 > track_get_nindex(track)) {
|
||||
track_add_index(track, 0);
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
new_track
|
||||
@@ -208,11 +209,12 @@ track_clear_flag
|
||||
|
||||
track_data
|
||||
: zero_data time '\n' {
|
||||
if (NULL == track_get_filename(track))
|
||||
if (NULL == track_get_filename(track)) {
|
||||
track_set_zero_pre(track, $2);
|
||||
else
|
||||
} else {
|
||||
track_set_zero_post(track, $2);
|
||||
}
|
||||
}
|
||||
| AUDIOFILE STRING time '\n' {
|
||||
track_set_filename(track, $2);
|
||||
track_set_start(track, $3);
|
||||
@@ -339,8 +341,9 @@ Cd *toc_parse (FILE *fp)
|
||||
toc_yyin = fp;
|
||||
yydebug = 0;
|
||||
|
||||
if (0 == yyparse())
|
||||
if (0 == yyparse()) {
|
||||
return cd;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user