Modifications in support of gcc 2.96

This commit is contained in:
steve 2000-11-04 01:54:01 +00:00
parent a1cfabafb8
commit d7788b88b7
3 changed files with 12 additions and 6 deletions

View File

@ -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: emit.cc,v 1.54 2000/09/26 01:35:42 steve Exp $" #ident "$Id: emit.cc,v 1.55 2000/11/04 01:54:01 steve Exp $"
#endif #endif
/* /*
@ -467,7 +467,7 @@ bool emit(const Design*des, const char*type)
{ {
for (unsigned idx = 0 ; target_table[idx] ; idx += 1) { for (unsigned idx = 0 ; target_table[idx] ; idx += 1) {
const struct target*tgt = target_table[idx]; const struct target*tgt = target_table[idx];
if (tgt->name == type) if (strcmp(tgt->name, type) == 0)
return des->emit(tgt->meth); return des->emit(tgt->meth);
} }
@ -476,6 +476,9 @@ bool emit(const Design*des, const char*type)
/* /*
* $Log: emit.cc,v $ * $Log: emit.cc,v $
* Revision 1.55 2000/11/04 01:54:01 steve
* Modifications in support of gcc 2.96
*
* Revision 1.54 2000/09/26 01:35:42 steve * Revision 1.54 2000/09/26 01:35:42 steve
* Remove the obsolete NetEIdent class. * Remove the obsolete NetEIdent class.
* *

View File

@ -19,7 +19,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: lexor.lex,v 1.51 2000/10/22 22:27:59 steve Exp $" #ident "$Id: lexor.lex,v 1.52 2000/11/04 01:54:01 steve Exp $"
#endif #endif
//# define YYSTYPE lexval //# define YYSTYPE lexval
@ -966,7 +966,7 @@ static void process_timescale(const char*txt)
pform_set_timescale(unit, prec); pform_set_timescale(unit, prec);
} }
static int yywrap() int yywrap()
{ {
return 1; return 1;
} }

View File

@ -19,7 +19,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: target.h,v 1.47 2000/09/26 01:35:43 steve Exp $" #ident "$Id: target.h,v 1.48 2000/11/04 01:54:01 steve Exp $"
#endif #endif
# include "netlist.h" # include "netlist.h"
@ -38,7 +38,7 @@
* pointer to a target_t object that is the actual driver. * pointer to a target_t object that is the actual driver.
*/ */
struct target { struct target {
string name; const char* name;
struct target_t* meth; struct target_t* meth;
}; };
@ -159,6 +159,9 @@ extern const struct target *target_table[];
/* /*
* $Log: target.h,v $ * $Log: target.h,v $
* Revision 1.48 2000/11/04 01:54:01 steve
* Modifications in support of gcc 2.96
*
* Revision 1.47 2000/09/26 01:35:43 steve * Revision 1.47 2000/09/26 01:35:43 steve
* Remove the obsolete NetEIdent class. * Remove the obsolete NetEIdent class.
* *