mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Added run_command() api to replace system() and popen()
This commit is contained in:
parent
d2b8b48bf3
commit
b1596bc0e7
6 changed files with 104 additions and 92 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue