comparison src/fns.c @ 5275:5a9aa6c40c9b

Avoid statement-before-declaration problems with strict C89 builds, fns.c src/ChangeLog addition: 2010-09-18 Aidan Kehoe <kehoea@parhasard.net> * fns.c (Freduce): Move statements outside of the braces surrounding the EXTERNAL_LIST_LOOP_3 macro, fixing strict C89 builds. Thank you for the report, Vin!
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 18 Sep 2010 14:54:45 +0100
parents 799742b751c8
children d804e621add0
comparison
equal deleted inserted replaced
5274:ecdd1daab447 5275:5a9aa6c40c9b
5246 { 5246 {
5247 accum = initial_value; 5247 accum = initial_value;
5248 } 5248 }
5249 else if (ending - starting) 5249 else if (ending - starting)
5250 { 5250 {
5251 ii = 0;
5252 EXTERNAL_LIST_LOOP_3 (elt, sequence, tail) 5251 EXTERNAL_LIST_LOOP_3 (elt, sequence, tail)
5253 { 5252 {
5254 /* KEY may amputate the list behind us; make sure what 5253 /* KEY may amputate the list behind us; make sure what
5255 remains to be processed is still reachable. */ 5254 remains to be processed is still reachable. */
5256 tailed = tail; 5255 tailed = tail;
5262 } 5261 }
5263 ++ii; 5262 ++ii;
5264 } 5263 }
5265 } 5264 }
5266 5265
5266 ii = 0;
5267
5267 if (ending - starting) 5268 if (ending - starting)
5268 { 5269 {
5269 ii = 0;
5270
5271 EXTERNAL_LIST_LOOP_3 (elt, sequence, tail) 5270 EXTERNAL_LIST_LOOP_3 (elt, sequence, tail)
5272 { 5271 {
5273 /* KEY or FUNCTION may amputate the list behind us; make 5272 /* KEY or FUNCTION may amputate the list behind us; make
5274 sure what remains to be processed is still 5273 sure what remains to be processed is still
5275 reachable. */ 5274 reachable. */