Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
67c41033
Commit
67c41033
authored
Dec 16, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cue_tag: merged code into cue_tag_merge()
parent
59534b92
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
22 deletions
+18
-22
cue_tag.c
src/cue/cue_tag.c
+18
-22
No files found.
src/cue/cue_tag.c
View file @
67c41033
...
@@ -155,6 +155,22 @@ cue_tag_track(struct Cdtext *cdtext, struct Rem *rem)
...
@@ -155,6 +155,22 @@ cue_tag_track(struct Cdtext *cdtext, struct Rem *rem)
return
tag
;
return
tag
;
}
}
static
struct
tag
*
cue_tag_merge
(
struct
tag
*
a
,
struct
tag
*
b
)
{
if
(
a
!=
NULL
&&
b
!=
NULL
)
{
struct
tag
*
merge_tag
=
tag_merge
(
a
,
b
);
tag_free
(
a
);
tag_free
(
b
);
return
merge_tag
;
}
else
if
(
a
!=
NULL
)
return
a
;
else
if
(
b
!=
NULL
)
return
b
;
else
return
NULL
;
}
struct
tag
*
struct
tag
*
cue_tag_file
(
FILE
*
fp
,
unsigned
tnum
)
cue_tag_file
(
FILE
*
fp
,
unsigned
tnum
)
{
{
...
@@ -179,17 +195,7 @@ cue_tag_file(FILE *fp, unsigned tnum)
...
@@ -179,17 +195,7 @@ cue_tag_file(FILE *fp, unsigned tnum)
cd_delete
(
cd
);
cd_delete
(
cd
);
if
(
cd_tag
!=
NULL
&&
track_tag
!=
NULL
)
{
return
cue_tag_merge
(
cd_tag
,
track_tag
);
struct
tag
*
merge_tag
=
tag_merge
(
cd_tag
,
track_tag
);
tag_free
(
cd_tag
);
tag_free
(
track_tag
);
return
merge_tag
;
}
else
if
(
cd_tag
!=
NULL
)
return
cd_tag
;
else
if
(
track_tag
!=
NULL
)
return
track_tag
;
else
return
NULL
;
}
}
struct
tag
*
struct
tag
*
...
@@ -216,15 +222,5 @@ cue_tag_string(const char *str, unsigned tnum)
...
@@ -216,15 +222,5 @@ cue_tag_string(const char *str, unsigned tnum)
cd_delete
(
cd
);
cd_delete
(
cd
);
if
(
cd_tag
!=
NULL
&&
track_tag
!=
NULL
)
{
return
cue_tag_merge
(
cd_tag
,
track_tag
);
struct
tag
*
merge_tag
=
tag_merge
(
cd_tag
,
track_tag
);
tag_free
(
cd_tag
);
tag_free
(
track_tag
);
return
merge_tag
;
}
else
if
(
cd_tag
!=
NULL
)
return
cd_tag
;
else
if
(
track_tag
!=
NULL
)
return
track_tag
;
else
return
NULL
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment