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
c7e89ea3
Commit
c7e89ea3
authored
Jul 19, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag_ape: converted apeItems and tagItems to global vars
Don't initialize those arrays each time tag_ape_load() is called.
parent
65ad2984
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
tag_ape.c
src/tag_ape.c
+20
-20
No files found.
src/tag_ape.c
View file @
c7e89ea3
...
@@ -25,6 +25,26 @@
...
@@ -25,6 +25,26 @@
#include <assert.h>
#include <assert.h>
#include <stdio.h>
#include <stdio.h>
static
const
char
*
const
apeItems
[
7
]
=
{
"title"
,
"artist"
,
"album"
,
"comment"
,
"genre"
,
"track"
,
"year"
};
static
const
int
tagItems
[
7
]
=
{
TAG_ITEM_TITLE
,
TAG_ITEM_ARTIST
,
TAG_ITEM_ALBUM
,
TAG_ITEM_COMMENT
,
TAG_ITEM_GENRE
,
TAG_ITEM_TRACK
,
TAG_ITEM_DATE
,
};
struct
tag
*
struct
tag
*
tag_ape_load
(
const
char
*
file
)
tag_ape_load
(
const
char
*
file
)
{
{
...
@@ -48,26 +68,6 @@ tag_ape_load(const char *file)
...
@@ -48,26 +68,6 @@ tag_ape_load(const char *file)
unsigned
char
reserved
[
8
];
unsigned
char
reserved
[
8
];
}
footer
;
}
footer
;
const
char
*
apeItems
[
7
]
=
{
"title"
,
"artist"
,
"album"
,
"comment"
,
"genre"
,
"track"
,
"year"
};
int
tagItems
[
7
]
=
{
TAG_ITEM_TITLE
,
TAG_ITEM_ARTIST
,
TAG_ITEM_ALBUM
,
TAG_ITEM_COMMENT
,
TAG_ITEM_GENRE
,
TAG_ITEM_TRACK
,
TAG_ITEM_DATE
,
};
fp
=
fopen
(
file
,
"r"
);
fp
=
fopen
(
file
,
"r"
);
if
(
!
fp
)
if
(
!
fp
)
return
NULL
;
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