Lines Matching refs:pRet

44880   Wal *pRet;                      /* Object to allocate and return */
44900 pRet = (Wal*)sqlite3MallocZero(sizeof(Wal) + pVfs->szOsFile);
44901 if( !pRet ){
44905 pRet->pVfs = pVfs;
44906 pRet->pWalFd = (sqlite3_file *)&pRet[1];
44907 pRet->pDbFd = pDbFd;
44908 pRet->readLock = -1;
44909 pRet->mxWalSize = mxWalSize;
44910 pRet->zWalName = zWalName;
44911 pRet->exclusiveMode = (bNoShm ? WAL_HEAPMEMORY_MODE: WAL_NORMAL_MODE);
44915 rc = sqlite3OsOpen(pVfs, zWalName, pRet->pWalFd, flags, &flags);
44917 pRet->readOnly = WAL_RDONLY;
44921 walIndexClose(pRet, 0);
44922 sqlite3OsClose(pRet->pWalFd);
44923 sqlite3_free(pRet);
44925 *ppWal = pRet;
44926 WALTRACE(("WAL%d: opened\n", pRet));
57854 Op *pRet = 0;
57869 pRet = &aOp[p->iAddr];
57876 if( pRet->p4type==P4_SUBPROGRAM ){
57880 if( p->apSub[j]==pRet->p4.pProgram ) break;
57885 pRet = 0;
57887 p->apSub[p->nSub++] = pRet->p4.pProgram;
57893 return pRet;
60769 sqlite3_value *pRet = sqlite3ValueNew(v->db);
60770 if( pRet ){
60771 sqlite3VdbeMemCopy((Mem *)pRet, pMem);
60772 sqlite3ValueApplyAffinity(pRet, aff, SQLITE_UTF8);
60773 sqlite3VdbeMemStoreType((Mem *)pRet);
60775 return pRet;
79743 Index *pRet = 0; /* Pointer to return */
80185 pRet = pIndex;
80198 return pRet;
91947 CollSeq *pRet;
91949 pRet = multiSelectCollSeq(pParse, p->pPrior, iCol);
91951 pRet = 0;
91954 if( pRet==0 && iCol<p->pEList->nExpr ){
91955 pRet = sqlite3ExprCollSeq(pParse, p->pEList->a[iCol].pExpr);
91957 return pRet;
97416 VTable *pRet = 0;
97433 pRet = pVTable;
97434 p->pVTable = pRet;
97435 pRet->pNext = 0;
97443 assert( !db || pRet );
97444 return pRet;
109210 void *pRet;
109212 pRet = db->pUpdateArg;
109216 return pRet;
109228 void *pRet;
109230 pRet = db->pRollbackArg;
109234 return pRet;
109294 void *pRet;
109296 pRet = db->pWalArg;
109300 return pRet;
114745 Fts3Cursor *pRet;
114754 memcpy(&pRet, sqlite3_value_blob(pVal), sizeof(Fts3Cursor *));
114755 *ppCsr = pRet;
117035 void *pRet = sqlite3_malloc(nByte);
117036 if( pRet ) memset(pRet, 0, nByte);
117037 return pRet;
117064 Fts3Expr *pRet = 0;
117078 pRet = (Fts3Expr *)fts3MallocZero(nByte);
117079 if( !pRet ){
117082 pRet->eType = FTSQUERY_PHRASE;
117083 pRet->pPhrase = (Fts3Phrase *)&pRet[1];
117084 pRet->pPhrase->nToken = 1;
117085 pRet->pPhrase->iColumn = iCol;
117086 pRet->pPhrase->aToken[0].n = nToken;
117087 pRet->pPhrase->aToken[0].z = (char *)&pRet->pPhrase[1];
117088 memcpy(pRet->pPhrase->aToken[0].z, zToken, nToken);
117091 pRet->pPhrase->aToken[0].isPrefix = 1;
117105 *ppExpr = pRet;
117115 void *pRet = sqlite3_realloc(pOrig, nNew);
117116 if( !pRet ){
117119 return pRet;
117274 Fts3Expr *pRet = 0;
117324 pRet = (Fts3Expr *)fts3MallocZero(sizeof(Fts3Expr));
117325 if( !pRet ){
117328 pRet->eType = pKey->eType;
117329 pRet->nNear = nNear;
117330 *ppExpr = pRet;
117483 Fts3Expr *pRet = 0;
117533 assert( pRet && pPrev );
117541 insertBinaryOperator(&pRet, pPrev, pAnd);
117564 if( pRet ){
117569 pRet = p;
117572 insertBinaryOperator(&pRet, pPrev, p);
117584 if( rc==SQLITE_DONE && pRet && isRequirePhrase ){
117591 if( !pRet ){
117598 pIter->pLeft = pRet;
117599 pRet = pNotBranch;
117607 sqlite3Fts3ExprFree(pRet);
117609 pRet = 0;
117611 *ppExpr = pRet;
119159 Tcl_Obj *pRet;
119182 pRet = Tcl_NewObj();
119183 Tcl_IncrRefCount(pRet);
119197 Tcl_ListObjAppendElement(0, pRet, Tcl_NewIntObj(iPos));
119198 Tcl_ListObjAppendElement(0, pRet, Tcl_NewStringObj(zToken, nToken));
119201 Tcl_ListObjAppendElement(0, pRet, Tcl_NewStringObj(zToken, nToken));
119217 sqlite3_result_text(context, Tcl_GetString(pRet), -1, SQLITE_TRANSIENT);
119219 Tcl_DecrRefCount(pRet);
122654 char *pRet;
122665 pRet = (char *)sqlite3_malloc(p->pList->nData);
122666 if( !pRet ) return SQLITE_NOMEM;
122670 *ppData = pRet;
122672 memcpy(pRet, &p->pList->aData[nSkip], *pnData);