d40_first_active_get
while ((d40d = d40_first_active_get(d40c))) {
d40d = d40_first_active_get(d40c);