aboutsummaryrefslogtreecommitdiff
path: root/dep.h
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-19 15:30:49 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-22 15:46:23 +0900
commit0562c301e9e359ca32abf647e32300aaea75d8f7 (patch)
treec226363ee2dbc512f577a621d64d442934ce348e /dep.h
parent4a7113136b40e77d65ffd2ed22d1162a9e6f126b (diff)
[C++] Implement suffix rule
Diffstat (limited to 'dep.h')
-rw-r--r--dep.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dep.h b/dep.h
index d829b10..490fe46 100644
--- a/dep.h
+++ b/dep.h
@@ -1,6 +1,7 @@
#ifndef DEP_H_
#define DEP_H_
+#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
@@ -30,7 +31,7 @@ struct DepNode {
void InitDepNodePool();
void QuitDepNodePool();
-void MakeDep(const vector<Rule*>& rules,
+void MakeDep(const vector<shared_ptr<Rule>>& rules,
const Vars& vars,
const unordered_map<StringPiece, Vars*>& rule_vars,
const vector<StringPiece>& targets,