assetnameparser: Make use of an anonymous namespace

Makes the bulk of helper functions internally linked.
This commit is contained in:
Lioncash 2020-05-31 06:54:20 -04:00
parent 1e822419c5
commit 99dd875b43
1 changed files with 5 additions and 2 deletions

View File

@ -30,7 +30,9 @@
#endif #endif
#endif #endif
static logvisor::Module Log("AssetNameParser"); namespace {
logvisor::Module Log("AssetNameParser");
// TODO: Clean this up // TODO: Clean this up
#undef bswap16 #undef bswap16
#undef bswap32 #undef bswap32
@ -148,7 +150,7 @@ typedef std::string SystemString;
typedef struct stat Sstat; typedef struct stat Sstat;
#endif #endif
static FILE* Fopen(const SystemChar* path, const SystemChar* mode, FileLockType lock = FileLockType::None) { FILE* Fopen(const SystemChar* path, const SystemChar* mode, FileLockType lock = FileLockType::None) {
#if IS_UCS2 #if IS_UCS2
FILE* fp = _wfopen(path, mode); FILE* fp = _wfopen(path, mode);
if (!fp) if (!fp)
@ -172,6 +174,7 @@ static FILE* Fopen(const SystemChar* path, const SystemChar* mode, FileLockType
return fp; return fp;
} }
} // Anonymous namespace
#if _WIN32 #if _WIN32
int wmain(int argc, const wchar_t* argv[]) int wmain(int argc, const wchar_t* argv[])