Handle error idents in constants not in any scope (PR#97)

This commit is contained in:
steve 2001-01-12 04:31:27 +00:00
parent 5fb7f9ca91
commit 4e7a5d55d0
1 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT) && !defined(macintosh)
#ident "$Id: PExpr.cc,v 1.21 2000/12/16 19:03:30 steve Exp $"
#ident "$Id: PExpr.cc,v 1.22 2001/01/12 04:31:27 steve Exp $"
#endif
# include "PExpr.h"
@ -154,6 +154,7 @@ string PEIdent::name() const
bool PEIdent::is_constant(Module*mod) const
{
map<string,PExpr*>::const_iterator cur;
if (mod == 0) return false;
cur = mod->parameters.find(text_);
if (cur != mod->parameters.end()) return true;
@ -245,6 +246,9 @@ bool PEUnary::is_constant(Module*m) const
/*
* $Log: PExpr.cc,v $
* Revision 1.22 2001/01/12 04:31:27 steve
* Handle error idents in constants not in any scope (PR#97)
*
* Revision 1.21 2000/12/16 19:03:30 steve
* Evaluate <= and ?: in parameter expressions (PR#81)
*