Ignore:
Timestamp:
2006-09-24T10:02:43+02:00 (9 years ago)
Author:
moo
Message:

fix #36, wrong inheriting static class variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/hashtable.m4

    r58 r196  
    1 dnl DEF_HASH_TABLE_FUNC(1:name, 2:datatype [, 3:dataname])
     1dnl DEF_HASH_TABLE_FUNC(1:name, 2:datatype [, 3:dataname] [, 4:check_function])
    22define(`DEF_HASH_TABLE_FUNC', `
    33    DEF_STRUCT_P_FUNC(`HashTable', `$1', `
     
    9494
    9595        for (b = src->pListHead; b != NULL; b = b->pListNext) {
     96            ifelse(`$4', `', `', `
     97                pushdef(`BUCKET', `b')
     98                if ($4 == ZEND_HASH_APPLY_REMOVE) {
     99                    IFCOPY(`dst->nNumOfElements --;')
     100                    continue;
     101                }
     102                popdef(`BUCKET')
     103          ')
     104         
    96105            IFCALCCOPY(`bucketsize = BUCKET_SIZE(b);')
    97106            ALLOC(pnew, char, bucketsize, , Bucket)
Note: See TracChangeset for help on using the changeset viewer.