summaryrefslogtreecommitdiffstats
path: root/src/misc/vec
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-06-22 23:05:02 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-06-22 23:05:02 -0700
commitb288bac6b3567c0eccde1cb3ed1b6f7eff1d6408 (patch)
treedd9db86011e5121f4d2515c0839d5a2d477c459a /src/misc/vec
parentda65e88e3b346bcd70198b980e918ea9f1e11b4e (diff)
downloadabc-b288bac6b3567c0eccde1cb3ed1b6f7eff1d6408.tar.gz
abc-b288bac6b3567c0eccde1cb3ed1b6f7eff1d6408.tar.bz2
abc-b288bac6b3567c0eccde1cb3ed1b6f7eff1d6408.zip
Version abc90807
committer: Baruch Sterin <baruchs@gmail.com>
Diffstat (limited to 'src/misc/vec')
-rw-r--r--src/misc/vec/vecPtr.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/misc/vec/vecPtr.h b/src/misc/vec/vecPtr.h
index 3f958b6f..7b153d90 100644
--- a/src/misc/vec/vecPtr.h
+++ b/src/misc/vec/vecPtr.h
@@ -465,6 +465,27 @@ static inline void Vec_PtrClear( Vec_Ptr_t * p )
/**Function*************************************************************
+ Synopsis [Deallocates array of memory pointers.]
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
+static inline void Vec_PtrFreeFree( Vec_Ptr_t * p )
+{
+ void * pTemp;
+ int i;
+ if ( p == NULL ) return;
+ Vec_PtrForEachEntry( p, pTemp, i )
+ ABC_FREE( pTemp );
+ Vec_PtrFree( p );
+}
+
+/**Function*************************************************************
+
Synopsis [Copies the interger array.]
Description []