Rename _flac_stat to flac_stat_s.

This commit is contained in:
Erik de Castro Lopo
2013-03-22 18:22:57 +11:00
parent 608e246f52
commit 7dc5e3a8ff
10 changed files with 25 additions and 25 deletions

View File

@@ -50,7 +50,7 @@
void grabbag__file_copy_metadata(const char *srcpath, const char *destpath)
{
struct _flac_stat srcstat;
struct flac_stat_s srcstat;
struct utimbuf srctime;
if(0 == flac_stat(srcpath, &srcstat)) {
@@ -63,7 +63,7 @@ void grabbag__file_copy_metadata(const char *srcpath, const char *destpath)
FLAC__off_t grabbag__file_get_filesize(const char *srcpath)
{
struct _flac_stat srcstat;
struct flac_stat_s srcstat;
if(0 == flac_stat(srcpath, &srcstat))
return srcstat.st_size;
@@ -86,7 +86,7 @@ const char *grabbag__file_get_basename(const char *srcpath)
FLAC__bool grabbag__file_change_stats(const char *filename, FLAC__bool read_only)
{
struct _flac_stat stats;
struct flac_stat_s stats;
if(0 == flac_stat(filename, &stats)) {
#if !defined _MSC_VER && !defined __MINGW32__
@@ -145,7 +145,7 @@ FLAC__bool grabbag__file_are_same(const char *f1, const char *f2)
CloseHandle(h2);
return same;
#else
struct _flac_stat s1, s2;
struct flac_stat_s s1, s2;
return f1 && f2 && flac_stat(f1, &s1) == 0 && flac_stat(f2, &s2) == 0 && s1.st_ino == s2.st_ino && s1.st_dev == s2.st_dev;
#endif
}

View File

@@ -69,14 +69,14 @@ const FLAC__byte * const GRABBAG__REPLAYGAIN_TAG_ALBUM_GAIN = (const FLAC__byte
const FLAC__byte * const GRABBAG__REPLAYGAIN_TAG_ALBUM_PEAK = (const FLAC__byte * const)"REPLAYGAIN_ALBUM_PEAK";
static FLAC__bool get_file_stats_(const char *filename, struct _flac_stat *stats)
static FLAC__bool get_file_stats_(const char *filename, struct flac_stat_s *stats)
{
FLAC__ASSERT(0 != filename);
FLAC__ASSERT(0 != stats);
return (0 == flac_stat(filename, stats));
}
static void set_file_stats_(const char *filename, struct _flac_stat *stats)
static void set_file_stats_(const char *filename, struct flac_stat_s *stats)
{
FLAC__ASSERT(0 != filename);
FLAC__ASSERT(0 != stats);
@@ -478,7 +478,7 @@ static const char *store_to_file_pre_(const char *filename, FLAC__Metadata_Chain
static const char *store_to_file_post_(const char *filename, FLAC__Metadata_Chain *chain, FLAC__bool preserve_modtime)
{
struct _flac_stat stats;
struct flac_stat_s stats;
const FLAC__bool have_stats = get_file_stats_(filename, &stats);
(void)grabbag__file_change_stats(filename, /*read_only=*/false);