RE: iteration pools and 'continue'
From: Sander Striker <striker_at_apache.org>
Date: 2003-05-13 21:22:00 CEST
> From: Branko Cibej [mailto:brane@xbc.nu]
>> Anyone object to making this the suggested convention in HACKING?
All those loops probably look like:
subpool = svn_pool_create(pool);
while (condition)
if (some_other_condition)
...
svn_pool_clear(subpool);
svn_pool_destroy(subpool);
Changing that to a for loop would fix the problem:
subpool = svn_pool_create(pool);
for (; condition; svn_pool_clear(subpool))
if (some_other_condition)
...
svn_pool_destroy(subpool);
Very obvious, but I'm pointing it out just in case.
Sander
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.