summaryrefslogtreecommitdiff
path: root/processor
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-11-11 16:09:55 +0000
committerXuefer <xuefer@gmail.com>2014-11-11 16:09:55 +0000
commit30d56bf2d775fa30aa116778bb342a45b654e0a7 (patch)
treedfd091ef31286582252c587a02f0494895e00d5c /processor
parent4bd347e02b7a47b9ba876eaee2f46e4d9f3b614b (diff)
downloadxcache-30d56bf2d775fa30aa116778bb342a45b654e0a7.tar.gz
xcache-30d56bf2d775fa30aa116778bb342a45b654e0a7.zip
code clean up for vector
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1566 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'processor')
-rw-r--r--processor/foot.m42
-rw-r--r--processor/var-helper.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/processor/foot.m4 b/processor/foot.m4
index 9924be0..69529a8 100644
--- a/processor/foot.m4
+++ b/processor/foot.m4
@@ -12,7 +12,7 @@ EXPORTED_FUNCTION(`$1 *xc_processor_store_$1(const xc_processor_storage_t *stora
processor.handle_reference = 1;
processor.relocatediff = storage->relocatediff;
- IFAUTOCHECK(`xc_vector_init(unsigned long, &processor.allocsizes, 0);')
+ IFAUTOCHECK(`xc_vector_init(unsigned long, &processor.allocsizes);')
/* calc size */ {
zend_hash_init(&processor.strings, 0, NULL, NULL, 0);
diff --git a/processor/var-helper.h b/processor/var-helper.h
index 0ba599a..d2a01c8 100644
--- a/processor/var-helper.h
+++ b/processor/var-helper.h
@@ -4,7 +4,7 @@ static void xc_var_collect_object(xc_processor_t *processor, zend_object_handle
size_t next_index;
if (!xc_vector_initialized(&processor->objects)) {
- xc_vector_init(zend_object, &processor->objects, 0);
+ xc_vector_init(zend_object, &processor->objects);
zend_hash_init(&processor->handle_to_index, 0, NULL, NULL, 0);
}
@@ -40,7 +40,7 @@ static void xc_var_collect_class(xc_processor_t *processor, zend_class_entry *ce
size_t next_index;
if (!xc_vector_initialized(&processor->class_names)) {
- xc_vector_init(xc_constant_string_t, &processor->class_names, 0);
+ xc_vector_init(xc_constant_string_t, &processor->class_names);
zend_hash_init(&processor->class_name_to_index, 0, NULL, NULL, 0);
}