Lines Matching refs:orders
484 OrderAndOffset *orders =(OrderAndOffset *)malloc(sizeof(OrderAndOffset) * maxSize); in getOrders() local
495 memcpy(temp, orders, size * sizeof(OrderAndOffset)); in getOrders()
496 free(orders); in getOrders()
497 orders = temp; in getOrders()
501 orders[size].order = order; in getOrders()
502 orders[size].offset = offset; in getOrders()
512 memcpy(temp, orders, size * sizeof(OrderAndOffset)); in getOrders()
513 free(orders); in getOrders()
514 orders = temp; in getOrders()
520 return orders; in getOrders()
531 OrderAndOffset *orders = getOrders(iter, &orderLength); in backAndForth() local
546 if (o != orders[idx].order) { in backAndForth()
550 while (idx > 0 && orders[-- idx].order == 0) { in backAndForth()
554 if (o != orders[idx].order) { in backAndForth()
556 orders[idx].order, o); in backAndForth()
563 if (offset != orders[idx].offset) { in backAndForth()
565 orders[idx].offset, offset); in backAndForth()
572 while (idx != 0 && orders[idx - 1].order == 0) { in backAndForth()
596 free(orders); in backAndForth()