adds fix pointer for hash table
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1393 c26eb9a1-5813-0410-bd6c-c2e55f420ca73.1
parent
74214f82e4
commit
0f9c2dafcf
|
@ -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')) */
|
||||
|
|
Loading…
Reference in New Issue