aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-12 10:57:15 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-12 10:57:15 +0200
commitb1596bc0e7e5269fd610508f608f65f3aa696bd9 (patch)
treea02538fb81ddef273cac8cc3f382b3be644c2449 /kernel/yosys.h
parentd2b8b48bf3bc6b202c31db62ef5e2b63041e775e (diff)
downloadyosys-b1596bc0e7e5269fd610508f608f65f3aa696bd9.tar.gz
yosys-b1596bc0e7e5269fd610508f608f65f3aa696bd9.tar.bz2
yosys-b1596bc0e7e5269fd610508f608f65f3aa696bd9.zip
Added run_command() api to replace system() and popen()
Diffstat (limited to 'kernel/yosys.h')
-rw-r--r--kernel/yosys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h
index d38e60ceb..fcf60f9f1 100644
--- a/kernel/yosys.h
+++ b/kernel/yosys.h
@@ -87,6 +87,7 @@ std::string vstringf(const char *fmt, va_list ap);
std::string next_token(std::string &text, const char *sep);
bool patmatch(const char *pattern, const char *string);
int readsome(std::istream &f, char *s, int n);
+int run_command(const std::string &command, std::function<void(const std::string&)> process_line = std::function<void(const std::string&)>());
template<typename T> int GetSize(const T &obj) { return obj.size(); }
int GetSize(RTLIL::Wire *wire);