diff --git a/design_dump.cc b/design_dump.cc index 1518f1f21..ef5c4f75f 100644 --- a/design_dump.cc +++ b/design_dump.cc @@ -1518,9 +1518,9 @@ void NetETernary::dump(ostream&o) const void NetEUFunc::dump(ostream&o) const { o << func_->basename() << "("; - if (parms_.count() > 0) { + if (parms_.size() > 0) { parms_[0]->dump(o); - for (unsigned idx = 1 ; idx < parms_.count() ; idx += 1) { + for (unsigned idx = 1 ; idx < parms_.size() ; idx += 1) { o << ", "; parms_[idx]->dump(o); } diff --git a/dup_expr.cc b/dup_expr.cc index cccdff8c6..c1258eba6 100644 --- a/dup_expr.cc +++ b/dup_expr.cc @@ -232,9 +232,9 @@ NetETernary* NetETernary::dup_expr() const NetEUFunc* NetEUFunc::dup_expr() const { NetEUFunc*tmp; - svector tmp_parms (parms_.count()); + vector tmp_parms (parms_.size()); - for (unsigned idx = 0 ; idx < tmp_parms.count() ; idx += 1) { + for (unsigned idx = 0 ; idx < tmp_parms.size() ; idx += 1) { ivl_assert(*this, parms_[idx]); tmp_parms[idx] = parms_[idx]->dup_expr(); } diff --git a/elab_expr.cc b/elab_expr.cc index 5ed9832be..7d10bb0d8 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -1663,7 +1663,7 @@ NetExpr* PECallFunction::elaborate_expr(Design*des, NetScope*scope, if ((parms_count == 1) && (parms_[0] == 0)) parms_count = 0; - svector parms (parms_count); + vector parms (parms_count); /* Elaborate the input expressions for the function. This is done in the scope of the function call, and not the scope @@ -1672,7 +1672,7 @@ NetExpr* PECallFunction::elaborate_expr(Design*des, NetScope*scope, unsigned parm_errors = 0; unsigned missing_parms = 0; - for (unsigned idx = 0 ; idx < parms.count() ; idx += 1) { + for (unsigned idx = 0 ; idx < parms.size() ; idx += 1) { PExpr*tmp = parms_[idx]; if (tmp) { parms[idx] = elaborate_rval_expr(des, scope, diff --git a/elab_sig.cc b/elab_sig.cc index 9f2e6b60e..a795a3a33 100644 --- a/elab_sig.cc +++ b/elab_sig.cc @@ -624,7 +624,7 @@ void PFunction::elaborate_sig(Design*des, NetScope*scope) const } } - svectorports (ports_? ports_->count() : 0); + vectorports (ports_? ports_->count() : 0); if (ports_) for (unsigned idx = 0 ; idx < ports_->count() ; idx += 1) { diff --git a/expr_synth.cc b/expr_synth.cc index 8a7138a39..e30940025 100644 --- a/expr_synth.cc +++ b/expr_synth.cc @@ -1386,11 +1386,11 @@ NetNet* NetESFunc::synthesize(Design*des, NetScope*scope, NetExpr*root) NetNet* NetEUFunc::synthesize(Design*des, NetScope*scope, NetExpr*root) { - svector eparms (parms_.count()); + vector eparms (parms_.size()); /* Synthesize the arguments. */ bool errors = false; - for (unsigned idx = 0; idx < eparms.count(); idx += 1) { + for (unsigned idx = 0; idx < eparms.size(); idx += 1) { if (dynamic_cast (parms_[idx])) { errors = true; continue; @@ -1432,7 +1432,7 @@ NetNet* NetEUFunc::synthesize(Design*des, NetScope*scope, NetExpr*root) /* Connect the pins to the arguments. */ NetFuncDef*def = func_->func_def(); - for (unsigned idx = 0; idx < eparms.count(); idx += 1) { + for (unsigned idx = 0; idx < eparms.size(); idx += 1) { unsigned width = def->port(idx)->vector_width(); NetNet*tmp; if (eparms[idx]->get_signed()) { diff --git a/net_nex_input.cc b/net_nex_input.cc index 5642e6164..2d78542a9 100644 --- a/net_nex_input.cc +++ b/net_nex_input.cc @@ -188,7 +188,7 @@ NexusSet* NetETernary::nex_input(bool rem_out) NexusSet* NetEUFunc::nex_input(bool rem_out) { NexusSet*result = new NexusSet; - for (unsigned idx = 0 ; idx < parms_.count() ; idx += 1) { + for (unsigned idx = 0 ; idx < parms_.size() ; idx += 1) { NexusSet*tmp = parms_[idx]->nex_input(rem_out); result->add(*tmp); delete tmp; diff --git a/netlist.cc b/netlist.cc index 1677b16da..b3bb702e2 100644 --- a/netlist.cc +++ b/netlist.cc @@ -1979,7 +1979,7 @@ bool NetConst::is_string() const return is_string_; } -NetFuncDef::NetFuncDef(NetScope*s, NetNet*result, const svector&po) +NetFuncDef::NetFuncDef(NetScope*s, NetNet*result, const vector&po) : scope_(s), statement_(0), result_sig_(result), ports_(po) { } @@ -2012,12 +2012,12 @@ NetScope*NetFuncDef::scope() unsigned NetFuncDef::port_count() const { - return ports_.count(); + return ports_.size(); } const NetNet* NetFuncDef::port(unsigned idx) const { - assert(idx < ports_.count()); + assert(idx < ports_.size()); return ports_[idx]; } @@ -2063,7 +2063,7 @@ const NetExpr* NetSTask::parm(unsigned idx) const } NetEUFunc::NetEUFunc(NetScope*scope, NetScope*def, NetESignal*res, - svector&p, bool nc) + vector&p, bool nc) : scope_(scope), func_(def), result_sig_(res), parms_(p), need_const_(nc) { expr_width(result_sig_->expr_width()); @@ -2071,7 +2071,7 @@ NetEUFunc::NetEUFunc(NetScope*scope, NetScope*def, NetESignal*res, NetEUFunc::~NetEUFunc() { - for (unsigned idx = 0 ; idx < parms_.count() ; idx += 1) + for (unsigned idx = 0 ; idx < parms_.size() ; idx += 1) delete parms_[idx]; } #if 0 @@ -2087,12 +2087,12 @@ const NetESignal*NetEUFunc::result_sig() const unsigned NetEUFunc::parm_count() const { - return parms_.count(); + return parms_.size(); } const NetExpr* NetEUFunc::parm(unsigned idx) const { - assert(idx < parms_.count()); + assert(idx < parms_.size()); return parms_[idx]; } diff --git a/netlist.h b/netlist.h index 06684d804..e1262a89a 100644 --- a/netlist.h +++ b/netlist.h @@ -2981,7 +2981,7 @@ class NetFree : public NetProc { class NetFuncDef { public: - NetFuncDef(NetScope*, NetNet*result, const svector&po); + NetFuncDef(NetScope*, NetNet*result, const std::vector&po); ~NetFuncDef(); void set_proc(NetProc*st); @@ -3002,7 +3002,7 @@ class NetFuncDef { NetScope*scope_; NetProc*statement_; NetNet*result_sig_; - svectorports_; + std::vectorports_; }; /* @@ -3164,7 +3164,7 @@ class NetTaskDef { class NetEUFunc : public NetExpr { public: - NetEUFunc(NetScope*, NetScope*, NetESignal*, svector&, bool); + NetEUFunc(NetScope*, NetScope*, NetESignal*, std::vector&, bool); ~NetEUFunc(); const NetESignal*result_sig() const; @@ -3187,7 +3187,7 @@ class NetEUFunc : public NetExpr { NetScope*scope_; NetScope*func_; NetESignal*result_sig_; - svector parms_; + std::vector parms_; bool need_const_; private: // not implemented