mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Fixed the red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16083 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7aedb02fcc
commit
784112a075
1 changed files with 7 additions and 0 deletions
|
|
@ -299,6 +299,7 @@ bool tagcache_is_sorted_tag(int type)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_DIRCACHE
|
||||||
/**
|
/**
|
||||||
* Returns true if specified flag is still present, i.e., dircache
|
* Returns true if specified flag is still present, i.e., dircache
|
||||||
* has not been reloaded.
|
* has not been reloaded.
|
||||||
|
|
@ -307,6 +308,7 @@ static bool is_dircache_intact(void)
|
||||||
{
|
{
|
||||||
return dircache_get_appflag(DIRCACHE_APPFLAG_TAGCACHE);
|
return dircache_get_appflag(DIRCACHE_APPFLAG_TAGCACHE);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int open_tag_fd(struct tagcache_header *hdr, int tag, bool write)
|
static int open_tag_fd(struct tagcache_header *hdr, int tag, bool write)
|
||||||
{
|
{
|
||||||
|
|
@ -1301,8 +1303,13 @@ bool tagcache_search_add_clause(struct tagcache_search *tcs,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: Remove this mess. */
|
||||||
|
#ifdef HAVE_DIRCACHE
|
||||||
#define TAG_FILENAME_RAM(tcs) ((tcs->type == tag_filename) \
|
#define TAG_FILENAME_RAM(tcs) ((tcs->type == tag_filename) \
|
||||||
? ((flag & FLAG_DIRCACHE) && is_dircache_intact()) : 1)
|
? ((flag & FLAG_DIRCACHE) && is_dircache_intact()) : 1)
|
||||||
|
#else
|
||||||
|
#define TAG_FILENAME_RAM(tcs) (tcs->type != tag_filename)
|
||||||
|
#endif
|
||||||
|
|
||||||
static bool get_next(struct tagcache_search *tcs)
|
static bool get_next(struct tagcache_search *tcs)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue