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