Ignore:
Timestamp:
2013-11-13T06:01:22+01:00 (19 months ago)
Author:
moo
Message:

relocate: fix ifrelocate()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/hashtable.m4

    r1472 r1474  
    4848    dnl }}}
    4949    Bucket *srcBucket;
    50     IFRELOCATE(`Bucket *next;')
     50    IFCOPY(`Bucket *first = NULL, *last = NULL;')
    5151    IFRELOCATE(`Bucket *dstBucket = NULL;')
    52     IFCOPY(`Bucket *dstBucket = NULL, *first = NULL, *last = NULL;')
    53     dnl only used for copy
    54     IFCOPY(`uint n;')
     52    IFRESTORE(`Bucket *dstBucket = NULL;')
    5553    IFRELOCATE(`uint n;')
     54    IFRESTORE(`uint n;')
    5655    IFCALCCOPY(`size_t bucketSize;')
    5756
     
    148147        for (n = 0; n < SRC(`nTableSize'); ++n) {
    149148            if (SRC(`arBuckets[n]')) {
    150                 next = PTR_FROM_VIRTUAL_EX(`Bucket', `DST(`arBuckets[n]')');
     149                Bucket *next = PTR_FROM_VIRTUAL_EX(`Bucket', `DST(`arBuckets[n]')');
    151150                do {
    152151                        dstBucket = next;
Note: See TracChangeset for help on using the changeset viewer.