mirror of
https://github.com/ksherlock/mpw.git
synced 2024-05-28 07:41:34 +00:00
mpw-make -- support for quoted strings.
This commit is contained in:
parent
cd99626176
commit
aae68c20dd
|
@ -71,6 +71,18 @@ LinkIIGS TheHeader.aii.obj IRModule.p.obj ?
|
||||||
token.append(ts + 1, te - 1);
|
token.append(ts + 1, te - 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
['] [^']* ['] => {
|
||||||
|
// quoted string -- remove quotes.
|
||||||
|
token.append(ts + 1, te - 1);
|
||||||
|
};
|
||||||
|
|
||||||
|
["] [^"]* ["] => {
|
||||||
|
// quoted string -- remove quotes.
|
||||||
|
token.append(ts + 1, te - 1);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
any => {
|
any => {
|
||||||
token.push_back(*ts);
|
token.push_back(*ts);
|
||||||
};
|
};
|
||||||
|
|
|
@ -88,7 +88,10 @@ int launch_command(std::vector<char *> &argv) {
|
||||||
argv.push_back(nullptr);
|
argv.push_back(nullptr);
|
||||||
|
|
||||||
print_command(argv);
|
print_command(argv);
|
||||||
if (dry_run) return 0;
|
if (dry_run) {
|
||||||
|
printf("\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
if (pid < 0) {
|
if (pid < 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user