static void facesSetup() { face = face_construct(flower); face2 = face_construct(flower); if (flower_getFirstFace(flower) == face2) { //switch round, because we have no guarantted order for faces.. Face *face3 = face2; face2 = face; face = face3; } }
void flower_destructFaces(Flower *flower) { Face *face; while ((face = flower_getFirstFace(flower)) != NULL) { face_destruct(face); } }