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
28465903
Commit
28465903
authored
Jun 30, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag_ape: remove duplicate entries in the tag name table
Reuse the function tag_name_parse_i().
parent
9550c873
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
tag_ape.c
src/tag_ape.c
+5
-7
No files found.
src/tag_ape.c
View file @
28465903
...
@@ -27,20 +27,18 @@
...
@@ -27,20 +27,18 @@
#include <stdio.h>
#include <stdio.h>
static
const
char
*
const
ape_tag_names
[
TAG_NUM_OF_ITEM_TYPES
]
=
{
static
const
char
*
const
ape_tag_names
[
TAG_NUM_OF_ITEM_TYPES
]
=
{
[
TAG_ITEM_TITLE
]
=
"title"
,
[
TAG_ITEM_ARTIST
]
=
"artist"
,
[
TAG_ITEM_ALBUM
]
=
"album"
,
[
TAG_ITEM_ALBUM_ARTIST
]
=
"album artist"
,
[
TAG_ITEM_ALBUM_ARTIST
]
=
"album artist"
,
[
TAG_ITEM_COMMENT
]
=
"comment"
,
[
TAG_ITEM_GENRE
]
=
"genre"
,
[
TAG_ITEM_TRACK
]
=
"track"
,
[
TAG_ITEM_DATE
]
=
"year"
[
TAG_ITEM_DATE
]
=
"year"
};
};
static
enum
tag_type
static
enum
tag_type
tag_ape_name_parse
(
const
char
*
name
)
tag_ape_name_parse
(
const
char
*
name
)
{
{
return
tag_table_lookup
(
ape_tag_names
,
name
);
enum
tag_type
type
=
tag_table_lookup
(
ape_tag_names
,
name
);
if
(
type
==
TAG_NUM_OF_ITEM_TYPES
)
type
=
tag_name_parse_i
(
name
);
return
type
;
}
}
static
struct
tag
*
static
struct
tag
*
...
...
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