projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c17d98f
)
Bugfix in "read_verilog -D NAME=VAL" handling
author
Clifford Wolf
<clifford@clifford.at>
Mon, 28 Nov 2016 13:45:05 +0000
(14:45 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Mon, 28 Nov 2016 13:45:05 +0000
(14:45 +0100)
frontends/verilog/verilog_frontend.cc
patch
|
blob
|
history
diff --git
a/frontends/verilog/verilog_frontend.cc
b/frontends/verilog/verilog_frontend.cc
index 3c9ed7ee3e97d3e80f619535fae1ff2b9decaebd..2a1dce3898a5e6abffd4e47c22b616fbb673608e 100644
(file)
--- a/
frontends/verilog/verilog_frontend.cc
+++ b/
frontends/verilog/verilog_frontend.cc
@@
-303,10
+303,10
@@
struct VerilogFrontend : public Frontend {
}
if (arg == "-D" && argidx+1 < args.size()) {
std::string name = args[++argidx], value;
- size_t equal = name.find('='
, 2
);
+ size_t equal = name.find('=');
if (equal != std::string::npos) {
- value =
arg
.substr(equal+1);
- name =
arg
.substr(0, equal);
+ value =
name
.substr(equal+1);
+ name =
name
.substr(0, equal);
}
defines_map[name] = value;
continue;