48 pwl->entries[
i].value.building =
NULL;
68 return !
pwl ||
pwl->length == 0;
96 *prod =
pwl->entries[idx];
132 for (
i = idx;
i <
pwl->length - 1;
i++) {
133 pwl->entries[
i] =
pwl->entries[
i + 1];
138 pwl->entries[
pwl->length - 1].value.building =
NULL;
180 pwl->entries[
i + 1] =
pwl->entries[
i];
183 pwl->entries[idx] = *prod;
#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)