Forgot to handle no overrides at all.
This commit is contained in:
parent
7e37b61a05
commit
e52a5be16e
18
pform.cc
18
pform.cc
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#if !defined(WINNT)
|
||||
#ident "$Id: pform.cc,v 1.50 2000/01/01 23:47:58 steve Exp $"
|
||||
#ident "$Id: pform.cc,v 1.51 2000/01/02 01:59:28 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "compiler.h"
|
||||
|
|
@ -355,12 +355,13 @@ void pform_make_modgates(const string&type,
|
|||
svector<PExpr*>*overrides,
|
||||
svector<lgate>*gates)
|
||||
{
|
||||
for (unsigned idx = 0 ; idx < overrides->count() ; idx += 1)
|
||||
if (! pform_expression_is_constant((*overrides)[idx])) {
|
||||
VLerror("error: Parameter override expression"
|
||||
" must be constant.");
|
||||
return;
|
||||
}
|
||||
if (overrides)
|
||||
for (unsigned idx = 0 ; idx < overrides->count() ; idx += 1)
|
||||
if (! pform_expression_is_constant((*overrides)[idx])) {
|
||||
VLerror("error: Parameter override expression"
|
||||
" must be constant.");
|
||||
return;
|
||||
}
|
||||
|
||||
for (unsigned idx = 0 ; idx < gates->count() ; idx += 1) {
|
||||
lgate cur = (*gates)[idx];
|
||||
|
|
@ -772,6 +773,9 @@ int pform_parse(const char*path, map<string,Module*>&modules,
|
|||
|
||||
/*
|
||||
* $Log: pform.cc,v $
|
||||
* Revision 1.51 2000/01/02 01:59:28 steve
|
||||
* Forgot to handle no overrides at all.
|
||||
*
|
||||
* Revision 1.50 2000/01/01 23:47:58 steve
|
||||
* Fix module parameter override syntax.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue