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
e223e8a5
Commit
e223e8a5
authored
Jun 30, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag_ape: move code to tag_ape_name_parse()
parent
4d6d372a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
tag_ape.c
src/tag_ape.c
+7
-1
No files found.
src/tag_ape.c
View file @
e223e8a5
...
...
@@ -37,6 +37,12 @@ static const char *const ape_tag_names[TAG_NUM_OF_ITEM_TYPES] = {
[
TAG_ITEM_DATE
]
=
"year"
};
static
enum
tag_type
tag_ape_name_parse
(
const
char
*
name
)
{
return
tag_table_lookup
(
ape_tag_names
,
name
);
}
static
struct
tag
*
tag_ape_import_item
(
struct
tag
*
tag
,
unsigned
long
flags
,
const
char
*
key
,
const
char
*
value
,
size_t
value_length
)
...
...
@@ -45,7 +51,7 @@ tag_ape_import_item(struct tag *tag, unsigned long flags,
if
((
flags
&
(
0x3
<<
1
))
!=
0
)
return
tag
;
enum
tag_type
type
=
tag_
table_lookup
(
ape_tag_names
,
key
);
enum
tag_type
type
=
tag_
ape_name_parse
(
key
);
if
(
type
==
TAG_NUM_OF_ITEM_TYPES
)
return
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