Lines Matching refs:orders
479 OrderAndOffset *orders =(OrderAndOffset *)malloc(sizeof(OrderAndOffset) * maxSize); in getOrders() local
490 memcpy(temp, orders, size * sizeof(OrderAndOffset)); in getOrders()
491 free(orders); in getOrders()
492 orders = temp; in getOrders()
496 orders[size].order = order; in getOrders()
497 orders[size].offset = offset; in getOrders()
507 memcpy(temp, orders, size * sizeof(OrderAndOffset)); in getOrders()
508 free(orders); in getOrders()
509 orders = temp; in getOrders()
515 return orders; in getOrders()
526 OrderAndOffset *orders = getOrders(iter, &orderLength); in backAndForth() local
541 if (o != orders[idx].order) { in backAndForth()
545 while (idx > 0 && orders[-- idx].order == 0) { in backAndForth()
549 if (o != orders[idx].order) { in backAndForth()
551 orders[idx].order, o); in backAndForth()
558 if (offset != orders[idx].offset) { in backAndForth()
560 orders[idx].offset, offset); in backAndForth()
567 while (idx != 0 && orders[idx - 1].order == 0) { in backAndForth()
591 free(orders); in backAndForth()