Handle error idents in constants not in any scope (PR#97)
This commit is contained in:
parent
5fb7f9ca91
commit
4e7a5d55d0
6
PExpr.cc
6
PExpr.cc
|
|
@ -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) && !defined(macintosh)
|
#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
|
#endif
|
||||||
|
|
||||||
# include "PExpr.h"
|
# include "PExpr.h"
|
||||||
|
|
@ -154,6 +154,7 @@ string PEIdent::name() const
|
||||||
bool PEIdent::is_constant(Module*mod) const
|
bool PEIdent::is_constant(Module*mod) const
|
||||||
{
|
{
|
||||||
map<string,PExpr*>::const_iterator cur;
|
map<string,PExpr*>::const_iterator cur;
|
||||||
|
if (mod == 0) return false;
|
||||||
|
|
||||||
cur = mod->parameters.find(text_);
|
cur = mod->parameters.find(text_);
|
||||||
if (cur != mod->parameters.end()) return true;
|
if (cur != mod->parameters.end()) return true;
|
||||||
|
|
@ -245,6 +246,9 @@ bool PEUnary::is_constant(Module*m) const
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: PExpr.cc,v $
|
* $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
|
* Revision 1.21 2000/12/16 19:03:30 steve
|
||||||
* Evaluate <= and ?: in parameter expressions (PR#81)
|
* Evaluate <= and ?: in parameter expressions (PR#81)
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue