integrate platform sub-namespace into source code and documentation

this updates function calls to functions that have been moved from
the utils namepsace or the Info class to platform::
This commit is contained in:
Axel Kohlmeyer
2021-10-02 15:50:58 -04:00
parent 195fe81c60
commit 37bfe3d0ce
36 changed files with 207 additions and 473 deletions

View File

@ -6,6 +6,7 @@
// This software is distributed under the GNU General Public License.
#include "library.h"
#include "platform.h"
#include "utils.h"
#include <cstring>
@ -785,8 +786,8 @@ int main(int argc, char **argv)
std::string input_file;
if ((argc > 1) && (argv[1][0] != '-')) {
--argc;
input_file = utils::path_basename(argv[1]);
chdir(utils::path_dirname(input_file).c_str());
input_file = platform::path_basename(argv[1]);
chdir(platform::path_dirname(input_file).c_str());
for (int i = 1; i < argc; ++i)
argv[i] = argv[i + 1];
}