aboutsummaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-29 18:38:35 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-29 20:49:28 +0900
commite7992752dbfe23d0a88312b4279531c39512b9a6 (patch)
treeebbbff517aed82fe2b04d9cbb0903865fc997c44 /command.h
parent94d7a61c9edd45b6c6b0f19c60e64aeddfdc8e46 (diff)
downloadkati-e7992752dbfe23d0a88312b4279531c39512b9a6.tar.gz
[C++] Introduce Symbol
Diffstat (limited to 'command.h')
-rw-r--r--command.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/command.h b/command.h
index f06533f..e93de34 100644
--- a/command.h
+++ b/command.h
@@ -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;