void update_bddpaths(unsigned (*new_place) (unsigned node)) { int j; for (j = 0; j < exp_count; j++) bddpaths[j] = new_place(bddpaths[j]); }
/** * @brief * dup_place - duplicate a place structure * * @param[in] pl - the place structure to duplicate * * @return duplicated place structure * */ place * dup_place(place *pl) { place *newpl; if (pl == NULL) return NULL; newpl = new_place(); if (newpl == NULL) return NULL; newpl->pack = pl->pack; newpl->free = pl->free; newpl->scatter = pl->scatter; newpl->vscatter = pl->vscatter; newpl->excl = pl->excl; newpl->exclhost = pl->exclhost; newpl->share = pl->share; newpl->group = string_dup(pl->group); return newpl; }