1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Add the '%ifdef' capability to lemon. Other minor changes. (CVS 1836)

FossilOrigin-Name: 522ff721ccc33c4b89072fed4e451f0df82e8140
This commit is contained in:
drh
2004-07-20 12:45:22 +00:00
parent cf55b7aef7
commit 6d08b4d647
8 changed files with 115 additions and 35 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.176 2004/06/30 08:20:16 danielk1977 Exp $
** $Id: btree.c,v 1.177 2004/07/20 12:45:22 drh Exp $
**
** This file implements a external (disk-based) database using BTrees.
** For a detailed discussion of BTrees, refer to
@@ -410,9 +410,13 @@ static u8 *findCell(MemPage *pPage, int iCell){
static u8 *findOverflowCell(MemPage *pPage, int iCell){
int i;
for(i=pPage->nOverflow-1; i>=0; i--){
if( pPage->aOvfl[i].idx<=iCell ){
if( pPage->aOvfl[i].idx==iCell ){
return pPage->aOvfl[i].pCell;
int k;
struct _OvflCell *pOvfl;
pOvfl = &pPage->aOvfl[i];
k = pOvfl->idx;
if( k<=iCell ){
if( k==iCell ){
return pOvfl->pCell;
}
iCell--;
}