68 return !pwl || pwl->
length == 0;
90 if (idx < 0 || pwl->length <= idx) {
91 prod->
kind = VUT_NONE;
127 if (idx < 0 || pwl->length <= idx) {
132 for (i = idx; i < pwl->
length - 1; i++) {
155 pwl->
entries[next_index] = *prod;
172 if (idx < 0 || idx > pwl->
length) {
179 for (i = new_len - 2; i >= idx; i--) {
201 for (i = 0; i < wlist1->
length; i++) {
#define fc_assert_ret_val(condition, val)
bool are_universals_equal(const struct universal *psource1, const struct universal *psource2)
struct universal entries[MAX_LEN_WORKLIST]
const struct impr_type * building
void worklist_advance(struct worklist *pwl)
bool worklist_peek(const struct worklist *pwl, struct universal *prod)
void worklist_copy(struct worklist *dst, const struct worklist *src)
void worklist_init(struct worklist *pwl)
bool worklist_peek_ith(const struct worklist *pwl, struct universal *prod, int idx)
bool worklist_is_empty(const struct worklist *pwl)
bool worklist_append(struct worklist *pwl, const struct universal *prod)
bool worklist_insert(struct worklist *pwl, const struct universal *prod, int idx)
void worklist_remove(struct worklist *pwl, int idx)
bool are_worklists_equal(const struct worklist *wlist1, const struct worklist *wlist2)
int worklist_length(const struct worklist *pwl)