mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Revert whitespace fixes to third_party (#501)
This commit is contained in:
parent
d4000bb8f7
commit
9de3d8f1e6
365 changed files with 39190 additions and 39211 deletions
30
third_party/sqlite3/dbstat.c
vendored
30
third_party/sqlite3/dbstat.c
vendored
|
@ -29,22 +29,22 @@
|
|||
|
||||
/*
|
||||
** Page paths:
|
||||
**
|
||||
** The value of the 'path' column describes the path taken from the
|
||||
** root-node of the b-tree structure to each page. The value of the
|
||||
**
|
||||
** The value of the 'path' column describes the path taken from the
|
||||
** root-node of the b-tree structure to each page. The value of the
|
||||
** root-node path is '/'.
|
||||
**
|
||||
** The value of the path for the left-most child page of the root of
|
||||
** a b-tree is '/000/'. (Btrees store content ordered from left to right
|
||||
** so the pages to the left have smaller keys than the pages to the right.)
|
||||
** The next to left-most child of the root page is
|
||||
** '/001', and so on, each sibling page identified by a 3-digit hex
|
||||
** '/001', and so on, each sibling page identified by a 3-digit hex
|
||||
** value. The children of the 451st left-most sibling have paths such
|
||||
** as '/1c2/000/, '/1c2/001/' etc.
|
||||
**
|
||||
** Overflow pages are specified by appending a '+' character and a
|
||||
** Overflow pages are specified by appending a '+' character and a
|
||||
** six-digit hexadecimal value to the path to the cell they are linked
|
||||
** from. For example, the three overflow pages in a chain linked from
|
||||
** from. For example, the three overflow pages in a chain linked from
|
||||
** the left-most cell of the 450th child of the root page are identified
|
||||
** by the paths:
|
||||
**
|
||||
|
@ -58,7 +58,7 @@
|
|||
**
|
||||
** '/1c2/000/' // Left-most child of 451st child of root
|
||||
*/
|
||||
static const char zDbstatSchema[] =
|
||||
static const char zDbstatSchema[] =
|
||||
"CREATE TABLE x("
|
||||
" name TEXT," /* 0 Name of table or index */
|
||||
" path TEXT," /* 1 Path to page from root (NULL for agg) */
|
||||
|
@ -253,8 +253,8 @@ static int statBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
|
|||
}
|
||||
pIdxInfo->estimatedCost = 1.0;
|
||||
|
||||
/* Records are always returned in ascending order of (name, path).
|
||||
** If this will satisfy the client, set the orderByConsumed flag so that
|
||||
/* Records are always returned in ascending order of (name, path).
|
||||
** If this will satisfy the client, set the orderByConsumed flag so that
|
||||
** SQLite does not do an external sort.
|
||||
*/
|
||||
if( ( pIdxInfo->nOrderBy==1
|
||||
|
@ -360,7 +360,7 @@ static int getLocalPayload(
|
|||
int nLocal;
|
||||
int nMinLocal;
|
||||
int nMaxLocal;
|
||||
|
||||
|
||||
if( flags==0x0D ){ /* Table leaf node */
|
||||
nMinLocal = (nUsable - 12) * 32 / 255 - 23;
|
||||
nMaxLocal = nUsable - 35;
|
||||
|
@ -471,7 +471,7 @@ static int statDecodePage(Btree *pBt, StatPage *p){
|
|||
if( rc!=SQLITE_OK ){
|
||||
assert( pPg==0 );
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
pCell->aOvfl[j] = sqlite3Get4byte(sqlite3PagerGetData(pPg));
|
||||
sqlite3PagerUnref(pPg);
|
||||
}
|
||||
|
@ -566,7 +566,7 @@ statNextRestart:
|
|||
while( pCell->iOvfl<pCell->nOvfl ){
|
||||
int nUsable, iOvfl;
|
||||
sqlite3BtreeEnter(pBt);
|
||||
nUsable = sqlite3BtreeGetPageSize(pBt) -
|
||||
nUsable = sqlite3BtreeGetPageSize(pBt) -
|
||||
sqlite3BtreeGetReserveNoMutex(pBt);
|
||||
sqlite3BtreeLeave(pBt);
|
||||
pCsr->nPage++;
|
||||
|
@ -686,7 +686,7 @@ static int statEof(sqlite3_vtab_cursor *pCursor){
|
|||
** meaning of the bits in idxNum.
|
||||
*/
|
||||
static int statFilter(
|
||||
sqlite3_vtab_cursor *pCursor,
|
||||
sqlite3_vtab_cursor *pCursor,
|
||||
int idxNum, const char *idxStr,
|
||||
int argc, sqlite3_value **argv
|
||||
){
|
||||
|
@ -752,8 +752,8 @@ static int statFilter(
|
|||
}
|
||||
|
||||
static int statColumn(
|
||||
sqlite3_vtab_cursor *pCursor,
|
||||
sqlite3_context *ctx,
|
||||
sqlite3_vtab_cursor *pCursor,
|
||||
sqlite3_context *ctx,
|
||||
int i
|
||||
){
|
||||
StatCursor *pCsr = (StatCursor *)pCursor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue