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