Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MarkAllButFirstSubBags for T_BIPART #1003

Merged
merged 3 commits into from
Mar 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/pkg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,6 @@ void TBlocksObjLoadFunc(Obj o) {
ADDR_OBJ(o)[0] = reinterpret_cast<Obj>(blocks);
}

void TBipartObjMarkSubBags(Obj o) {
if (ADDR_OBJ(o)[1] != NULL) {
MarkBag(ADDR_OBJ(o)[1]);
}
if (ADDR_OBJ(o)[2] != NULL) {
MarkBag(ADDR_OBJ(o)[2]);
}
}

// Filters for IS_BIPART, IS_BLOCKS

Obj IsBipartFilt;
Expand Down Expand Up @@ -512,7 +503,7 @@ static Int InitKernel(StructInitInfo* module) {
SaveObjFuncs[T_BIPART] = TBipartObjSaveFunc;
LoadObjFuncs[T_BIPART] = TBipartObjLoadFunc;

InitMarkFuncBags(T_BIPART, &TBipartObjMarkSubBags);
InitMarkFuncBags(T_BIPART, &MarkAllButFirstSubBags);
InitFreeFuncBag(T_BIPART, &TBipartObjFreeFunc);

ProdFuncs[T_BIPART][T_BIPART] = BIPART_PROD;
Expand Down
Loading