Browse Source

adds fix pointer for hash table

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1393 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 8 years ago
parent
commit
0f9c2dafcf
  1. 4
      processor/hashtable.m4

4
processor/hashtable.m4

@ -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…
Cancel
Save