1
0
Fork 0

adds fix pointer for hash table

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1393 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 2013-09-23 09:52:15 +00:00
parent 74214f82e4
commit 0f9c2dafcf
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,7 @@ define(`DEF_HASH_TABLE_FUNC', `
IFCOPY(`DST(`pInternalPointer') = NULL; /* Used for element traversal */') DONE(pInternalPointer)
IFCOPY(`DST(`pListHead') = NULL;') DONE(pListHead)
#ifdef ZEND_ENGINE_2_4
if (SRC(`nTableMask')) {
if (SRC(`nTableMask')) {
#endif
CALLOC(`DST(`arBuckets')', Bucket*, SRC(`nTableSize'))
DONE(arBuckets)
@ -160,6 +160,8 @@ define(`DEF_HASH_TABLE_FUNC', `
')
}
')
dnl TODO: fix pointer on arBuckets[n]
FIXPOINTER(Bucket, arBuckets)
#ifdef ZEND_ENGINE_2_4
}
else { /* if (SRC(`nTableMask')) */