Changeset 6b33e89 for tests/zombies/hashtable2.cfa
- Timestamp:
- Apr 25, 2025, 7:39:09 AM (6 months ago)
- Branches:
- master
- Children:
- 65bd3c2
- Parents:
- b195498
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/zombies/hashtable2.cfa
rb195498 r6b33e89 149 149 dlist(request_in_ht_by_src, request) & bucket = buckets[ bucket_of(this, k) ]; 150 150 151 for ( request_in_ht_by_src * item = & $tempcv_e2n( bucket`first); item != 0p; item = & $tempcv_e2n((*item)`next) ) {151 for ( request_in_ht_by_src * item = & $tempcv_e2n(first( bucket )); item != 0p; item = & $tempcv_e2n((*item)`next) ) { 152 152 if ( key(*item) == k ) { 153 153 return *item; … … 177 177 dlist(request_in_ht_by_src, request) & bucket = buckets[ bucket_of(this, k) ]; 178 178 179 for ( request_in_ht_by_src * item = & $tempcv_e2n( bucket`first); item != 0p; item = & $tempcv_e2n((*item)`next) ) {179 for ( request_in_ht_by_src * item = & $tempcv_e2n(first( bucket )); item != 0p; item = & $tempcv_e2n((*item)`next) ) { 180 180 if ( key(*item) == k ) { 181 181 remove(*item); … … 257 257 258 258 // will re-implement as an actual splice 259 while ( & src_to_ empty`first!= 0p ) {259 while ( & src_to_first( empty ) != 0p ) { 260 260 insert_last( snk_to_fill_at_last, pop_first( src_to_empty ) ); 261 261 } … … 319 319 320 320 // fill new table with old items 321 while ( & items`first!= 0p ) {321 while ( &first( items ) != 0p ) { 322 322 put( this, pop_first( items ) ); 323 323 }
Note:
See TracChangeset
for help on using the changeset viewer.