summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/vec.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-17 18:29:32 +0100
committerDamjan Marion <dmarion@me.com>2022-03-18 13:16:30 +0000
commit05563c9a904b6bb862ba783dc3519c8415bf9cf5 (patch)
tree6243fbfe79969288ad233a45433f74fec75edb08 /src/vppinfra/vec.h
parenta4a28f04cb887ee690ccc9f563d06bf74fe18faf (diff)
vppinfra: deprecate vec_free_h()
vec_free() does the work Type: refactor Change-Id: I8a97607c3b2f58d116863642b32b55525dc15d88 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/vec.h')
-rw-r--r--src/vppinfra/vec.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/vppinfra/vec.h b/src/vppinfra/vec.h
index e8eb586fca9..3f50bd25625 100644
--- a/src/vppinfra/vec.h
+++ b/src/vppinfra/vec.h
@@ -373,13 +373,11 @@ do { \
*/
#define vec_new_aligned(T,N,A) vec_new_ha(T,N,0,A)
-/** \brief Free vector's memory (general version)
-
+/** \brief Free vector's memory (no header).
@param V pointer to a vector
- @param H size of header in bytes
@return V (value-result parameter, V=0)
*/
-#define vec_free_h(V, H) \
+#define vec_free(V) \
do \
{ \
if (V) \
@@ -390,12 +388,6 @@ do { \
} \
while (0)
-/** \brief Free vector's memory (no header).
- @param V pointer to a vector
- @return V (value-result parameter, V=0)
-*/
-#define vec_free(V) vec_free_h(V,0)
-
void vec_free_not_inline (void *v);
/**\brief Free vector user header (syntactic sugar)