projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90bc71d
)
Added newline support to Pass::call() parser
author
Clifford Wolf
<clifford@clifford.at>
Mon, 29 Dec 2014 02:49:45 +0000
(
03:49
+0100)
committer
Clifford Wolf
<clifford@clifford.at>
Mon, 29 Dec 2014 02:49:45 +0000
(
03:49
+0100)
kernel/register.cc
patch
|
blob
|
history
diff --git
a/kernel/register.cc
b/kernel/register.cc
index 2927a333ec78a62b3ee01aad0c65a798feba913a..7086e1424ecd7f60d9a321ba548322f3e7b6649e 100644
(file)
--- a/
kernel/register.cc
+++ b/
kernel/register.cc
@@
-182,6
+182,18
@@
void Pass::call(RTLIL::Design *design, std::string command)
call(design, "clean -purge");
} else
args.push_back(tok);
+ bool found_nl = false;
+ for (auto c : cmd_buf) {
+ if (c == ' ' || c == '\t')
+ continue;
+ if (c == '\r' || c == '\n')
+ found_nl = true;
+ break;
+ }
+ if (found_nl) {
+ call(design, args);
+ args.clear();
+ }
tok = next_token(cmd_buf, " \t\r\n");
}