c6ce277e36a537437a04146c8fa7adebb40428ff chmalee Wed May 15 12:10:42 2024 -0700 Libify some searching code so checkHgFindSpec can use it. Make checkHgFindSpec use the same code path as hgSearch so it can correctly test the search correctly, refs #33731 diff --git src/hg/hgVai/hgVai.c src/hg/hgVai/hgVai.c index 7e2b927..99ed8d8 100644 --- src/hg/hgVai/hgVai.c +++ src/hg/hgVai/hgVai.c @@ -2996,31 +2996,31 @@ if (doHtml) webEnd(); else if (! isCommandLine) textOutClose(&compressPipeline, NULL); } struct hgPositions *lookupPosition(struct dyString *dyWarn) /* Look up position (aka range) if need be. Return a container of matching tables and positions. * Warnings/errors are appended to dyWarn. */ { char *range = windowsToAscii(cloneString(cartUsualString(cart, hgvaRange, ""))); range = trimSpaces(range); if (isEmpty(range)) range = hDefaultPos(database); -struct hgPositions *hgp = hgFindSearch(cart, &range, NULL, NULL, NULL, cgiScriptName(), dyWarn); +struct hgPositions *hgp = hgFindSearch(cart, &range, NULL, NULL, NULL, cgiScriptName(), dyWarn, NULL); cartSetString(cart, hgvaRange, range); return hgp; } int main(int argc, char *argv[]) /* Process command line. */ { long enteredMainTime = clock1000(); if (hIsPrivateHost()) pushCarefulMemHandler(LIMIT_2or6GB); cgiSpoof(&argc, argv); boolean isCommandLine = (cgiOptionalString("cgiSpoof") != NULL); if (!isCommandLine) htmlPushEarlyHandlers(); /* Make errors legible during initialization. */