Changes to netlist.h
Changes so "Microsoft Visual Studio Express 2015 RC Web" could build it without a bunch of runtime errors and crashes during regression testing. When declaring an bitfield variable of type enum in a struct, the enum has to have an underlying integer type for MSVC++ when compiling a C++ file, and for these cases, it had to be unsigned integer for everything to work okay during regression testing.
This commit is contained in:
parent
82d46a5e1a
commit
093e7eb2c8
12
netlist.h
12
netlist.h
|
|
@ -102,7 +102,11 @@ class Link {
|
|||
friend class NexusSet;
|
||||
|
||||
public:
|
||||
#if defined(__cplusplus) && !defined(__GNUC__)
|
||||
enum DIR : unsigned int { PASSIVE, INPUT, OUTPUT };
|
||||
#else
|
||||
enum DIR { PASSIVE, INPUT, OUTPUT };
|
||||
#endif
|
||||
|
||||
private: // Only NetPins can create/delete Link objects
|
||||
Link();
|
||||
|
|
@ -619,7 +623,11 @@ class NetDelaySrc : public NetObj {
|
|||
class PortType
|
||||
{
|
||||
public:
|
||||
#if defined(__cplusplus) && !defined(__GNUC__)
|
||||
enum Enum : unsigned int { NOT_A_PORT, PIMPLICIT, PINPUT, POUTPUT, PINOUT, PREF };
|
||||
#else
|
||||
enum Enum { NOT_A_PORT, PIMPLICIT, PINPUT, POUTPUT, PINOUT, PREF };
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Merge Port types (used to construct a sane combined port-type
|
||||
|
|
@ -647,7 +655,11 @@ struct PortInfo
|
|||
class NetNet : public NetObj, public PortType {
|
||||
|
||||
public:
|
||||
#if defined(__cplusplus) && !defined(__GNUC__)
|
||||
enum Type : unsigned int { NONE, IMPLICIT, IMPLICIT_REG, INTEGER, WIRE, TRI, TRI1,
|
||||
#else
|
||||
enum Type { NONE, IMPLICIT, IMPLICIT_REG, INTEGER, WIRE, TRI, TRI1,
|
||||
#endif
|
||||
SUPPLY0, SUPPLY1, WAND, TRIAND, TRI0, WOR, TRIOR, REG,
|
||||
UNRESOLVED_WIRE };
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue