mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-16 22:51:28 +00:00
Remove .c_str() calls from log()/log_error()
There are some leftovers, but this is an easy regex-based approach that removes most of them.
This commit is contained in:
parent
c2291c10a6
commit
e0ae7b7af4
140 changed files with 623 additions and 623 deletions
|
@ -109,7 +109,7 @@ struct FminitPass : public Pass {
|
|||
SigSpec clksig;
|
||||
if (!clocksignal.empty()) {
|
||||
if (!SigSpec::parse(clksig, module, clocksignal))
|
||||
log_error("Error parsing expression '%s'.\n", clocksignal.c_str());
|
||||
log_error("Error parsing expression '%s'.\n", clocksignal);
|
||||
}
|
||||
|
||||
for (auto &it : setdata)
|
||||
|
@ -117,10 +117,10 @@ struct FminitPass : public Pass {
|
|||
SigSpec lhs, rhs;
|
||||
|
||||
if (!SigSpec::parse(lhs, module, it.first))
|
||||
log_error("Error parsing expression '%s'.\n", it.first.c_str());
|
||||
log_error("Error parsing expression '%s'.\n", it.first);
|
||||
|
||||
if (!SigSpec::parse_rhs(lhs, rhs, module, it.second))
|
||||
log_error("Error parsing expression '%s'.\n", it.second.c_str());
|
||||
log_error("Error parsing expression '%s'.\n", it.second);
|
||||
|
||||
SigSpec final_lhs, final_rhs;
|
||||
|
||||
|
@ -144,7 +144,7 @@ struct FminitPass : public Pass {
|
|||
SigSpec lhs, rhs;
|
||||
|
||||
if (!SigSpec::parse(lhs, module, it.first))
|
||||
log_error("Error parsing expression '%s'.\n", it.first.c_str());
|
||||
log_error("Error parsing expression '%s'.\n", it.first);
|
||||
|
||||
for (int i = 0; i < GetSize(it.second); i++)
|
||||
{
|
||||
|
@ -183,7 +183,7 @@ struct FminitPass : public Pass {
|
|||
SigSpec final_lhs, final_rhs;
|
||||
|
||||
if (!SigSpec::parse_rhs(lhs, rhs, module, it.second[i]))
|
||||
log_error("Error parsing expression '%s'.\n", it.second[i].c_str());
|
||||
log_error("Error parsing expression '%s'.\n", it.second[i]);
|
||||
|
||||
for (int i = 0; i < GetSize(rhs); i++)
|
||||
if (rhs[i] != State::Sz) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue