summaryrefslogtreecommitdiffstats
path: root/src/misc/vec
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-12-03 20:35:39 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2014-12-03 20:35:39 -0800
commit705006a64830a4b08bce2310d3c118e47770ad7c (patch)
treea73fb8b5d18d786ccaad055594c6afa7e54d98f0 /src/misc/vec
parente970aa8521002b242deb259690d1cad67367fb11 (diff)
downloadabc-705006a64830a4b08bce2310d3c118e47770ad7c.tar.gz
abc-705006a64830a4b08bce2310d3c118e47770ad7c.tar.bz2
abc-705006a64830a4b08bce2310d3c118e47770ad7c.zip
Changes to the parser.
Diffstat (limited to 'src/misc/vec')
-rw-r--r--src/misc/vec/vecStr.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/misc/vec/vecStr.h b/src/misc/vec/vecStr.h
index f8452bdd..5f04615c 100644
--- a/src/misc/vec/vecStr.h
+++ b/src/misc/vec/vecStr.h
@@ -201,6 +201,18 @@ static inline Vec_Str_t * Vec_StrDupArray( Vec_Str_t * pVec )
SeeAlso []
***********************************************************************/
+static inline void Vec_StrZero( Vec_Str_t * p )
+{
+ p->pArray = NULL;
+ p->nSize = 0;
+ p->nCap = 0;
+}
+static inline void Vec_StrErase( Vec_Str_t * p )
+{
+ ABC_FREE( p->pArray );
+ p->nSize = 0;
+ p->nCap = 0;
+}
static inline void Vec_StrFree( Vec_Str_t * p )
{
ABC_FREE( p->pArray );