diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-29 18:38:35 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-29 20:49:28 +0900 |
commit | e7992752dbfe23d0a88312b4279531c39512b9a6 (patch) | |
tree | ebbbff517aed82fe2b04d9cbb0903865fc997c44 /command.h | |
parent | 94d7a61c9edd45b6c6b0f19c60e64aeddfdc8e46 (diff) | |
download | kati-e7992752dbfe23d0a88312b4279531c39512b9a6.tar.gz |
[C++] Introduce Symbol
Diffstat (limited to 'command.h')
-rw-r--r-- | command.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,7 +18,7 @@ #include <memory> #include <vector> -#include "string_piece.h" +#include "symtab.h" using namespace std; @@ -26,10 +26,10 @@ struct DepNode; class Evaluator; struct Command { - Command() - : echo(true), ignore_error(false) { + explicit Command(Symbol o) + : output(o), echo(true), ignore_error(false) { } - StringPiece output; + Symbol output; shared_ptr<string> cmd; bool echo; bool ignore_error; |