diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-05-03 19:54:40 +0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-05-03 19:54:40 +0800 |
commit | d4399dbf929b9c273b187580566ab41ac9ab955d (patch) | |
tree | 4720163b34746ec5db528c5521c22e32784d16cf /src/misc | |
parent | 32b07625464c92dcb32e2d5c40134ada0497d717 (diff) | |
download | abc-d4399dbf929b9c273b187580566ab41ac9ab955d.tar.gz abc-d4399dbf929b9c273b187580566ab41ac9ab955d.tar.bz2 abc-d4399dbf929b9c273b187580566ab41ac9ab955d.zip |
Misc changes.
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/tim/tim.h | 2 | ||||
-rw-r--r-- | src/misc/vec/vecWrd.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/misc/tim/tim.h b/src/misc/tim/tim.h index d921bcc5..9a7667d5 100644 --- a/src/misc/tim/tim.h +++ b/src/misc/tim/tim.h @@ -45,7 +45,7 @@ typedef struct Tim_Man_t_ Tim_Man_t; /// MACRO DEFINITIONS /// //////////////////////////////////////////////////////////////////////// -#define TIM_ETERNITY 10000 +#define TIM_ETERNITY 1000000000 //////////////////////////////////////////////////////////////////////// /// ITERATORS /// diff --git a/src/misc/vec/vecWrd.h b/src/misc/vec/vecWrd.h index 046ecf2a..11414ff7 100644 --- a/src/misc/vec/vecWrd.h +++ b/src/misc/vec/vecWrd.h @@ -251,6 +251,12 @@ static inline Vec_Wrd_t * Vec_WrdDupArray( Vec_Wrd_t * pVec ) SeeAlso [] ***********************************************************************/ +static inline void Vec_WrdErase( Vec_Wrd_t * p ) +{ + ABC_FREE( p->pArray ); + p->nSize = 0; + p->nCap = 0; +} static inline void Vec_WrdFree( Vec_Wrd_t * p ) { ABC_FREE( p->pArray ); |