equal
deleted
inserted
replaced
34 /* We don't use FOR_ALL here, because FOR_ALL skips invalid items. |
34 /* We don't use FOR_ALL here, because FOR_ALL skips invalid items. |
35 * TODO - This is just a temporary stage, this will be removed. */ |
35 * TODO - This is just a temporary stage, this will be removed. */ |
36 for (wp = GetWaypoint(start_item); wp != NULL; wp = (wp->index + 1U < GetWaypointPoolSize()) ? GetWaypoint(wp->index + 1U) : NULL) wp->index = start_item++; |
36 for (wp = GetWaypoint(start_item); wp != NULL; wp = (wp->index + 1U < GetWaypointPoolSize()) ? GetWaypoint(wp->index + 1U) : NULL) wp->index = start_item++; |
37 } |
37 } |
38 |
38 |
39 DEFINE_POOL(Waypoint, Waypoint, WaypointPoolNewBlock, NULL) |
39 DEFINE_OLD_POOL(Waypoint, Waypoint, WaypointPoolNewBlock, NULL) |
40 |
40 |
41 /* Create a new waypoint */ |
41 /* Create a new waypoint */ |
42 static Waypoint* AllocateWaypoint(void) |
42 static Waypoint* AllocateWaypoint(void) |
43 { |
43 { |
44 Waypoint *wp; |
44 Waypoint *wp; |