Fix gcc4 build issues.

This commit is contained in:
steve 2005-06-14 15:33:54 +00:00
parent 665f31271f
commit 3e11207a56
5 changed files with 30 additions and 7 deletions

View File

@ -19,11 +19,13 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CVS_IDENT #ifdef HAVE_CVS_IDENT
#ident "$Id: LineInfo.h,v 1.7 2003/01/17 05:49:03 steve Exp $" #ident "$Id: LineInfo.h,v 1.7.2.1 2005/06/14 15:33:54 steve Exp $"
#endif #endif
# include <string> # include <string>
using namespace std;
/* /*
* This class holds line information for an internal object. * This class holds line information for an internal object.
* *
@ -52,6 +54,9 @@ class LineInfo {
/* /*
* $Log: LineInfo.h,v $ * $Log: LineInfo.h,v $
* Revision 1.7.2.1 2005/06/14 15:33:54 steve
* Fix gcc4 build issues.
*
* Revision 1.7 2003/01/17 05:49:03 steve * Revision 1.7 2003/01/17 05:49:03 steve
* Use stringstream in place of sprintf. * Use stringstream in place of sprintf.
* *

View File

@ -19,12 +19,14 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CVS_IDENT #ifdef HAVE_CVS_IDENT
#ident "$Id: StringHeap.h,v 1.5 2004/02/18 17:11:54 steve Exp $" #ident "$Id: StringHeap.h,v 1.5.2.1 2005/06/14 15:33:54 steve Exp $"
#endif #endif
# include "config.h" # include "config.h"
# include <string> # include <string>
using namespace std;
class perm_string { class perm_string {
public: public:
@ -120,6 +122,9 @@ class StringHeapLex : private StringHeap {
/* /*
* $Log: StringHeap.h,v $ * $Log: StringHeap.h,v $
* Revision 1.5.2.1 2005/06/14 15:33:54 steve
* Fix gcc4 build issues.
*
* Revision 1.5 2004/02/18 17:11:54 steve * Revision 1.5 2004/02/18 17:11:54 steve
* Use perm_strings for named langiage items. * Use perm_strings for named langiage items.
* *

View File

@ -21,7 +21,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
*/ */
#ifdef HAVE_CVS_IDENT #ifdef HAVE_CVS_IDENT
#ident "$Id: svector.h,v 1.9 2003/07/23 02:35:44 steve Exp $" #ident "$Id: svector.h,v 1.9.2.1 2005/06/14 15:33:54 steve Exp $"
#endif #endif
# include "config.h" # include "config.h"
@ -101,14 +101,17 @@ template <class TYPE> class svector {
* Override the implementation of the above template for the string * Override the implementation of the above template for the string
* type parameter. The initialization to nil works different here. * type parameter. The initialization to nil works different here.
*/ */
inline svector<string>::svector<string>(unsigned size) template <> inline svector<std::string>::svector(unsigned size)
: nitems_(size), items_(new string[size]) : nitems_(size), items_(new std::string[size])
{ {
} }
/* /*
* $Log: svector.h,v $ * $Log: svector.h,v $
* Revision 1.9.2.1 2005/06/14 15:33:54 steve
* Fix gcc4 build issues.
*
* Revision 1.9 2003/07/23 02:35:44 steve * Revision 1.9 2003/07/23 02:35:44 steve
* Inline the svector<string> constructor. * Inline the svector<string> constructor.
* *

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
*/ */
#ifdef HAVE_CVS_IDENT #ifdef HAVE_CVS_IDENT
#ident "$Id: verinum.h,v 1.26 2004/02/17 06:52:55 steve Exp $" #ident "$Id: verinum.h,v 1.26.2.1 2005/06/14 15:33:54 steve Exp $"
#endif #endif
# include <string> # include <string>
@ -31,6 +31,8 @@
class ostream; class ostream;
#endif #endif
using namespace std;
/* /*
* Numbers in Verilog are multibit strings, where each bit has 4 * Numbers in Verilog are multibit strings, where each bit has 4
* possible values: 0, 1, x or z. The verinum number is store in * possible values: 0, 1, x or z. The verinum number is store in
@ -147,6 +149,9 @@ extern verinum v_not(const verinum&left);
/* /*
* $Log: verinum.h,v $ * $Log: verinum.h,v $
* Revision 1.26.2.1 2005/06/14 15:33:54 steve
* Fix gcc4 build issues.
*
* Revision 1.26 2004/02/17 06:52:55 steve * Revision 1.26 2004/02/17 06:52:55 steve
* Support unsigned divide of huge numbers. * Support unsigned divide of huge numbers.
* *

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
*/ */
#ifdef HAVE_CVS_IDENT #ifdef HAVE_CVS_IDENT
#ident "$Id: verireal.h,v 1.10 2004/06/04 23:33:51 steve Exp $" #ident "$Id: verireal.h,v 1.10.2.1 2005/06/14 15:33:54 steve Exp $"
#endif #endif
#ifdef HAVE_IOSFWD #ifdef HAVE_IOSFWD
@ -28,6 +28,8 @@
class ostream; class ostream;
#endif #endif
using namespace std;
class verinum; class verinum;
/* /*
@ -78,6 +80,9 @@ extern verireal operator- (const verireal&);
/* /*
* $Log: verireal.h,v $ * $Log: verireal.h,v $
* Revision 1.10.2.1 2005/06/14 15:33:54 steve
* Fix gcc4 build issues.
*
* Revision 1.10 2004/06/04 23:33:51 steve * Revision 1.10 2004/06/04 23:33:51 steve
* Add unary minus as operator supported by verireal. * Add unary minus as operator supported by verireal.
* *