Add recipe for libcuefile.

This commit is contained in:
Adrien Destugues
2014-09-13 17:53:48 +02:00
parent 48856d9db2
commit 242b539dca
2 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
From 06f43009bc5303fda6a3a358b087579650d679d3 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sat, 13 Sep 2014 16:35:44 +0200
Subject: gcc2 fixes.
diff --git a/src/cue_parse.c b/src/cue_parse.c
index aae2d53..5d90ef8 100755
--- a/src/cue_parse.c
+++ b/src/cue_parse.c
@@ -1515,10 +1515,11 @@ void yyerror (char *s)
Cd *cue_parse (FILE *fp)
{
+ int error = yyparse();
+ Cd* res;
cue_yyin = fp;
yydebug = 0;
- int error = yyparse();
cue_delete_buffer();
if (prev_filename) {
free(prev_filename);
@@ -1533,7 +1534,7 @@ Cd *cue_parse (FILE *fp)
new_filename = 0;
}
- Cd *res = cd;
+ res = cd;
if (error) {
cd_delete(cd);
res = 0;
--
1.8.3.4