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/vec | |
parent | 32b07625464c92dcb32e2d5c40134ada0497d717 (diff) | |
download | abc-d4399dbf929b9c273b187580566ab41ac9ab955d.tar.gz abc-d4399dbf929b9c273b187580566ab41ac9ab955d.tar.bz2 abc-d4399dbf929b9c273b187580566ab41ac9ab955d.zip |
Misc changes.
Diffstat (limited to 'src/misc/vec')
-rw-r--r-- | src/misc/vec/vecWrd.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 ); |