Mercurial > minori
diff dep/animia/src/fd/linux.cc @ 163:44c5e6dd9488
dep/animia/osx: move GetProcessName to util/osx so we can use it in quartz
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 18 Nov 2023 00:47:40 -0500 |
parents | cdf79282d647 |
children | 99fdf5a90b0f |
line wrap: on
line diff
--- a/dep/animia/src/fd/linux.cc Fri Nov 17 16:49:57 2023 -0500 +++ b/dep/animia/src/fd/linux.cc Sat Nov 18 00:47:40 2023 -0500 @@ -22,7 +22,7 @@ /* this uses dirent instead of std::filesystem; it would make a bit more sense to use the latter, but this is platform dependent already :) */ -std::vector<std::string> GetAllFilesInDir(const std::string& _dir) { +static std::vector<std::string> GetAllFilesInDir(const std::string& _dir) { std::vector<std::string> ret; DIR* dir = opendir(_dir.c_str()); @@ -39,7 +39,7 @@ return ret; } -std::string Basename(const std::string& path) { +static std::string Basename(const std::string& path) { return path.substr(path.find_last_of("/") + 1, path.length()); }