This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
S_hfreeentries: collapse two loops
authorDavid Mitchell <davem@iabyn.com>
Tue, 3 May 2011 15:41:06 +0000 (16:41 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 19 May 2011 13:49:43 +0000 (14:49 +0100)
commit922090f40453dfe5bae918350f2513dc53fa3aba
tree046546d7b3d5e8a3f9a10d3f90ebcf0bd6a2d0c6
parent5f243b5ff09626b3b2ed4569515c4a27a2a18137
S_hfreeentries: collapse two loops

S_hfreeentries() has two nested infinite loops: the inner one
does one sweep through all buckets, freeing all entries in each bucket;
the outer loop repeats the process if new keys have been added in the
meantime.
Collapse these two into a single 'while (keys) {}' loop.
Should be functionally the same, but simpler.
hv.c