Handle dumping tasks with no ports.
This commit is contained in:
parent
deabcf7687
commit
d9553ecba1
|
|
@ -17,7 +17,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT)
|
#if !defined(WINNT)
|
||||||
#ident "$Id: pform_dump.cc,v 1.29 1999/07/24 02:11:20 steve Exp $"
|
#ident "$Id: pform_dump.cc,v 1.30 1999/07/30 00:43:17 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -409,21 +409,22 @@ void PRepeat::dump(ostream&out, unsigned ind) const
|
||||||
|
|
||||||
void PTask::dump(ostream&out, unsigned ind) const
|
void PTask::dump(ostream&out, unsigned ind) const
|
||||||
{
|
{
|
||||||
for (unsigned idx = 0 ; idx < ports_->count() ; idx += 1) {
|
if (ports_)
|
||||||
out << setw(ind) << "";
|
for (unsigned idx = 0 ; idx < ports_->count() ; idx += 1) {
|
||||||
switch ((*ports_)[idx]->get_port_type()) {
|
out << setw(ind) << "";
|
||||||
case NetNet::PINPUT:
|
switch ((*ports_)[idx]->get_port_type()) {
|
||||||
out << "input ";
|
case NetNet::PINPUT:
|
||||||
break;
|
out << "input ";
|
||||||
case NetNet::POUTPUT:
|
break;
|
||||||
out << "output ";
|
case NetNet::POUTPUT:
|
||||||
break;
|
out << "output ";
|
||||||
case NetNet::PINOUT:
|
break;
|
||||||
out << "inout ";
|
case NetNet::PINOUT:
|
||||||
break;
|
out << "inout ";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
out << (*ports_)[idx]->name() << ";" << endl;
|
||||||
}
|
}
|
||||||
out << (*ports_)[idx]->name() << ";" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
statement_->dump(out, ind);
|
statement_->dump(out, ind);
|
||||||
}
|
}
|
||||||
|
|
@ -546,6 +547,9 @@ void PUdp::dump(ostream&out) const
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: pform_dump.cc,v $
|
* $Log: pform_dump.cc,v $
|
||||||
|
* Revision 1.30 1999/07/30 00:43:17 steve
|
||||||
|
* Handle dumping tasks with no ports.
|
||||||
|
*
|
||||||
* Revision 1.29 1999/07/24 02:11:20 steve
|
* Revision 1.29 1999/07/24 02:11:20 steve
|
||||||
* Elaborate task input ports.
|
* Elaborate task input ports.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue