Lines Matching refs:pTS
119132 static int fts3TermSelectFinishMerge(Fts3Table *p, TermSelect *pTS){
119140 for(i=0; i<SizeofArray(pTS->aaOutput); i++){
119141 if( pTS->aaOutput[i] ){
119143 aOut = pTS->aaOutput[i];
119144 nOut = pTS->anOutput[i];
119145 pTS->aaOutput[i] = 0;
119151 pTS->aaOutput[i], pTS->anOutput[i], aOut, nOut, &aNew, &nNew
119158 sqlite3_free(pTS->aaOutput[i]);
119160 pTS->aaOutput[i] = 0;
119167 pTS->aaOutput[0] = aOut;
119168 pTS->anOutput[0] = nOut;
119188 TermSelect *pTS, /* TermSelect object to merge into */
119192 if( pTS->aaOutput[0]==0 ){
119195 pTS->aaOutput[0] = sqlite3_malloc(nDoclist);
119196 pTS->anOutput[0] = nDoclist;
119197 if( pTS->aaOutput[0] ){
119198 memcpy(pTS->aaOutput[0], aDoclist, nDoclist);
119207 for(iOut=0; iOut<SizeofArray(pTS->aaOutput); iOut++){
119208 if( pTS->aaOutput[iOut]==0 ){
119210 pTS->aaOutput[iOut] = aMerge;
119211 pTS->anOutput[iOut] = nMerge;
119218 pTS->aaOutput[iOut], pTS->anOutput[iOut], &aNew, &nNew
119226 sqlite3_free(pTS->aaOutput[iOut]);
119227 pTS->aaOutput[iOut] = 0;
119231 if( (iOut+1)==SizeofArray(pTS->aaOutput) ){
119232 pTS->aaOutput[iOut] = aMerge;
119233 pTS->anOutput[iOut] = nMerge;