Remember to include the -S condition.

This commit is contained in:
steve 2000-11-09 21:58:00 +00:00
parent 47ce0f3c46
commit 1046c86c84
3 changed files with 14 additions and 4 deletions

View File

@ -18,7 +18,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
#ident "$Id: Makefile.in,v 1.1 2000/10/08 22:36:56 steve Exp $"
#ident "$Id: Makefile.in,v 1.2 2000/11/09 21:58:00 steve Exp $"
#
#
SHELL = /bin/sh
@ -71,7 +71,7 @@ main.o: main.c globals.h
build_string.o: build_string.c globals.h
lexor.o: lexor.c parse.h globals.h
parse.o: parse.c
parse.o: parse.c globals.h
install: all installdirs $(bindir)/iverilog@EXEEXT@ $(mandir)/man1/iverilog.1

View File

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT) && !defined(macintosh)
#ident "$Id: globals.h,v 1.2 2000/10/28 03:45:47 steve Exp $"
#ident "$Id: globals.h,v 1.3 2000/11/09 21:58:00 steve Exp $"
#endif
# include <stddef.h>
@ -45,6 +45,9 @@ extern const char*opath;
/* This pointer is set if there was a -s<value> parameter. */
extern const char*start;
/* This flag is true if the -S flag was used on the command line. */
extern int synth_flag;
/* This is the name of the selected target. */
extern const char*targ;
@ -56,6 +59,9 @@ extern int build_string(char*out, size_t olen, const char*pattern);
/*
* $Log: globals.h,v $
* Revision 1.3 2000/11/09 21:58:00 steve
* Remember to include the -S condition.
*
* Revision 1.2 2000/10/28 03:45:47 steve
* Use the conf file to generate the vvm ivl string.
*

View File

@ -18,7 +18,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT) && !defined(macintosh)
#ident "$Id: parse.y,v 1.1 2000/10/08 22:36:56 steve Exp $"
#ident "$Id: parse.y,v 1.2 2000/11/09 21:58:00 steve Exp $"
#endif
# include <stdio.h>
@ -94,6 +94,10 @@ const char*lookup_pattern(const char*key)
for (cc = cur->cond ; cc ; cc = cc->next) {
switch (cc->code) {
case CODE_S:
if (synth_flag)
continue;
break;
case CODE_t:
if (strcmp(targ, cc->text) == 0)
continue;