2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:07:42 +00:00

project path representation

This commit is contained in:
Jack Andersen
2015-05-26 23:09:05 -10:00
parent 0349e2cea0
commit 851221f861
8 changed files with 244 additions and 32 deletions

View File

@@ -1,6 +1,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/param.h>
#include <regex>
#include <stdexcept>
#include <list>
@@ -69,6 +70,9 @@ int main(int argc, const char** argv)
/* Assemble common tool pass info */
SToolPassInfo info;
info.pname = argv[0];
char cwdbuf[MAXPATHLEN];
if (getcwd(cwdbuf, MAXPATHLEN))
info.cwd = cwdbuf;
/* Concatenate args */
std::list<std::string> args;