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 7 years ago
parent
commit
0f9c2dafcf
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      processor/hashtable.m4

+ 3
- 1
processor/hashtable.m4 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')) */


Loading…
Cancel
Save