Lines Matching refs:orders
481 OrderAndOffset *orders =(OrderAndOffset *)malloc(sizeof(OrderAndOffset) * maxSize); in getOrders() local
492 memcpy(temp, orders, size * sizeof(OrderAndOffset)); in getOrders()
493 free(orders); in getOrders()
494 orders = temp; in getOrders()
498 orders[size].order = order; in getOrders()
499 orders[size].offset = offset; in getOrders()
509 memcpy(temp, orders, size * sizeof(OrderAndOffset)); in getOrders()
510 free(orders); in getOrders()
511 orders = temp; in getOrders()
517 return orders; in getOrders()
528 OrderAndOffset *orders = getOrders(iter, &orderLength); in backAndForth() local
543 if (o != orders[idx].order) { in backAndForth()
547 while (idx > 0 && orders[-- idx].order == 0) { in backAndForth()
551 if (o != orders[idx].order) { in backAndForth()
553 orders[idx].order, o); in backAndForth()
560 if (offset != orders[idx].offset) { in backAndForth()
562 orders[idx].offset, offset); in backAndForth()
569 while (idx != 0 && orders[idx - 1].order == 0) { in backAndForth()
593 free(orders); in backAndForth()