summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-11-10 09:07:27 +0000
committerXuefer <xuefer@gmail.com>2014-11-10 09:07:27 +0000
commit6c397c70ecd8a7a4e67dd347614ee4571c2830fd (patch)
tree4c7f236e4fbd38e9a1bd24897b53022de558c43b /util
parentcaa8966009576da40eebb8b511344ec838411067 (diff)
downloadxcache-6c397c70ecd8a7a4e67dd347614ee4571c2830fd.tar.gz
xcache-6c397c70ecd8a7a4e67dd347614ee4571c2830fd.zip
support for autoload in xcache_get
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1560 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'util')
-rw-r--r--util/xc_vector.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/xc_vector.h b/util/xc_vector.h
index bba5d5f..5792eb2 100644
--- a/util/xc_vector.h
+++ b/util/xc_vector.h
@@ -48,6 +48,7 @@ static inline void xc_vector_destroy_impl(xc_vector_t *vector TSRMLS_DC)
}
#define xc_vector_destroy(vector) xc_vector_destroy_impl(vector TSRMLS_CC)
+#define xc_vector_clear(vector) do { (vector)->size = 0; } while (0)
#define xc_vector_size(vector) ((vector)->size)
#define xc_vector_initialized(vector) ((vector)->data_size != 0)