98e34d21f00b90814efdb0a1a032b0cd0525f59c braney Sat Feb 15 13:49:45 2025 -0800 add cart rewrite for the introduction of spliceImpactSuper diff --git src/hg/cgilib/cartRewrite.c src/hg/cgilib/cartRewrite.c index 3ab4960d207..a6a3d1110a7 100644 --- src/hg/cgilib/cartRewrite.c +++ src/hg/cgilib/cartRewrite.c @@ -4,46 +4,48 @@ /* Copyright (C) 2021 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "cart.h" #include "hgConfig.h" void cartEdit0(struct cart *cart); void cartEdit1(struct cart *cart); void cartEdit2(struct cart *cart); void cartEdit3(struct cart *cart); void cartEdit4(struct cart *cart); void cartEdit5(struct cart *cart); void cartEdit6(struct cart *cart); +void cartEdit7(struct cart *cart); struct cartRewrite { void (*func)(struct cart *cart); }; // Here's the list of cart rewrite functions static struct cartRewrite cartRewrites[] = { { cartEdit0}, { cartEdit1}, { cartEdit2}, { cartEdit3}, { cartEdit4}, { cartEdit5}, { cartEdit6}, +{ cartEdit7}, }; void cartRewrite(struct cart *cart, unsigned trackDbCartVersion, unsigned cartVersion) /* Rewrite the cart to update it to expectations of trackDb. */ { if (sameString(cfgOptionDefault("cartVersion", "on"), "off")) return; // call the rewrite functions to bring us up to the trackDb cart version for(; cartVersion < trackDbCartVersion; cartVersion++) { // if we don't have a rewrite for this increment, bail out // with a warning in the error_log if (cartVersion >= ArraySize(cartRewrites)) {