Lines Matching refs:cur
448 stbrp_node *node, *cur;
467 // let 'cur' point to the remaining nodes needing to be
470 cur = *res.prev_link;
471 if (cur->x < res.x) {
473 stbrp_node *next = cur->next;
474 cur->next = node;
475 cur = next;
480 // from here, traverse cur and free the nodes, until we get to one
482 while (cur->next && cur->next->x <= res.x + width) {
483 stbrp_node *next = cur->next;
485 cur->next = context->free_head;
486 context->free_head = cur;
487 cur = next;
491 node->next = cur;
493 if (cur->x < res.x + width)
494 cur->x = (stbrp_coord) (res.x + width);
497 cur = context->active_head;
498 while (cur->x < context->width) {
499 STBRP_ASSERT(cur->x < cur->next->x);
500 cur = cur->next;
502 STBRP_ASSERT(cur->next == NULL);
506 cur = context->active_head;
507 while (cur) {
508 cur = cur->next;
511 cur = context->free_head;
512 while (cur) {
513 cur = cur->next;