Skip to content

Commit

Permalink
Remove pretense of general use for t_cookie.
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Mar 26, 2007
1 parent fe02214 commit fe8da0b
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 75 deletions.
11 changes: 7 additions & 4 deletions net_link.cc
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: net_link.cc,v 1.19 2006/02/02 02:43:58 steve Exp $"
#ident "$Id: net_link.cc,v 1.20 2007/03/26 18:17:50 steve Exp $"
#endif

# include "config.h"
Expand Down Expand Up @@ -304,14 +304,14 @@ const Link* Nexus::first_nlink() const
return list_;
}

void* Nexus::t_cookie() const
ivl_nexus_t Nexus::t_cookie() const
{
return t_cookie_;
}

void* Nexus::t_cookie(void*val)const
ivl_nexus_t Nexus::t_cookie(ivl_nexus_t val)const
{
void*tmp = t_cookie_;
ivl_nexus_t tmp = t_cookie_;
t_cookie_ = val;
return tmp;
}
Expand Down Expand Up @@ -525,6 +525,9 @@ bool NexusSet::intersect(const NexusSet&that) const

/*
* $Log: net_link.cc,v $
* Revision 1.20 2007/03/26 18:17:50 steve
* Remove pretense of general use for t_cookie.
*
* Revision 1.19 2006/02/02 02:43:58 steve
* Allow part selects of memory words in l-values.
*
Expand Down
11 changes: 7 additions & 4 deletions netlist.h
Expand Up @@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: netlist.h,v 1.373 2007/03/22 16:08:16 steve Exp $"
#ident "$Id: netlist.h,v 1.374 2007/03/26 18:17:50 steve Exp $"
#endif

/*
Expand Down Expand Up @@ -275,16 +275,16 @@ class Nexus {
the value that has been driven. */
verinum::V driven_value() const;

void* t_cookie() const;
void* t_cookie(void*) const;
ivl_nexus_t t_cookie() const;
ivl_nexus_t t_cookie(ivl_nexus_t) const;

private:
Link*list_;
void unlink(Link*);
void relink(Link*);

mutable char* name_; /* Cache the calculated name for the Nexus. */
mutable void* t_cookie_;
mutable ivl_nexus_t t_cookie_;

enum VALUE { NO_GUESS, V0, V1, Vx, Vz, VAR };
mutable VALUE driven_;
Expand Down Expand Up @@ -3495,6 +3495,9 @@ extern ostream& operator << (ostream&, NetNet::Type);

/*
* $Log: netlist.h,v $
* Revision 1.374 2007/03/26 18:17:50 steve
* Remove pretense of general use for t_cookie.
*
* Revision 1.373 2007/03/22 16:08:16 steve
* Spelling fixes from Larry
*
Expand Down

0 comments on commit fe8da0b

Please sign in to comment.