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
668e3f66
Commit
668e3f66
authored
Aug 07, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
locate: add "pure" attributes
parent
9e51733c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
locate.c
src/locate.c
+2
-0
locate.h
src/locate.h
+3
-0
No files found.
src/locate.c
View file @
668e3f66
...
...
@@ -104,6 +104,7 @@ locate_item_list_parse(char *argv[], int argc, bool fold_case)
return
list
;
}
gcc_pure
static
bool
locate_tag_search
(
const
struct
song
*
song
,
enum
tag_type
type
,
const
char
*
str
)
{
...
...
@@ -164,6 +165,7 @@ locate_song_search(const struct song *song,
return
true
;
}
gcc_pure
static
bool
locate_tag_match
(
const
struct
song
*
song
,
enum
tag_type
type
,
const
char
*
str
)
{
...
...
src/locate.h
View file @
668e3f66
...
...
@@ -48,6 +48,7 @@ struct locate_item_list {
struct
locate_item
items
[
1
];
};
gcc_pure
int
locate_parse_type
(
const
char
*
str
);
...
...
@@ -67,11 +68,13 @@ gcc_nonnull(1)
void
locate_item_list_free
(
struct
locate_item_list
*
list
);
gcc_pure
gcc_nonnull
(
1
,
2
)
bool
locate_song_search
(
const
struct
song
*
song
,
const
struct
locate_item_list
*
criteria
);
gcc_pure
gcc_nonnull
(
1
,
2
)
bool
locate_song_match
(
const
struct
song
*
song
,
...
...
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