Lines Matching refs:next
182 stbrp_node * next; member
268 nodes[i].next = &nodes[i + 1]; in stbrp_init_target()
269 nodes[i].next = NULL; in stbrp_init_target()
282 context->extra[0].next = &context->extra[1]; in stbrp_init_target()
285 context->extra[1].next = NULL; in stbrp_init_target()
301 while(node->next->x <= x0) in stbrp__skyline_find_min_y()
304 STBRP_ASSERT(node->next->x > x0); // we ended up handling this in the caller for efficiency in stbrp__skyline_find_min_y()
321 visited_width += node->next->x - x0; in stbrp__skyline_find_min_y()
323 visited_width += node->next->x - node->x; in stbrp__skyline_find_min_y()
327 int under_width = node->next->x - node->x; in stbrp__skyline_find_min_y()
333 node = node->next; in stbrp__skyline_find_min_y()
386 prev = &node->next; in stbrp__skyline_find_best_pos()
387 node = node->next; in stbrp__skyline_find_best_pos()
415 tail = tail->next; in stbrp__skyline_find_best_pos()
421 while(node->next->x <= xpos) { in stbrp__skyline_find_best_pos()
422 prev = &node->next; in stbrp__skyline_find_best_pos()
423 node = node->next; in stbrp__skyline_find_best_pos()
425 STBRP_ASSERT(node->next->x > xpos && node->x <= xpos); in stbrp__skyline_find_best_pos()
438 tail = tail->next; in stbrp__skyline_find_best_pos()
468 context->free_head = node->next; in stbrp__skyline_pack_rectangle()
477 stbrp_node * next = cur->next; in stbrp__skyline_pack_rectangle() local
478 cur->next = node; in stbrp__skyline_pack_rectangle()
479 cur = next; in stbrp__skyline_pack_rectangle()
487 while(cur->next && cur->next->x <= res.x + width) { in stbrp__skyline_pack_rectangle()
488 stbrp_node * next = cur->next; in stbrp__skyline_pack_rectangle() local
490 cur->next = context->free_head; in stbrp__skyline_pack_rectangle()
492 cur = next; in stbrp__skyline_pack_rectangle()
496 node->next = cur; in stbrp__skyline_pack_rectangle()
504 STBRP_ASSERT(cur->x < cur->next->x); in stbrp__skyline_pack_rectangle()
505 cur = cur->next; in stbrp__skyline_pack_rectangle()
507 STBRP_ASSERT(cur->next == NULL); in stbrp__skyline_pack_rectangle()
513 cur = cur->next; in stbrp__skyline_pack_rectangle()
518 cur = cur->next; in stbrp__skyline_pack_rectangle()