Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | 3.3.4 |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
bbce6a40b132dc3a1f8d41f17ff83625 |
User & Date: | rmsimpson 2006-02-11 14:43:38.000 |
Context
2006-02-11
| ||
15:19 | 1.0.26.0 check-in: 5cdbe425f7 user: rmsimpson tags: sourceforge | |
14:43 | 3.3.4 check-in: bbce6a40b1 user: rmsimpson tags: sourceforge | |
2006-02-10
| ||
23:12 | no message check-in: 55b185c3a5 user: rmsimpson tags: sourceforge | |
Changes
Changes to SQLite.Interop/src/alter.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that used to generate VDBE code ** that implements the ALTER TABLE command. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that used to generate VDBE code ** that implements the ALTER TABLE command. ** ** $Id: alter.c,v 1.19 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" #include <ctype.h> /* ** The code in this file only exists if we are not omitting the ** ALTER TABLE logic from the build. |
︙ | ︙ |
Changes to SQLite.Interop/src/analyze.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2005 July 8 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code associated with the ANALYZE command. ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2005 July 8 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code associated with the ANALYZE command. ** ** @(#) $Id: analyze.c,v 1.12 2006/02/11 14:43:38 rmsimpson Exp $ */ #ifndef SQLITE_OMIT_ANALYZE #include "sqliteInt.h" /* ** This routine generates code that opens the sqlite_stat1 table on cursor ** iStatCur. |
︙ | ︙ |
Changes to SQLite.Interop/src/attach.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code used to implement the ATTACH and DETACH commands. ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code used to implement the ATTACH and DETACH commands. ** ** $Id: attach.c,v 1.18 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Resolve an expression that was part of an ATTACH or DETACH statement. This ** is slightly different from resolving a normal SQL expression, because simple ** identifiers are treated as strings, not possible column names or aliases. |
︙ | ︙ |
Changes to SQLite.Interop/src/auth.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** This file contains code used to implement the sqlite3_set_authorizer() ** API. This facility is an optional feature of the library. Embedded ** systems that do not need this facility may omit it by recompiling ** the library with -DSQLITE_OMIT_AUTHORIZATION=1 ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** This file contains code used to implement the sqlite3_set_authorizer() ** API. This facility is an optional feature of the library. Embedded ** systems that do not need this facility may omit it by recompiling ** the library with -DSQLITE_OMIT_AUTHORIZATION=1 ** ** $Id: auth.c,v 1.18 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** All of the code in this file may be omitted by defining a single ** macro. */ |
︙ | ︙ |
Changes to SQLite.Interop/src/btree.c.
1 2 3 4 5 6 7 8 9 10 11 | /* ** 2004 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | /* ** 2004 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** $Id: btree.c,v 1.21 2006/02/11 14:43:38 rmsimpson Exp $ ** ** This file implements a external (disk-based) database using BTrees. ** For a detailed discussion of BTrees, refer to ** ** Donald E. Knuth, THE ART OF COMPUTER PROGRAMMING, Volume 3: ** "Sorting And Searching", pages 473-480. Addison-Wesley ** Publishing Company, Reading, Massachusetts. |
︙ | ︙ | |||
1799 1800 1801 1802 1803 1804 1805 | ** how well the database resists damage due to OS crashes and power ** failures. Level 1 is the same as asynchronous (no syncs() occur and ** there is a high probability of damage) Level 2 is the default. There ** is a very low but non-zero probability of damage. Level 3 reduces the ** probability of damage to near zero but with a write performance reduction. */ #ifndef SQLITE_OMIT_PAGER_PRAGMAS | | | | 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 | ** how well the database resists damage due to OS crashes and power ** failures. Level 1 is the same as asynchronous (no syncs() occur and ** there is a high probability of damage) Level 2 is the default. There ** is a very low but non-zero probability of damage. Level 3 reduces the ** probability of damage to near zero but with a write performance reduction. */ #ifndef SQLITE_OMIT_PAGER_PRAGMAS int sqlite3BtreeSetSafetyLevel(Btree *p, int level, int fullSync){ BtShared *pBt = p->pBt; sqlite3pager_set_safety_level(pBt->pPager, level, fullSync); return SQLITE_OK; } #endif /* ** Return TRUE if the given btree is set to safety level 1. In other ** words, return TRUE if no sync() occurs on the disk files. |
︙ | ︙ |
Changes to SQLite.Interop/src/btree.h.
︙ | ︙ | |||
9 10 11 12 13 14 15 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the sqlite B-Tree file ** subsystem. See comments in the source code for a detailed description ** of what each interface routine does. ** | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the sqlite B-Tree file ** subsystem. See comments in the source code for a detailed description ** of what each interface routine does. ** ** @(#) $Id: btree.h,v 1.19 2006/02/11 14:43:38 rmsimpson Exp $ */ #ifndef _BTREE_H_ #define _BTREE_H_ /* TODO: This definition is just included so other modules compile. It ** needs to be revisited. */ |
︙ | ︙ | |||
55 56 57 58 59 60 61 | #define BTREE_OMIT_JOURNAL 1 /* Do not use journal. No argument */ #define BTREE_NO_READLOCK 2 /* Omit readlocks on readonly files */ #define BTREE_MEMORY 4 /* In-memory DB. No argument */ int sqlite3BtreeClose(Btree*); int sqlite3BtreeSetBusyHandler(Btree*,BusyHandler*); int sqlite3BtreeSetCacheSize(Btree*,int); | | | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | #define BTREE_OMIT_JOURNAL 1 /* Do not use journal. No argument */ #define BTREE_NO_READLOCK 2 /* Omit readlocks on readonly files */ #define BTREE_MEMORY 4 /* In-memory DB. No argument */ int sqlite3BtreeClose(Btree*); int sqlite3BtreeSetBusyHandler(Btree*,BusyHandler*); int sqlite3BtreeSetCacheSize(Btree*,int); int sqlite3BtreeSetSafetyLevel(Btree*,int,int); int sqlite3BtreeSyncDisabled(Btree*); int sqlite3BtreeSetPageSize(Btree*,int,int); int sqlite3BtreeGetPageSize(Btree*); int sqlite3BtreeGetReserve(Btree*); int sqlite3BtreeSetAutoVacuum(Btree *, int); int sqlite3BtreeGetAutoVacuum(Btree *); int sqlite3BtreeBeginTrans(Btree*,int); |
︙ | ︙ |
Changes to SQLite.Interop/src/build.c.
︙ | ︙ | |||
18 19 20 21 22 23 24 | ** CREATE INDEX ** DROP INDEX ** creating ID lists ** BEGIN TRANSACTION ** COMMIT ** ROLLBACK ** | | | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ** CREATE INDEX ** DROP INDEX ** creating ID lists ** BEGIN TRANSACTION ** COMMIT ** ROLLBACK ** ** $Id: build.c,v 1.19 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" #include <ctype.h> /* ** This routine is called when a new SQL statement is beginning to ** be parsed. Initialize the pParse structure as needed. |
︙ | ︙ | |||
2358 2359 2360 2361 2362 2363 2364 | sizeof(int)*(nCol+1) + /* Index.aiRowEst */ sizeof(char *)*nCol + /* Index.azColl */ sizeof(u8)*nCol + /* Index.aSortOrder */ nName + 1 + /* Index.zName */ nExtra /* Collation sequence names */ ); if( sqlite3MallocFailed() ) goto exit_create_index; | > | < | | 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 | sizeof(int)*(nCol+1) + /* Index.aiRowEst */ sizeof(char *)*nCol + /* Index.azColl */ sizeof(u8)*nCol + /* Index.aSortOrder */ nName + 1 + /* Index.zName */ nExtra /* Collation sequence names */ ); if( sqlite3MallocFailed() ) goto exit_create_index; pIndex->azColl = (char**)(&pIndex[1]); pIndex->aiColumn = (int *)(&pIndex->azColl[nCol]); pIndex->aiRowEst = (unsigned *)(&pIndex->aiColumn[nCol]); pIndex->aSortOrder = (u8 *)(&pIndex->aiRowEst[nCol+1]); pIndex->zName = (char *)(&pIndex->aSortOrder[nCol]); zExtra = (char *)(&pIndex->zName[nName+1]); strcpy(pIndex->zName, zName); pIndex->pTable = pTab; pIndex->nColumn = pList->nExpr; pIndex->onError = onError; pIndex->autoIndex = pName==0; |
︙ | ︙ |
Changes to SQLite.Interop/src/callback.c.
︙ | ︙ | |||
9 10 11 12 13 14 15 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** ** This file contains functions used to access the internal hash tables ** of user defined functions and collation sequences. ** | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** ** This file contains functions used to access the internal hash tables ** of user defined functions and collation sequences. ** ** $Id: callback.c,v 1.14 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Invoke the 'collation needed' callback to request a collation sequence ** in the database text encoding of name zName, length nName. |
︙ | ︙ |
Changes to SQLite.Interop/src/complete.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** An tokenizer for SQL ** ** This file contains C code that implements the sqlite3_complete() API. ** This code used to be part of the tokenizer.c source file. But by ** separating it out, the code will be automatically omitted from ** static links that do not use it. ** | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ** An tokenizer for SQL ** ** This file contains C code that implements the sqlite3_complete() API. ** This code used to be part of the tokenizer.c source file. But by ** separating it out, the code will be automatically omitted from ** static links that do not use it. ** ** $Id: complete.c,v 1.12 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" #ifndef SQLITE_OMIT_COMPLETE /* ** This is defined in tokenize.c. We just have to import the definition. */ |
︙ | ︙ |
Changes to SQLite.Interop/src/date.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** This file contains the C functions that implement date and time ** functions for SQLite. ** ** There is only one exported symbol in this file - the function ** sqlite3RegisterDateTimeFunctions() found at the bottom of the file. ** All other code has file scope. ** | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ** This file contains the C functions that implement date and time ** functions for SQLite. ** ** There is only one exported symbol in this file - the function ** sqlite3RegisterDateTimeFunctions() found at the bottom of the file. ** All other code has file scope. ** ** $Id: date.c,v 1.20 2006/02/11 14:43:38 rmsimpson Exp $ ** ** NOTES: ** ** SQLite processes all times and dates as Julian Day numbers. The ** dates and times are stored as the number of days since noon ** in Greenwich on November 24, 4714 B.C. according to the Gregorian ** calendar system. |
︙ | ︙ |
Changes to SQLite.Interop/src/delete.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** in order to generate code for DELETE FROM statements. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** in order to generate code for DELETE FROM statements. ** ** $Id: delete.c,v 1.19 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Look up every table that is named in pSrc. If any table is not found, ** add an error message to pParse->zErrMsg and return NULL. If all tables ** are found, return a pointer to the last table. |
︙ | ︙ |
Changes to SQLite.Interop/src/expr.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains routines used for analyzing expressions and ** for generating VDBE code that evaluates expressions in SQLite. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains routines used for analyzing expressions and ** for generating VDBE code that evaluates expressions in SQLite. ** ** $Id: expr.c,v 1.26 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" #include <ctype.h> /* ** Return the 'affinity' of the expression pExpr if any. ** |
︙ | ︙ |
Changes to SQLite.Interop/src/func.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** This file contains the C functions that implement various SQL ** functions of SQLite. ** ** There is only one exported symbol in this file - the function ** sqliteRegisterBuildinFunctions() found at the bottom of the file. ** All other code has file scope. ** | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ** This file contains the C functions that implement various SQL ** functions of SQLite. ** ** There is only one exported symbol in this file - the function ** sqliteRegisterBuildinFunctions() found at the bottom of the file. ** All other code has file scope. ** ** $Id: func.c,v 1.21 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" #include <ctype.h> /* #include <math.h> */ #include <stdlib.h> #include <assert.h> #include "vdbeInt.h" |
︙ | ︙ |
Changes to SQLite.Interop/src/hash.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This is the implementation of generic hash-tables ** used in SQLite. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This is the implementation of generic hash-tables ** used in SQLite. ** ** $Id: hash.c,v 1.18 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" #include <assert.h> /* Turn bulk memory into a hash table object by initializing the ** fields of the Hash structure. ** |
︙ | ︙ |
Changes to SQLite.Interop/src/hash.h.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This is the header file for the generic hash-table implemenation ** used in SQLite. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This is the header file for the generic hash-table implemenation ** used in SQLite. ** ** $Id: hash.h,v 1.18 2006/02/11 14:43:38 rmsimpson Exp $ */ #ifndef _SQLITE_HASH_H_ #define _SQLITE_HASH_H_ /* Forward declarations of structures. */ typedef struct Hash Hash; typedef struct HashElem HashElem; |
︙ | ︙ |
Changes to SQLite.Interop/src/insert.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle INSERT statements in SQLite. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle INSERT statements in SQLite. ** ** $Id: insert.c,v 1.19 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Set P3 of the most recently inserted opcode to a column affinity ** string for index pIdx. A column affinity string has one character ** for each column in the table, according to the affinity of the column: |
︙ | ︙ |
Changes to SQLite.Interop/src/keywordhash.h.
︙ | ︙ | |||
8 9 10 11 12 13 14 | "CASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSS" "CURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCH" "FAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULL" "JOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNION" "UNIQUEUSINGVACUUMVALUESVIEWHERE"; static const unsigned char aHash[127] = { 92, 80, 107, 91, 0, 4, 0, 0, 114, 0, 83, 0, 0, | | | | | | | | | | | | | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | "CASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSS" "CURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCH" "FAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULL" "JOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNION" "UNIQUEUSINGVACUUMVALUESVIEWHERE"; static const unsigned char aHash[127] = { 92, 80, 107, 91, 0, 4, 0, 0, 114, 0, 83, 0, 0, 95, 44, 76, 93, 0, 106, 109, 97, 90, 0, 10, 0, 0, 113, 0, 110, 103, 0, 28, 48, 0, 41, 0, 0, 65, 71, 0, 63, 19, 0, 105, 36, 104, 0, 108, 74, 0, 0, 33, 0, 61, 37, 0, 8, 0, 115, 38, 12, 0, 77, 40, 25, 66, 0, 0, 31, 81, 53, 30, 50, 20, 88, 0, 34, 0, 75, 26, 0, 72, 0, 0, 0, 64, 47, 67, 22, 87, 29, 69, 86, 0, 1, 0, 9, 101, 58, 18, 0, 112, 82, 99, 54, 6, 85, 0, 0, 49, 94, 0, 102, 0, 70, 0, 0, 15, 0, 116, 51, 56, 0, 2, 55, 0, 111, }; static const unsigned char aNext[116] = { 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 5, 13, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 0, 16, 0, 23, 52, 0, 0, 0, 0, 45, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 73, 42, 0, 24, 60, 21, 0, 79, 0, 0, 68, 0, 0, 84, 46, 0, 0, 0, 0, 0, 0, 0, 0, 39, 96, 98, 0, 0, 100, 0, 32, 0, 14, 27, 78, 0, 57, 89, 0, 35, 0, 62, 0, }; static const unsigned char aLen[116] = { 5, 5, 4, 4, 9, 2, 3, 8, 2, 6, 4, 3, 7, 11, 2, 7, 5, 5, 4, 5, 3, 5, 10, 6, 4, 6, 7, 6, 7, 9, 3, 7, 9, 6, 9, 3, 10, 6, 6, 4, 6, 3, 7, 6, 7, 5, 13, 2, 2, 5, 5, 6, 7, 3, 7, 4, 4, 2, 7, 3, 8, 6, 4, 4, 7, 6, 6, 8, 10, 9, 6, 5, 12, 12, 17, 4, 4, 6, 8, 2, 4, 6, 5, 4, 5, 4, 4, 5, 6, 2, 9, 6, 7, 4, 2, 6, 3, 6, 4, 5, 7, 5, 8, 7, 5, 5, 8, 3, 4, 5, 6, 5, 6, 6, 4, 5, }; static const unsigned short int aOffset[116] = { 0, 4, 7, 10, 10, 14, 19, 21, 26, 27, 32, 34, 36, 42, 51, 52, 57, 61, 65, 67, 71, 74, 78, 86, 91, 94, 99, 105, 108, 113, 118, 122, 128, 136, 141, 150, 152, 162, 167, 172, 175, 177, 177, 181, 185, 187, 192, 194, 196, 205, 208, 212, |
︙ | ︙ | |||
60 61 62 63 64 65 66 | TK_OR, TK_ADD, TK_DATABASE, TK_AS, TK_SELECT, TK_THEN, TK_END, TK_DEFAULT, TK_TRANSACTION,TK_ON, TK_JOIN_KW, TK_ALTER, TK_RAISE, TK_EACH, TK_CHECK, TK_KEY, TK_AFTER, TK_REFERENCES, TK_ESCAPE, TK_ELSE, TK_EXCEPT, TK_TRIGGER, TK_LIKE_KW, TK_EXPLAIN, TK_INITIALLY, TK_ALL, TK_ANALYZE, TK_EXCLUSIVE, TK_EXISTS, TK_STATEMENT, TK_AND, TK_DEFERRABLE, TK_ATTACH, TK_HAVING, TK_LIKE_KW, | | | | | | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | TK_OR, TK_ADD, TK_DATABASE, TK_AS, TK_SELECT, TK_THEN, TK_END, TK_DEFAULT, TK_TRANSACTION,TK_ON, TK_JOIN_KW, TK_ALTER, TK_RAISE, TK_EACH, TK_CHECK, TK_KEY, TK_AFTER, TK_REFERENCES, TK_ESCAPE, TK_ELSE, TK_EXCEPT, TK_TRIGGER, TK_LIKE_KW, TK_EXPLAIN, TK_INITIALLY, TK_ALL, TK_ANALYZE, TK_EXCLUSIVE, TK_EXISTS, TK_STATEMENT, TK_AND, TK_DEFERRABLE, TK_ATTACH, TK_HAVING, TK_LIKE_KW, TK_BEFORE, TK_FOR, TK_FOREIGN, TK_IGNORE, TK_REINDEX, TK_INDEX, TK_AUTOINCR, TK_TO, TK_IN, TK_BEGIN, TK_JOIN_KW, TK_RENAME, TK_BETWEEN, TK_NOT, TK_NOTNULL, TK_NULL, TK_LIKE_KW, TK_BY, TK_CASCADE, TK_ASC, TK_DEFERRED, TK_DELETE, TK_CASE, TK_CAST, TK_COLLATE, TK_COLUMNKW, TK_COMMIT, TK_CONFLICT, TK_CONSTRAINT, TK_INTERSECT, TK_CREATE, TK_JOIN_KW, TK_CTIME_KW, TK_CTIME_KW, TK_CTIME_KW, TK_PLAN, TK_DESC, TK_DETACH, TK_DISTINCT, TK_IS, TK_DROP, TK_PRAGMA, TK_MATCH, TK_FAIL, TK_LIMIT, TK_FROM, TK_JOIN_KW, TK_GROUP, TK_UPDATE, TK_IF, TK_IMMEDIATE, TK_INSERT, TK_INSTEAD, TK_INTO, TK_OF, TK_OFFSET, TK_SET, TK_ISNULL, TK_JOIN, TK_ORDER, TK_REPLACE, TK_JOIN_KW, TK_RESTRICT, TK_PRIMARY, TK_QUERY, TK_JOIN_KW, TK_ROLLBACK, TK_ROW, TK_WHEN, TK_UNION, TK_UNIQUE, TK_USING, TK_VACUUM, TK_VALUES, TK_VIEW, TK_WHERE, }; int h, i; if( n<2 ) return TK_ID; |
︙ | ︙ |
Changes to SQLite.Interop/src/legacy.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** ** $Id: legacy.c,v 1.18 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> /* |
︙ | ︙ |
Changes to SQLite.Interop/src/main.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** ** $Id: main.c,v 1.20 2006/02/11 14:43:38 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> /* ** The following constant value is used by the SQLITE_BIGENDIAN and |
︙ | ︙ |
Changes to SQLite.Interop/src/opcodes.c.
1 2 3 4 5 | /* Automatically generated. Do not edit */ /* See the mkopcodec.awk script for details. */ #if !defined(SQLITE_OMIT_EXPLAIN) || !defined(NDEBUG) || defined(VDBE_PROFILE) || defined(SQLITE_DEBUG) const char *const sqlite3OpcodeNames[] = { "?", /* 1 */ "MemLoad", | < < < < < < < < > < < < < < < < < < < < > > > > > > > > > > > > > > > > > > > > > > > < < < < < < < < < < < < > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | /* Automatically generated. Do not edit */ /* See the mkopcodec.awk script for details. */ #if !defined(SQLITE_OMIT_EXPLAIN) || !defined(NDEBUG) || defined(VDBE_PROFILE) || defined(SQLITE_DEBUG) const char *const sqlite3OpcodeNames[] = { "?", /* 1 */ "MemLoad", /* 2 */ "Column", /* 3 */ "SetCookie", /* 4 */ "IfMemPos", /* 5 */ "Sequence", /* 6 */ "MoveGt", /* 7 */ "RowKey", /* 8 */ "OpenWrite", /* 9 */ "If", /* 10 */ "Pop", /* 11 */ "CollSeq", /* 12 */ "OpenRead", /* 13 */ "Expire", /* 14 */ "AutoCommit", /* 15 */ "IntegrityCk", /* 16 */ "Not", /* 17 */ "Sort", /* 18 */ "Function", /* 19 */ "Noop", /* 20 */ "Return", /* 21 */ "NewRowid", /* 22 */ "IfMemNeg", /* 23 */ "Variable", /* 24 */ "String", /* 25 */ "RealAffinity", /* 26 */ "ParseSchema", /* 27 */ "Close", /* 28 */ "CreateIndex", /* 29 */ "IsUnique", /* 30 */ "IdxIsNull", /* 31 */ "NotFound", /* 32 */ "Int64", /* 33 */ "MustBeInt", /* 34 */ "Halt", /* 35 */ "Rowid", /* 36 */ "IdxLT", /* 37 */ "AddImm", /* 38 */ "Statement", /* 39 */ "RowData", /* 40 */ "MemMax", /* 41 */ "Push", /* 42 */ "NotExists", /* 43 */ "MemIncr", /* 44 */ "Gosub", /* 45 */ "Integer", /* 46 */ "MemInt", /* 47 */ "Prev", /* 48 */ "CreateTable", /* 49 */ "Last", /* 50 */ "IdxRowid", /* 51 */ "MakeIdxRec", /* 52 */ "ResetCount", /* 53 */ "FifoWrite", /* 54 */ "Callback", /* 55 */ "ContextPush", /* 56 */ "DropTrigger", /* 57 */ "DropIndex", /* 58 */ "IdxGE", /* 59 */ "Or", /* 60 */ "And", /* 61 */ "IdxDelete", /* 62 */ "Vacuum", /* 63 */ "MoveLe", /* 64 */ "IsNull", /* 65 */ "NotNull", /* 66 */ "Ne", /* 67 */ "Eq", /* 68 */ "Gt", /* 69 */ "Le", /* 70 */ "Lt", /* 71 */ "Ge", /* 72 */ "IfNot", /* 73 */ "BitAnd", /* 74 */ "BitOr", /* 75 */ "ShiftLeft", /* 76 */ "ShiftRight", /* 77 */ "Add", /* 78 */ "Subtract", /* 79 */ "Multiply", /* 80 */ "Divide", /* 81 */ "Remainder", /* 82 */ "Concat", /* 83 */ "Negative", /* 84 */ "DropTable", /* 85 */ "BitNot", /* 86 */ "String8", /* 87 */ "MakeRecord", /* 88 */ "Delete", /* 89 */ "AggFinal", /* 90 */ "Dup", /* 91 */ "Goto", /* 92 */ "TableLock", /* 93 */ "FifoRead", /* 94 */ "Clear", /* 95 */ "IdxGT", /* 96 */ "MoveLt", /* 97 */ "VerifyCookie", /* 98 */ "AggStep", /* 99 */ "Pull", /* 100 */ "SetNumColumns", /* 101 */ "AbsValue", /* 102 */ "Transaction", /* 103 */ "ContextPop", /* 104 */ "Next", /* 105 */ "IdxInsert", /* 106 */ "Distinct", /* 107 */ "Insert", /* 108 */ "Destroy", /* 109 */ "ReadCookie", /* 110 */ "ForceInt", /* 111 */ "LoadAnalysis", /* 112 */ "OpenVirtual", /* 113 */ "Explain", /* 114 */ "IfMemZero", /* 115 */ "OpenPseudo", /* 116 */ "Null", /* 117 */ "Blob", /* 118 */ "MemStore", /* 119 */ "Rewind", /* 120 */ "MoveGe", /* 121 */ "MemMove", /* 122 */ "MemNull", /* 123 */ "Found", /* 124 */ "Real", /* 125 */ "HexBlob", /* 126 */ "NullRow", /* 127 */ "NotUsed_127", /* 128 */ "NotUsed_128", /* 129 */ "NotUsed_129", /* 130 */ "NotUsed_130", /* 131 */ "NotUsed_131", /* 132 */ "NotUsed_132", /* 133 */ "NotUsed_133", /* 134 */ "NotUsed_134", /* 135 */ "NotUsed_135", /* 136 */ "NotUsed_136", /* 137 */ "ToText", /* 138 */ "ToBlob", /* 139 */ "ToNumeric", /* 140 */ "ToInt", /* 141 */ "ToReal", }; #endif |
Changes to SQLite.Interop/src/os_unix.c.
︙ | ︙ | |||
977 978 979 980 981 982 983 984 985 986 987 988 989 990 | ** Use the fdatasync() API only if the HAVE_FDATASYNC macro is defined. ** Otherwise use fsync() in its place. */ #ifndef HAVE_FDATASYNC # define fdatasync fsync #endif /* ** The fsync() system call does not work as advertised on many ** unix systems. The following procedure is an attempt to make ** it work better. ** ** The SQLITE_NO_SYNC macro disables all fsync()s. This is useful | > > > > > > > > > > > | 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 | ** Use the fdatasync() API only if the HAVE_FDATASYNC macro is defined. ** Otherwise use fsync() in its place. */ #ifndef HAVE_FDATASYNC # define fdatasync fsync #endif /* ** Define HAVE_FULLFSYNC to 0 or 1 depending on whether or not ** the F_FULLFSYNC macro is defined. F_FULLFSYNC is currently ** only available on Mac OS X. But that could change. */ #ifdef F_FULLFSYNC # define HAVE_FULLFSYNC 1 #else # define HAVE_FULLFSYNC 0 #endif /* ** The fsync() system call does not work as advertised on many ** unix systems. The following procedure is an attempt to make ** it work better. ** ** The SQLITE_NO_SYNC macro disables all fsync()s. This is useful |
︙ | ︙ | |||
1008 1009 1010 1011 1012 1013 1014 | /* If we compiled with the SQLITE_NO_SYNC flag, then syncing is a ** no-op */ #ifdef SQLITE_NO_SYNC rc = SQLITE_OK; #else | | | 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 | /* If we compiled with the SQLITE_NO_SYNC flag, then syncing is a ** no-op */ #ifdef SQLITE_NO_SYNC rc = SQLITE_OK; #else #if HAVE_FULLFSYNC if( fullSync ){ rc = fcntl(fd, F_FULLFSYNC, 0); }else{ rc = 1; } /* If the FULLSYNC failed, try to do a normal fsync() */ if( rc ) rc = fsync(fd); |
︙ | ︙ | |||
1053 1054 1055 1056 1057 1058 1059 | assert( pFile ); SimulateIOError(SQLITE_IOERR); TRACE2("SYNC %-3d\n", pFile->h); if( full_fsync(pFile->h, pFile->fullSync, dataOnly) ){ return SQLITE_IOERR; } if( pFile->dirfd>=0 ){ | | > > > > > | > | | 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 | assert( pFile ); SimulateIOError(SQLITE_IOERR); TRACE2("SYNC %-3d\n", pFile->h); if( full_fsync(pFile->h, pFile->fullSync, dataOnly) ){ return SQLITE_IOERR; } if( pFile->dirfd>=0 ){ TRACE4("DIRSYNC %-3d (have_fullfsync=%d fullsync=%d)\n", pFile->dirfd, HAVE_FULLFSYNC, pFile->fullSync); #ifndef SQLITE_DISABLE_DIRSYNC /* The directory sync is only attempted if full_fsync is ** turned off or unavailable. If a full_fsync occurred above, ** then the directory sync is superfluous. */ if( (!HAVE_FULLFSYNC || !pFile->fullSync) && full_fsync(pFile->dirfd,0,0) ){ /* ** We have received multiple reports of fsync() returning ** errors when applied to directories on certain file systems. ** A failed directory sync is not a big deal. So it seems ** better to ignore the error. Ticket #1657 */ /* return SQLITE_IOERR; */ } #endif |
︙ | ︙ | |||
1729 1730 1731 1732 1733 1734 1735 | pthread_mutex_lock(&mutexAux); mutexOwner = pthread_self(); mutexOwnerValid = 1; } inMutex++; pthread_mutex_unlock(&mutexAux); #else | | | 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 | pthread_mutex_lock(&mutexAux); mutexOwner = pthread_self(); mutexOwnerValid = 1; } inMutex++; pthread_mutex_unlock(&mutexAux); #else inMutex++; #endif } void sqlite3UnixLeaveMutex(){ assert( inMutex>0 ); #ifdef SQLITE_UNIX_THREADS pthread_mutex_lock(&mutexAux); inMutex--; |
︙ | ︙ |
Changes to SQLite.Interop/src/pager.c.
︙ | ︙ | |||
14 15 16 17 18 19 20 | ** The pager is used to access a database disk file. It implements ** atomic commit and rollback through the use of a journal file that ** is separate from the database file. The pager also implements file ** locking to prevent two processes from writing the same database ** file simultaneously, or one process from reading the database while ** another is writing. ** | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ** The pager is used to access a database disk file. It implements ** atomic commit and rollback through the use of a journal file that ** is separate from the database file. The pager also implements file ** locking to prevent two processes from writing the same database ** file simultaneously, or one process from reading the database while ** another is writing. ** ** @(#) $Id: pager.c,v 1.20 2006/02/11 14:43:39 rmsimpson Exp $ */ #ifndef SQLITE_OMIT_DISKIO #include "sqliteInt.h" #include "os.h" #include "pager.h" #include <assert.h> #include <string.h> |
︙ | ︙ | |||
240 241 242 243 244 245 246 247 248 249 250 251 252 253 | u8 useJournal; /* Use a rollback journal on this file */ u8 noReadlock; /* Do not bother to obtain readlocks */ u8 stmtOpen; /* True if the statement subjournal is open */ u8 stmtInUse; /* True we are in a statement subtransaction */ u8 stmtAutoopen; /* Open stmt journal when main journal is opened*/ u8 noSync; /* Do not sync the journal if true */ u8 fullSync; /* Do extra syncs of the journal for robustness */ u8 state; /* PAGER_UNLOCK, _SHARED, _RESERVED, etc. */ u8 errCode; /* One of several kinds of errors */ u8 tempFile; /* zFilename is a temporary file */ u8 readOnly; /* True for a read-only database */ u8 needSync; /* True if an fsync() is needed on the journal */ u8 dirtyCache; /* True if cached pages have changed */ u8 alwaysRollback; /* Disable dont_rollback() for all pages */ | > | 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | u8 useJournal; /* Use a rollback journal on this file */ u8 noReadlock; /* Do not bother to obtain readlocks */ u8 stmtOpen; /* True if the statement subjournal is open */ u8 stmtInUse; /* True we are in a statement subtransaction */ u8 stmtAutoopen; /* Open stmt journal when main journal is opened*/ u8 noSync; /* Do not sync the journal if true */ u8 fullSync; /* Do extra syncs of the journal for robustness */ u8 full_fsync; /* Use F_FULLFSYNC when available */ u8 state; /* PAGER_UNLOCK, _SHARED, _RESERVED, etc. */ u8 errCode; /* One of several kinds of errors */ u8 tempFile; /* zFilename is a temporary file */ u8 readOnly; /* True for a read-only database */ u8 needSync; /* True if an fsync() is needed on the journal */ u8 dirtyCache; /* True if cached pages have changed */ u8 alwaysRollback; /* Disable dont_rollback() for all pages */ |
︙ | ︙ | |||
1505 1506 1507 1508 1509 1510 1511 | ** assurance that the journal will not be corrupted to the ** point of causing damage to the database during rollback. ** ** Numeric values associated with these states are OFF==1, NORMAL=2, ** and FULL=3. */ #ifndef SQLITE_OMIT_PAGER_PRAGMAS | | > | 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 | ** assurance that the journal will not be corrupted to the ** point of causing damage to the database during rollback. ** ** Numeric values associated with these states are OFF==1, NORMAL=2, ** and FULL=3. */ #ifndef SQLITE_OMIT_PAGER_PRAGMAS void sqlite3pager_set_safety_level(Pager *pPager, int level, int full_fsync){ pPager->noSync = level==1 || pPager->tempFile; pPager->fullSync = level==3 && !pPager->tempFile; pPager->full_fsync = full_fsync; if( pPager->noSync ) pPager->needSync = 0; } #endif /* ** The following global variable is incremented whenever the library ** attempts to open a temporary file. This information is used for |
︙ | ︙ | |||
2069 2070 2071 2072 2073 2074 2075 | }else{ Pager *pTmp; for(pTmp = pTsd->pPager; pTmp->pNext!=pPager; pTmp=pTmp->pNext); pTmp->pNext = pPager->pNext; } #endif | < < < | 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 | }else{ Pager *pTmp; for(pTmp = pTsd->pPager; pTmp->pNext!=pPager; pTmp=pTmp->pNext); pTmp->pNext = pPager->pNext; } #endif sqliteFree(pPager); return SQLITE_OK; } /* ** Return the page number for the given page data. */ |
︙ | ︙ | |||
2203 2204 2205 2206 2207 2208 2209 | rc = write32bits(pPager->jfd, pPager->nRec); if( rc ) return rc; rc = sqlite3OsSeek(pPager->jfd, pPager->journalOff); if( rc ) return rc; } TRACE2("SYNC journal of %d\n", PAGERID(pPager)); | | | 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 | rc = write32bits(pPager->jfd, pPager->nRec); if( rc ) return rc; rc = sqlite3OsSeek(pPager->jfd, pPager->journalOff); if( rc ) return rc; } TRACE2("SYNC journal of %d\n", PAGERID(pPager)); rc = sqlite3OsSync(pPager->jfd, pPager->full_fsync); if( rc!=0 ) return rc; pPager->journalStarted = 1; } pPager->needSync = 0; /* Erase the needSync flag from every page. */ |
︙ | ︙ | |||
2831 2832 2833 2834 2835 2836 2837 | pPager->tempFile); pPager->journalOff = 0; pPager->setMaster = 0; pPager->journalHdr = 0; if( rc!=SQLITE_OK ){ goto failed_to_open_journal; } | | | | 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 | pPager->tempFile); pPager->journalOff = 0; pPager->setMaster = 0; pPager->journalHdr = 0; if( rc!=SQLITE_OK ){ goto failed_to_open_journal; } sqlite3OsSetFullSync(pPager->jfd, pPager->full_fsync); sqlite3OsSetFullSync(pPager->fd, pPager->full_fsync); sqlite3OsOpenDirectory(pPager->jfd, pPager->zDirectory); pPager->journalOpen = 1; pPager->journalStarted = 0; pPager->needSync = 0; pPager->alwaysRollback = 0; pPager->nRec = 0; if( pPager->errCode ){ |
︙ | ︙ |
Changes to SQLite.Interop/src/pager.h.
︙ | ︙ | |||
9 10 11 12 13 14 15 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the sqlite page cache ** subsystem. The page cache subsystem reads and writes a file a page ** at a time and provides a journal for rollback. ** | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the sqlite page cache ** subsystem. The page cache subsystem reads and writes a file a page ** at a time and provides a journal for rollback. ** ** @(#) $Id: pager.h,v 1.19 2006/02/11 14:43:39 rmsimpson Exp $ */ #ifndef _PAGER_H_ #define _PAGER_H_ /* ** The default size of a database page. |
︙ | ︙ | |||
95 96 97 98 99 100 101 | int sqlite3pager_isreadonly(Pager*); int sqlite3pager_stmt_begin(Pager*); int sqlite3pager_stmt_commit(Pager*); int sqlite3pager_stmt_rollback(Pager*); void sqlite3pager_dont_rollback(void*); void sqlite3pager_dont_write(Pager*, Pgno); int *sqlite3pager_stats(Pager*); | | | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | int sqlite3pager_isreadonly(Pager*); int sqlite3pager_stmt_begin(Pager*); int sqlite3pager_stmt_commit(Pager*); int sqlite3pager_stmt_rollback(Pager*); void sqlite3pager_dont_rollback(void*); void sqlite3pager_dont_write(Pager*, Pgno); int *sqlite3pager_stats(Pager*); void sqlite3pager_set_safety_level(Pager*,int,int); const char *sqlite3pager_filename(Pager*); const char *sqlite3pager_dirname(Pager*); const char *sqlite3pager_journalname(Pager*); int sqlite3pager_nosync(Pager*); int sqlite3pager_rename(Pager*, const char *zNewName); void sqlite3pager_set_codec(Pager*,void(*)(void*,void*,Pgno,int),void*); int sqlite3pager_movepage(Pager*,void*,Pgno); |
︙ | ︙ |
Changes to SQLite.Interop/src/parse.c.
︙ | ︙ | |||
171 172 173 174 175 176 177 | ** yy_shift_ofst[] For each state, the offset into yy_action for ** shifting terminals. ** yy_reduce_ofst[] For each state, the offset into yy_action for ** shifting non-terminals after a reduce. ** yy_default[] Default action for each state. */ static const YYACTIONTYPE yy_action[] = { | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | < < < < < < | | | | | | | | | | | | | | | | | | > | > > > > > | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | < | | > | | < | > | | | | | | | | | | < | | | > | | | | | | | | | | | | | | | | | | | | | | | | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 | ** yy_shift_ofst[] For each state, the offset into yy_action for ** shifting terminals. ** yy_reduce_ofst[] For each state, the offset into yy_action for ** shifting non-terminals after a reduce. ** yy_default[] Default action for each state. */ static const YYACTIONTYPE yy_action[] = { /* 0 */ 279, 68, 283, 70, 148, 166, 546, 419, 62, 62, /* 10 */ 62, 62, 202, 64, 64, 64, 64, 65, 65, 66, /* 20 */ 66, 66, 67, 67, 548, 549, 432, 69, 64, 64, /* 30 */ 64, 64, 65, 65, 66, 66, 66, 67, 68, 454, /* 40 */ 70, 148, 499, 61, 59, 287, 440, 441, 437, 437, /* 50 */ 63, 63, 62, 62, 62, 62, 501, 64, 64, 64, /* 60 */ 64, 65, 65, 66, 66, 66, 67, 279, 371, 283, /* 70 */ 419, 2, 377, 80, 158, 115, 220, 304, 225, 305, /* 80 */ 170, 245, 856, 119, 559, 504, 204, 2, 246, 389, /* 90 */ 496, 219, 22, 432, 514, 21, 419, 58, 493, 171, /* 100 */ 64, 64, 64, 64, 65, 65, 66, 66, 66, 67, /* 110 */ 61, 59, 287, 440, 441, 437, 437, 63, 63, 62, /* 120 */ 62, 62, 62, 512, 64, 64, 64, 64, 65, 65, /* 130 */ 66, 66, 66, 67, 279, 378, 379, 175, 202, 377, /* 140 */ 330, 333, 334, 220, 304, 225, 305, 170, 245, 203, /* 150 */ 146, 357, 335, 281, 377, 246, 55, 301, 373, 419, /* 160 */ 432, 505, 92, 200, 530, 66, 66, 66, 67, 525, /* 170 */ 192, 65, 65, 66, 66, 66, 67, 61, 59, 287, /* 180 */ 440, 441, 437, 437, 63, 63, 62, 62, 62, 62, /* 190 */ 433, 64, 64, 64, 64, 65, 65, 66, 66, 66, /* 200 */ 67, 279, 378, 379, 411, 431, 110, 226, 427, 205, /* 210 */ 435, 436, 308, 358, 261, 260, 175, 378, 379, 330, /* 220 */ 333, 334, 372, 369, 202, 511, 480, 432, 547, 362, /* 230 */ 466, 335, 510, 500, 410, 41, 276, 414, 434, 429, /* 240 */ 503, 162, 233, 527, 61, 59, 287, 440, 441, 437, /* 250 */ 437, 63, 63, 62, 62, 62, 62, 319, 64, 64, /* 260 */ 64, 64, 65, 65, 66, 66, 66, 67, 279, 472, /* 270 */ 416, 416, 416, 308, 322, 236, 308, 68, 308, 70, /* 280 */ 148, 1, 308, 793, 308, 377, 68, 153, 70, 148, /* 290 */ 149, 377, 325, 282, 432, 410, 35, 551, 410, 35, /* 300 */ 410, 36, 427, 205, 410, 35, 410, 35, 286, 422, /* 310 */ 423, 61, 59, 287, 440, 441, 437, 437, 63, 63, /* 320 */ 62, 62, 62, 62, 411, 64, 64, 64, 64, 65, /* 330 */ 65, 66, 66, 66, 67, 308, 504, 466, 290, 255, /* 340 */ 279, 324, 485, 147, 237, 388, 21, 288, 378, 379, /* 350 */ 451, 419, 232, 451, 378, 379, 308, 410, 28, 451, /* 360 */ 175, 450, 486, 330, 333, 334, 432, 215, 347, 145, /* 370 */ 513, 204, 350, 186, 168, 335, 238, 411, 410, 41, /* 380 */ 256, 462, 76, 61, 59, 287, 440, 441, 437, 437, /* 390 */ 63, 63, 62, 62, 62, 62, 309, 64, 64, 64, /* 400 */ 64, 65, 65, 66, 66, 66, 67, 411, 411, 186, /* 410 */ 396, 308, 279, 291, 419, 338, 476, 308, 390, 234, /* 420 */ 169, 154, 397, 475, 396, 327, 493, 311, 422, 423, /* 430 */ 444, 377, 356, 410, 49, 398, 397, 394, 432, 410, /* 440 */ 49, 502, 171, 411, 429, 312, 162, 395, 351, 398, /* 450 */ 497, 318, 470, 352, 79, 61, 59, 287, 440, 441, /* 460 */ 437, 437, 63, 63, 62, 62, 62, 62, 356, 64, /* 470 */ 64, 64, 64, 65, 65, 66, 66, 66, 67, 279, /* 480 */ 298, 445, 376, 479, 532, 405, 299, 11, 504, 352, /* 490 */ 204, 377, 406, 377, 378, 379, 281, 556, 21, 491, /* 500 */ 491, 246, 560, 372, 369, 432, 392, 393, 314, 123, /* 510 */ 443, 443, 166, 289, 419, 314, 116, 443, 443, 251, /* 520 */ 264, 463, 61, 59, 287, 440, 441, 437, 437, 63, /* 530 */ 63, 62, 62, 62, 62, 292, 64, 64, 64, 64, /* 540 */ 65, 65, 66, 66, 66, 67, 279, 459, 328, 474, /* 550 */ 498, 308, 202, 308, 378, 379, 378, 379, 181, 131, /* 560 */ 179, 265, 308, 5, 308, 363, 314, 355, 443, 443, /* 570 */ 410, 3, 432, 410, 29, 410, 24, 419, 243, 244, /* 580 */ 380, 381, 382, 404, 410, 33, 410, 54, 466, 61, /* 590 */ 59, 287, 440, 441, 437, 437, 63, 63, 62, 62, /* 600 */ 62, 62, 308, 64, 64, 64, 64, 65, 65, 66, /* 610 */ 66, 66, 67, 279, 521, 344, 521, 249, 308, 491, /* 620 */ 308, 470, 308, 470, 410, 25, 308, 240, 308, 314, /* 630 */ 308, 443, 443, 213, 172, 173, 174, 142, 266, 432, /* 640 */ 410, 52, 410, 97, 410, 94, 528, 393, 410, 99, /* 650 */ 410, 100, 410, 111, 212, 255, 61, 59, 287, 440, /* 660 */ 441, 437, 437, 63, 63, 62, 62, 62, 62, 308, /* 670 */ 64, 64, 64, 64, 65, 65, 66, 66, 66, 67, /* 680 */ 279, 308, 345, 188, 297, 91, 308, 491, 308, 415, /* 690 */ 308, 410, 112, 308, 428, 308, 537, 308, 244, 165, /* 700 */ 154, 409, 355, 410, 18, 408, 432, 320, 410, 98, /* 710 */ 410, 34, 410, 95, 313, 410, 53, 410, 113, 410, /* 720 */ 114, 255, 293, 61, 59, 287, 440, 441, 437, 437, /* 730 */ 63, 63, 62, 62, 62, 62, 308, 64, 64, 64, /* 740 */ 64, 65, 65, 66, 66, 66, 67, 279, 308, 491, /* 750 */ 491, 523, 308, 452, 308, 522, 308, 461, 410, 26, /* 760 */ 308, 75, 539, 77, 308, 460, 244, 346, 214, 465, /* 770 */ 410, 37, 469, 432, 410, 38, 410, 27, 410, 39, /* 780 */ 242, 82, 410, 40, 294, 296, 410, 42, 438, 329, /* 790 */ 61, 59, 287, 440, 441, 437, 437, 63, 63, 62, /* 800 */ 62, 62, 62, 308, 64, 64, 64, 64, 65, 65, /* 810 */ 66, 66, 66, 67, 279, 308, 409, 190, 221, 308, /* 820 */ 408, 308, 152, 308, 159, 410, 43, 308, 244, 244, /* 830 */ 222, 20, 308, 139, 425, 425, 481, 410, 44, 482, /* 840 */ 432, 410, 30, 410, 31, 410, 45, 487, 461, 410, /* 850 */ 46, 411, 506, 255, 410, 47, 488, 61, 71, 287, /* 860 */ 440, 441, 437, 437, 63, 63, 62, 62, 62, 62, /* 870 */ 308, 64, 64, 64, 64, 65, 65, 66, 66, 66, /* 880 */ 67, 279, 308, 401, 402, 250, 308, 193, 308, 420, /* 890 */ 308, 23, 410, 48, 540, 449, 255, 14, 468, 477, /* 900 */ 167, 14, 484, 483, 410, 32, 252, 432, 410, 12, /* 910 */ 410, 50, 410, 51, 255, 255, 594, 255, 255, 150, /* 920 */ 489, 411, 123, 253, 279, 59, 287, 440, 441, 437, /* 930 */ 437, 63, 63, 62, 62, 62, 62, 541, 64, 64, /* 940 */ 64, 64, 65, 65, 66, 66, 66, 67, 254, 248, /* 950 */ 432, 123, 337, 411, 123, 267, 269, 196, 361, 366, /* 960 */ 183, 177, 180, 519, 520, 526, 534, 123, 167, 287, /* 970 */ 440, 441, 437, 437, 63, 63, 62, 62, 62, 62, /* 980 */ 342, 64, 64, 64, 64, 65, 65, 66, 66, 66, /* 990 */ 67, 72, 315, 259, 4, 411, 411, 535, 285, 89, /* 1000 */ 544, 349, 89, 353, 354, 19, 310, 72, 315, 368, /* 1010 */ 4, 386, 262, 263, 285, 223, 545, 270, 364, 273, /* 1020 */ 274, 141, 310, 317, 227, 316, 555, 424, 426, 480, /* 1030 */ 455, 458, 490, 431, 332, 492, 533, 157, 543, 317, /* 1040 */ 375, 383, 384, 385, 8, 302, 303, 391, 284, 431, /* 1050 */ 404, 399, 74, 73, 224, 403, 407, 82, 323, 321, /* 1060 */ 72, 306, 307, 400, 231, 414, 81, 206, 74, 73, /* 1070 */ 473, 57, 78, 164, 453, 412, 72, 306, 307, 72, /* 1080 */ 315, 414, 4, 228, 202, 229, 285, 235, 230, 456, /* 1090 */ 457, 413, 207, 120, 310, 83, 326, 102, 416, 416, /* 1100 */ 416, 417, 418, 13, 239, 495, 467, 241, 277, 208, /* 1110 */ 471, 317, 494, 210, 416, 416, 416, 417, 418, 13, /* 1120 */ 211, 431, 156, 278, 339, 507, 508, 216, 217, 218, /* 1130 */ 106, 509, 515, 178, 343, 84, 341, 182, 517, 456, /* 1140 */ 74, 73, 86, 198, 518, 271, 257, 184, 72, 306, /* 1150 */ 307, 348, 272, 414, 118, 529, 187, 127, 536, 359, /* 1160 */ 128, 136, 129, 542, 195, 130, 530, 133, 300, 552, /* 1170 */ 553, 194, 137, 197, 431, 90, 554, 557, 96, 209, /* 1180 */ 101, 374, 387, 117, 201, 56, 416, 416, 416, 417, /* 1190 */ 418, 13, 93, 143, 144, 595, 596, 109, 160, 161, /* 1200 */ 60, 439, 500, 421, 430, 442, 414, 138, 446, 151, /* 1210 */ 6, 447, 155, 448, 163, 360, 268, 260, 15, 7, /* 1220 */ 14, 280, 121, 464, 122, 478, 202, 103, 104, 331, /* 1230 */ 247, 85, 105, 336, 222, 176, 340, 140, 516, 416, /* 1240 */ 416, 416, 124, 295, 125, 167, 524, 258, 107, 185, /* 1250 */ 365, 9, 531, 10, 126, 189, 16, 538, 191, 132, /* 1260 */ 134, 87, 88, 135, 17, 108, 275, 550, 367, 199, /* 1270 */ 370, 536, 558, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 16, 216, 16, 218, 219, 21, 146, 23, 68, 69, /* 10 */ 70, 71, 109, 73, 74, 75, 76, 77, 78, 79, /* 20 */ 80, 81, 82, 82, 164, 165, 42, 72, 73, 74, /* 30 */ 75, 76, 77, 78, 79, 80, 81, 82, 216, 217, /* 40 */ 218, 219, 168, 59, 60, 61, 62, 63, 64, 65, /* 50 */ 66, 67, 68, 69, 70, 71, 168, 73, 74, 75, /* 60 */ 76, 77, 78, 79, 80, 81, 82, 16, 140, 16, /* 70 */ 86, 143, 23, 22, 88, 89, 90, 91, 92, 93, /* 80 */ 94, 95, 138, 139, 140, 146, 226, 143, 102, 166, /* 90 */ 167, 152, 19, 42, 155, 156, 23, 46, 175, 43, /* 100 */ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, /* 110 */ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, /* 120 */ 69, 70, 71, 180, 73, 74, 75, 76, 77, 78, /* 130 */ 79, 80, 81, 82, 16, 86, 87, 88, 109, 23, /* 140 */ 91, 92, 93, 90, 91, 92, 93, 94, 95, 191, /* 150 */ 22, 122, 103, 97, 23, 102, 198, 141, 142, 86, /* 160 */ 42, 180, 44, 147, 49, 79, 80, 81, 82, 18, /* 170 */ 154, 77, 78, 79, 80, 81, 82, 59, 60, 61, /* 180 */ 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, /* 190 */ 42, 73, 74, 75, 76, 77, 78, 79, 80, 81, /* 200 */ 82, 16, 86, 87, 188, 58, 21, 189, 77, 78, /* 210 */ 62, 63, 146, 98, 99, 100, 88, 86, 87, 91, /* 220 */ 92, 93, 1, 2, 109, 175, 176, 42, 97, 213, /* 230 */ 160, 103, 182, 86, 168, 169, 157, 90, 90, 160, /* 240 */ 161, 162, 146, 92, 59, 60, 61, 62, 63, 64, /* 250 */ 65, 66, 67, 68, 69, 70, 71, 185, 73, 74, /* 260 */ 75, 76, 77, 78, 79, 80, 81, 82, 16, 199, /* 270 */ 123, 124, 125, 146, 208, 209, 146, 216, 146, 218, /* 280 */ 219, 19, 146, 132, 146, 23, 216, 146, 218, 219, /* 290 */ 154, 23, 146, 149, 42, 168, 169, 236, 168, 169, /* 300 */ 168, 169, 77, 78, 168, 169, 168, 169, 163, 164, /* 310 */ 165, 59, 60, 61, 62, 63, 64, 65, 66, 67, /* 320 */ 68, 69, 70, 71, 188, 73, 74, 75, 76, 77, /* 330 */ 78, 79, 80, 81, 82, 146, 146, 160, 211, 146, /* 340 */ 16, 211, 30, 154, 146, 155, 156, 211, 86, 87, /* 350 */ 223, 23, 220, 223, 86, 87, 146, 168, 169, 223, /* 360 */ 88, 223, 50, 91, 92, 93, 42, 144, 224, 179, /* 370 */ 180, 226, 228, 154, 154, 103, 199, 188, 168, 169, /* 380 */ 187, 113, 130, 59, 60, 61, 62, 63, 64, 65, /* 390 */ 66, 67, 68, 69, 70, 71, 146, 73, 74, 75, /* 400 */ 76, 77, 78, 79, 80, 81, 82, 188, 188, 154, /* 410 */ 12, 146, 16, 101, 86, 16, 20, 146, 167, 209, /* 420 */ 200, 201, 24, 20, 12, 205, 175, 163, 164, 165, /* 430 */ 20, 23, 213, 168, 169, 37, 24, 39, 42, 168, /* 440 */ 169, 159, 43, 188, 160, 161, 162, 49, 229, 37, /* 450 */ 168, 39, 146, 234, 130, 59, 60, 61, 62, 63, /* 460 */ 64, 65, 66, 67, 68, 69, 70, 71, 213, 73, /* 470 */ 74, 75, 76, 77, 78, 79, 80, 81, 82, 16, /* 480 */ 215, 20, 146, 20, 229, 27, 215, 19, 146, 234, /* 490 */ 226, 23, 34, 23, 86, 87, 97, 155, 156, 146, /* 500 */ 146, 102, 0, 1, 2, 42, 184, 185, 105, 22, /* 510 */ 107, 108, 21, 207, 23, 105, 146, 107, 108, 14, /* 520 */ 14, 113, 59, 60, 61, 62, 63, 64, 65, 66, /* 530 */ 67, 68, 69, 70, 71, 181, 73, 74, 75, 76, /* 540 */ 77, 78, 79, 80, 81, 82, 16, 22, 146, 79, /* 550 */ 20, 146, 109, 146, 86, 87, 86, 87, 53, 53, /* 560 */ 55, 55, 146, 190, 146, 122, 105, 146, 107, 108, /* 570 */ 168, 169, 42, 168, 169, 168, 169, 86, 225, 225, /* 580 */ 7, 8, 9, 96, 168, 169, 168, 169, 160, 59, /* 590 */ 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, /* 600 */ 70, 71, 146, 73, 74, 75, 76, 77, 78, 79, /* 610 */ 80, 81, 82, 16, 98, 99, 100, 20, 146, 146, /* 620 */ 146, 146, 146, 146, 168, 169, 146, 199, 146, 105, /* 630 */ 146, 107, 108, 212, 98, 99, 100, 112, 132, 42, /* 640 */ 168, 169, 168, 169, 168, 169, 184, 185, 168, 169, /* 650 */ 168, 169, 168, 169, 181, 146, 59, 60, 61, 62, /* 660 */ 63, 64, 65, 66, 67, 68, 69, 70, 71, 146, /* 670 */ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, /* 680 */ 16, 146, 207, 22, 207, 21, 146, 146, 146, 146, /* 690 */ 146, 168, 169, 146, 160, 146, 187, 146, 225, 200, /* 700 */ 201, 106, 146, 168, 169, 110, 42, 146, 168, 169, /* 710 */ 168, 169, 168, 169, 16, 168, 169, 168, 169, 168, /* 720 */ 169, 146, 181, 59, 60, 61, 62, 63, 64, 65, /* 730 */ 66, 67, 68, 69, 70, 71, 146, 73, 74, 75, /* 740 */ 76, 77, 78, 79, 80, 81, 82, 16, 146, 146, /* 750 */ 146, 25, 146, 146, 146, 29, 146, 22, 168, 169, /* 760 */ 146, 129, 187, 131, 146, 202, 225, 41, 212, 146, /* 770 */ 168, 169, 146, 42, 168, 169, 168, 169, 168, 169, /* 780 */ 146, 120, 168, 169, 181, 181, 168, 169, 90, 79, /* 790 */ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, /* 800 */ 69, 70, 71, 146, 73, 74, 75, 76, 77, 78, /* 810 */ 79, 80, 81, 82, 16, 146, 106, 154, 90, 146, /* 820 */ 110, 146, 87, 146, 19, 168, 169, 146, 225, 225, /* 830 */ 102, 19, 146, 21, 123, 124, 146, 168, 169, 177, /* 840 */ 42, 168, 169, 168, 169, 168, 169, 177, 113, 168, /* 850 */ 169, 188, 146, 146, 168, 169, 177, 59, 60, 61, /* 860 */ 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, /* 870 */ 146, 73, 74, 75, 76, 77, 78, 79, 80, 81, /* 880 */ 82, 16, 146, 7, 8, 146, 146, 154, 146, 20, /* 890 */ 146, 22, 168, 169, 187, 20, 146, 22, 20, 20, /* 900 */ 22, 22, 89, 90, 168, 169, 146, 42, 168, 169, /* 910 */ 168, 169, 168, 169, 146, 146, 111, 146, 146, 154, /* 920 */ 20, 188, 22, 146, 16, 60, 61, 62, 63, 64, /* 930 */ 65, 66, 67, 68, 69, 70, 71, 187, 73, 74, /* 940 */ 75, 76, 77, 78, 79, 80, 81, 82, 146, 20, /* 950 */ 42, 22, 20, 188, 22, 187, 187, 19, 187, 187, /* 960 */ 230, 154, 154, 51, 52, 20, 20, 22, 22, 61, /* 970 */ 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, /* 980 */ 231, 73, 74, 75, 76, 77, 78, 79, 80, 81, /* 990 */ 82, 16, 17, 146, 19, 188, 188, 20, 23, 22, /* 1000 */ 20, 146, 22, 146, 146, 67, 31, 16, 17, 237, /* 1010 */ 19, 148, 146, 146, 23, 171, 146, 146, 146, 146, /* 1020 */ 146, 190, 31, 48, 192, 222, 146, 227, 227, 176, /* 1030 */ 171, 171, 171, 58, 172, 171, 193, 6, 193, 48, /* 1040 */ 145, 145, 145, 145, 22, 153, 97, 170, 40, 58, /* 1050 */ 96, 170, 77, 78, 170, 172, 170, 120, 117, 115, /* 1060 */ 85, 86, 87, 178, 196, 90, 118, 221, 77, 78, /* 1070 */ 79, 119, 129, 111, 151, 188, 85, 86, 87, 16, /* 1080 */ 17, 90, 19, 193, 109, 194, 23, 95, 195, 23, /* 1090 */ 159, 197, 210, 151, 31, 97, 114, 19, 123, 124, /* 1100 */ 125, 126, 127, 128, 203, 178, 204, 203, 173, 210, /* 1110 */ 204, 48, 159, 210, 123, 124, 125, 126, 127, 128, /* 1120 */ 210, 58, 5, 173, 15, 170, 170, 10, 11, 12, /* 1130 */ 13, 170, 151, 150, 38, 19, 151, 151, 151, 23, /* 1140 */ 77, 78, 129, 26, 233, 28, 232, 150, 85, 86, /* 1150 */ 87, 151, 35, 90, 59, 183, 183, 19, 193, 15, /* 1160 */ 186, 214, 186, 193, 47, 186, 49, 183, 151, 33, /* 1170 */ 151, 54, 214, 56, 58, 235, 151, 136, 158, 174, /* 1180 */ 174, 1, 20, 32, 44, 19, 123, 124, 125, 126, /* 1190 */ 127, 128, 235, 77, 78, 111, 111, 238, 111, 111, /* 1200 */ 19, 90, 86, 20, 20, 106, 90, 19, 11, 19, /* 1210 */ 116, 20, 111, 20, 22, 98, 99, 100, 22, 116, /* 1220 */ 22, 104, 19, 113, 20, 20, 109, 19, 19, 44, /* 1230 */ 20, 19, 19, 44, 102, 94, 16, 21, 17, 123, /* 1240 */ 124, 125, 97, 36, 45, 22, 45, 132, 19, 97, /* 1250 */ 133, 5, 11, 1, 101, 121, 19, 17, 112, 112, /* 1260 */ 101, 67, 67, 121, 19, 14, 135, 20, 57, 134, /* 1270 */ 3, 239, 4, }; #define YY_SHIFT_USE_DFLT (-98) #define YY_SHIFT_MAX 370 static const short yy_shift_ofst[] = { /* 0 */ 221, 975, 1117, -16, 975, 1063, 1063, 1063, 49, 115, /* 10 */ 115, -97, 118, 1063, 1063, 1063, 1063, 1063, -45, 131, /* 20 */ 116, 328, 225, 225, 51, 185, 252, 324, 396, 463, /* 30 */ 530, 597, 664, 731, 798, 731, 731, 731, 731, 731, /* 40 */ 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, /* 50 */ 731, 731, 865, 908, 908, 991, 1063, 1063, 1063, 1063, /* 60 */ 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, /* 70 */ 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, /* 80 */ 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, /* 90 */ 1063, 1063, 1063, 1063, -60, -60, -14, 27, 27, 94, /* 100 */ 86, 399, 116, 116, 116, 116, 151, 116, 116, 116, /* 110 */ 328, -59, -98, -98, -98, 1116, 53, 398, 398, 502, /* 120 */ 491, 116, 491, 116, 116, 116, 116, 116, 116, 116, /* 130 */ 116, 116, 116, 116, 116, 116, 29, 443, -97, -97, /* 140 */ -97, -98, -98, 147, 147, 128, 272, 403, 262, 410, /* 150 */ 461, 412, 268, 408, 468, 470, 573, 116, 116, 710, /* 160 */ 116, 116, 73, 116, 116, 735, 116, 116, 524, 735, /* 170 */ 116, 116, 312, 312, 312, 116, 116, 524, 116, 116, /* 180 */ 524, 116, 726, 516, 116, 116, 524, 116, 116, 116, /* 190 */ 524, 116, 524, 524, 116, 116, 116, 116, 116, 116, /* 200 */ 812, 458, 595, 525, 711, 711, 632, 458, 458, 56, /* 210 */ 458, 458, 487, 661, 661, 1031, 1031, 1031, 1031, 1022, /* 220 */ 949, 949, 1008, 949, 954, 949, -97, 937, 941, 948, /* 230 */ 944, 952, 943, 962, 992, 1066, 992, 962, 998, 982, /* 240 */ 998, 982, 1078, 992, 992, 1066, 1008, 949, 949, 949, /* 250 */ 1078, 1109, 962, 962, 962, 962, 1096, 1013, 1109, 962, /* 260 */ 1095, 1095, 1138, 937, 1144, 1144, 1144, 937, 1095, 1138, /* 270 */ 962, 1136, 1136, 962, 962, 1041, -98, -98, -98, 148, /* 280 */ 506, 536, 505, 728, 876, 805, 869, 698, 875, 878, /* 290 */ 879, 813, 900, 929, 932, 912, 945, 946, 977, 980, /* 300 */ 938, 1180, 1162, 1151, 1140, 1166, 1084, 1085, 1087, 1088, /* 310 */ 1181, 1183, 1184, 1111, 1099, 1188, 1197, 1190, 1191, 1192, /* 320 */ 1193, 1094, 1196, 1103, 1198, 1110, 1203, 1204, 1101, 1205, /* 330 */ 1185, 1208, 1210, 1209, 1212, 1189, 1213, 1141, 1132, 1220, /* 340 */ 1221, 1216, 1145, 1207, 1199, 1223, 1201, 1115, 1152, 1229, /* 350 */ 1246, 1241, 1252, 1153, 1194, 1195, 1134, 1237, 1146, 1240, /* 360 */ 1147, 1159, 1142, 1245, 1247, 1251, 1211, 1135, 1131, 1267, /* 370 */ 1268, }; #define YY_REDUCE_USE_DFLT (-216) #define YY_REDUCE_MAX 278 static const short yy_reduce_ofst[] = { /* 0 */ -56, 136, 16, 70, 189, 127, 66, 130, 190, 219, /* 10 */ 255, 220, 61, 132, 138, 210, 265, 271, -178, -140, /* 20 */ -61, 79, 145, 264, -215, -215, -215, -215, -215, -215, /* 30 */ -215, -215, -215, -215, -215, -215, -215, -215, -215, -215, /* 40 */ -215, -215, -215, -215, -215, -215, -215, -215, -215, -215, /* 50 */ -215, -215, -215, -215, -215, 402, 405, 407, 416, 418, /* 60 */ 456, 472, 474, 476, 480, 482, 484, 523, 535, 540, /* 70 */ 542, 544, 547, 549, 551, 590, 602, 606, 608, 610, /* 80 */ 614, 618, 657, 669, 673, 675, 677, 681, 686, 724, /* 90 */ 736, 740, 742, 744, -215, -215, -77, -215, -215, -215, /* 100 */ -215, 50, 354, 473, 541, 603, 144, 604, 772, 342, /* 110 */ 284, -215, -215, -215, -215, 282, 251, 322, 462, -72, /* 120 */ 177, 306, 428, 353, 193, 475, 421, 477, 509, 575, /* 130 */ 707, 750, 768, 771, 556, 769, 663, 733, 765, 807, /* 140 */ 808, -42, 499, -126, -112, -57, -19, 18, 96, 18, /* 150 */ 18, 72, 141, 146, 198, 250, 223, 336, 370, 373, /* 160 */ 250, 543, 534, 561, 607, 563, 623, 626, 18, 563, /* 170 */ 634, 690, 662, 670, 679, 706, 739, 18, 760, 777, /* 180 */ 18, 802, 730, 749, 847, 855, 18, 857, 858, 866, /* 190 */ 18, 867, 18, 18, 870, 871, 872, 873, 874, 880, /* 200 */ 863, 844, 831, 832, 800, 801, 803, 859, 860, 853, /* 210 */ 861, 864, 862, 843, 845, 895, 896, 897, 898, 892, /* 220 */ 877, 881, 885, 884, 883, 886, 887, 890, 891, 893, /* 230 */ 868, 894, 846, 923, 882, 931, 899, 942, 901, 902, /* 240 */ 904, 906, 935, 903, 910, 953, 927, 955, 956, 961, /* 250 */ 950, 983, 981, 985, 986, 987, 914, 911, 997, 1000, /* 260 */ 972, 973, 947, 965, 974, 976, 979, 970, 984, 958, /* 270 */ 1017, 940, 957, 1019, 1025, 959, 1020, 1005, 1006, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 566, 790, 855, 681, 855, 790, 855, 790, 855, 828, /* 10 */ 828, 685, 841, 786, 790, 855, 855, 855, 761, 812, /* 20 */ 855, 597, 812, 812, 716, 855, 855, 855, 855, 855, /* 30 */ 855, 855, 855, 717, 855, 789, 785, 781, 783, 782, /* 40 */ 718, 705, 714, 721, 697, 826, 723, 724, 729, 730, /* 50 */ 842, 845, 751, 767, 750, 855, 855, 855, 855, 855, /* 60 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 70 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 80 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 90 */ 855, 855, 855, 855, 753, 772, 590, 752, 760, 754, /* 100 */ 755, 650, 855, 855, 855, 855, 585, 855, 855, 855, /* 110 */ 855, 756, 757, 768, 769, 855, 855, 855, 855, 566, /* 120 */ 681, 855, 681, 855, 855, 855, 855, 855, 855, 855, /* 130 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 140 */ 855, 675, 685, 855, 855, 641, 855, 855, 855, 855, /* 150 */ 855, 855, 855, 855, 855, 855, 573, 571, 855, 673, /* 160 */ 855, 855, 599, 855, 855, 683, 855, 855, 688, 689, /* 170 */ 855, 855, 855, 855, 855, 855, 855, 587, 855, 855, /* 180 */ 662, 855, 818, 855, 855, 855, 833, 855, 855, 855, /* 190 */ 831, 855, 664, 726, 800, 855, 855, 846, 848, 855, /* 200 */ 855, 708, 673, 682, 855, 855, 784, 708, 708, 620, /* 210 */ 708, 708, 623, 720, 720, 570, 570, 570, 570, 640, /* 220 */ 652, 652, 637, 652, 623, 652, 855, 720, 711, 713, /* 230 */ 701, 715, 855, 690, 709, 855, 709, 690, 698, 700, /* 240 */ 698, 700, 794, 709, 709, 855, 637, 652, 652, 652, /* 250 */ 794, 582, 690, 690, 690, 690, 822, 825, 582, 690, /* 260 */ 654, 654, 731, 720, 661, 661, 661, 720, 654, 731, /* 270 */ 690, 844, 844, 690, 690, 853, 607, 625, 625, 855, /* 280 */ 855, 855, 855, 855, 855, 738, 855, 855, 855, 855, /* 290 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 300 */ 807, 855, 855, 855, 855, 855, 743, 739, 855, 740, /* 310 */ 855, 855, 855, 855, 667, 855, 855, 855, 855, 855, /* 320 */ 855, 855, 702, 855, 712, 855, 855, 855, 855, 855, /* 330 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 340 */ 855, 855, 855, 855, 820, 821, 855, 855, 855, 855, /* 350 */ 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, /* 360 */ 855, 855, 855, 855, 855, 855, 852, 855, 855, 567, /* 370 */ 855, 561, 564, 563, 565, 569, 572, 594, 595, 596, /* 380 */ 574, 575, 576, 577, 578, 579, 580, 586, 588, 606, /* 390 */ 608, 615, 653, 656, 657, 658, 836, 837, 838, 616, /* 400 */ 635, 638, 639, 617, 624, 706, 707, 618, 671, 672, /* 410 */ 735, 665, 666, 670, 737, 741, 742, 744, 745, 593, /* 420 */ 600, 601, 604, 605, 808, 810, 809, 811, 603, 602, /* 430 */ 746, 749, 758, 759, 765, 771, 774, 763, 764, 766, /* 440 */ 770, 773, 668, 669, 777, 779, 780, 834, 835, 775, /* 450 */ 787, 788, 691, 778, 762, 703, 592, 710, 704, 674, /* 460 */ 684, 693, 694, 695, 696, 679, 680, 686, 699, 733, /* 470 */ 734, 687, 676, 677, 678, 776, 736, 747, 748, 619, /* 480 */ 626, 627, 628, 631, 632, 633, 634, 629, 630, 795, /* 490 */ 796, 798, 797, 621, 622, 636, 609, 610, 611, 612, /* 500 */ 743, 613, 614, 598, 591, 642, 645, 646, 647, 648, /* 510 */ 649, 651, 643, 644, 589, 581, 583, 692, 814, 823, /* 520 */ 824, 819, 815, 816, 817, 584, 791, 792, 655, 727, /* 530 */ 728, 813, 827, 829, 732, 830, 832, 659, 660, 663, /* 540 */ 799, 839, 719, 722, 725, 801, 802, 803, 804, 805, /* 550 */ 806, 840, 843, 847, 849, 850, 851, 854, 568, 562, }; #define YY_SZ_ACTTAB (sizeof(yy_action)/sizeof(yy_action[0])) /* The next table maps tokens into fallback tokens. If a construct ** like the following: ** ** %fallback ID X Y Z. |
︙ | ︙ |
Changes to SQLite.Interop/src/pragma.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code used to implement the PRAGMA command. ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code used to implement the PRAGMA command. ** ** $Id: pragma.c,v 1.19 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> /* Ignore this whole file if pragmas are disabled */ |
︙ | ︙ | |||
148 149 150 151 152 153 154 155 156 157 158 159 160 161 | { "sql_trace", SQLITE_SqlTrace }, { "vdbe_listing", SQLITE_VdbeListing }, { "full_column_names", SQLITE_FullColNames }, { "short_column_names", SQLITE_ShortColNames }, { "count_changes", SQLITE_CountRows }, { "empty_result_callbacks", SQLITE_NullCallback }, { "legacy_file_format", SQLITE_LegacyFileFmt }, #ifndef SQLITE_OMIT_CHECK { "ignore_check_constraints", SQLITE_IgnoreChecks }, #endif /* The following is VERY experimental */ { "writable_schema", SQLITE_WriteSchema }, { "omit_readlock", SQLITE_NoReadlock }, | > | 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | { "sql_trace", SQLITE_SqlTrace }, { "vdbe_listing", SQLITE_VdbeListing }, { "full_column_names", SQLITE_FullColNames }, { "short_column_names", SQLITE_ShortColNames }, { "count_changes", SQLITE_CountRows }, { "empty_result_callbacks", SQLITE_NullCallback }, { "legacy_file_format", SQLITE_LegacyFileFmt }, { "fullfsync", SQLITE_FullFSync }, #ifndef SQLITE_OMIT_CHECK { "ignore_check_constraints", SQLITE_IgnoreChecks }, #endif /* The following is VERY experimental */ { "writable_schema", SQLITE_WriteSchema }, { "omit_readlock", SQLITE_NoReadlock }, |
︙ | ︙ | |||
176 177 178 179 180 181 182 | }else{ if( getBoolean(zRight) ){ db->flags |= p->mask; }else{ db->flags &= ~p->mask; } } | < < < < | 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | }else{ if( getBoolean(zRight) ){ db->flags |= p->mask; }else{ db->flags &= ~p->mask; } } } return 1; } } return 0; } #endif /* SQLITE_OMIT_FLAG_PRAGMAS */ |
︙ | ︙ | |||
433 434 435 436 437 438 439 | returnSingleInt(pParse, "synchronous", pDb->safety_level-1); }else{ if( !db->autoCommit ){ sqlite3ErrorMsg(pParse, "Safety level may not be changed inside a transaction"); }else{ pDb->safety_level = getSafetyLevel(zRight)+1; | < | 430 431 432 433 434 435 436 437 438 439 440 441 442 443 | returnSingleInt(pParse, "synchronous", pDb->safety_level-1); }else{ if( !db->autoCommit ){ sqlite3ErrorMsg(pParse, "Safety level may not be changed inside a transaction"); }else{ pDb->safety_level = getSafetyLevel(zRight)+1; } } }else #endif /* SQLITE_OMIT_PAGER_PRAGMAS */ #ifndef SQLITE_OMIT_FLAG_PRAGMAS if( flagPragma(pParse, zLeft, zRight) ){ |
︙ | ︙ | |||
943 944 945 946 947 948 949 950 951 952 953 954 955 956 | if( v ){ /* Code an OP_Expire at the end of each PRAGMA program to cause ** the VDBE implementing the pragma to expire. Most (all?) pragmas ** are only valid for a single execution. */ sqlite3VdbeAddOp(v, OP_Expire, 1, 0); } pragma_out: sqliteFree(zLeft); sqliteFree(zRight); } #endif /* SQLITE_OMIT_PRAGMA || SQLITE_OMIT_PARSER */ | > > > > > > > > > | 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 | if( v ){ /* Code an OP_Expire at the end of each PRAGMA program to cause ** the VDBE implementing the pragma to expire. Most (all?) pragmas ** are only valid for a single execution. */ sqlite3VdbeAddOp(v, OP_Expire, 1, 0); /* ** Reset the safety level, in case the fullfsync flag or synchronous ** setting changed. */ if( db->autoCommit ){ sqlite3BtreeSetSafetyLevel(pDb->pBt, pDb->safety_level, (db->flags&SQLITE_FullFSync)!=0); } } pragma_out: sqliteFree(zLeft); sqliteFree(zRight); } #endif /* SQLITE_OMIT_PRAGMA || SQLITE_OMIT_PARSER */ |
Changes to SQLite.Interop/src/prepare.c.
︙ | ︙ | |||
9 10 11 12 13 14 15 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains the implementation of the sqlite3_prepare() ** interface, and routines that contribute to loading the database schema ** from disk. ** | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains the implementation of the sqlite3_prepare() ** interface, and routines that contribute to loading the database schema ** from disk. ** ** $Id: prepare.c,v 1.15 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> /* ** Fill the InitData structure with an error message that indicates |
︙ | ︙ |
Changes to SQLite.Interop/src/random.c.
︙ | ︙ | |||
11 12 13 14 15 16 17 | ************************************************************************* ** This file contains code to implement a pseudo-random number ** generator (PRNG) for SQLite. ** ** Random numbers are used by some of the database backends in order ** to generate random integer keys for tables or random filenames. ** | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ************************************************************************* ** This file contains code to implement a pseudo-random number ** generator (PRNG) for SQLite. ** ** Random numbers are used by some of the database backends in order ** to generate random integer keys for tables or random filenames. ** ** $Id: random.c,v 1.18 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" /* ** Get a single 8-bit random value from the RC4 PRNG. The Mutex |
︙ | ︙ |
Changes to SQLite.Interop/src/select.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle SELECT statements in SQLite. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle SELECT statements in SQLite. ** ** $Id: select.c,v 1.20 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** Delete all the content of a Select structure but do not deallocate ** the select structure itself. |
︙ | ︙ |
Changes to SQLite.Interop/src/shell.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** ** $Id: shell.c,v 1.19 2006/02/11 14:43:40 rmsimpson Exp $ */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <assert.h> #include "sqlite3.h" #include <ctype.h> |
︙ | ︙ |
Changes to SQLite.Interop/src/sqlite3.h.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the SQLite library ** presents to client programs. ** | | | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This header file defines the interface that the SQLite library ** presents to client programs. ** ** @(#) $Id: sqlite3.h,v 1.20 2006/02/11 14:43:40 rmsimpson Exp $ */ #ifndef _SQLITE3_H_ #define _SQLITE3_H_ #include <stdarg.h> /* Needed for the definition of va_list */ /* ** Make sure we can call this stuff from C++. */ #ifdef __cplusplus extern "C" { #endif /* ** The version of the SQLite library. */ #ifdef SQLITE_VERSION # undef SQLITE_VERSION #endif #define SQLITE_VERSION "3.3.4" /* ** The format of the version string is "X.Y.Z<trailing string>", where ** X is the major version number, Y is the minor version number and Z ** is the release number. The trailing string is often "alpha" or "beta". ** For example "3.1.1beta". ** ** The SQLITE_VERSION_NUMBER is an integer with the value ** (X*100000 + Y*1000 + Z). For example, for version "3.1.1beta", ** SQLITE_VERSION_NUMBER is set to 3001001. To detect if they are using ** version 3.1.1 or greater at compile time, programs may use the test ** (SQLITE_VERSION_NUMBER>=3001001). */ #ifdef SQLITE_VERSION_NUMBER # undef SQLITE_VERSION_NUMBER #endif #define SQLITE_VERSION_NUMBER 3003004 /* ** The version string is also compiled into the library so that a program ** can check to make sure that the lib*.a file and the *.h file are from ** the same version. The sqlite3_libversion() function returns a pointer ** to the sqlite3_version variable - useful in DLLs which cannot access ** global variables. |
︙ | ︙ |
Changes to SQLite.Interop/src/sqliteInt.h.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Internal interface definitions for SQLite. ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Internal interface definitions for SQLite. ** ** @(#) $Id: sqliteInt.h,v 1.19 2006/02/11 14:43:40 rmsimpson Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ /* ** Extra interface definitions for those who need them */ |
︙ | ︙ | |||
540 541 542 543 544 545 546 547 548 549 550 551 552 553 | #define SQLITE_VdbeListing 0x00000400 /* Debug listings of VDBE programs */ #define SQLITE_WriteSchema 0x00000800 /* OK to update SQLITE_MASTER */ #define SQLITE_NoReadlock 0x00001000 /* Readlocks are omitted when ** accessing read-only databases */ #define SQLITE_IgnoreChecks 0x00002000 /* Do not enforce check constraints */ #define SQLITE_ReadUncommitted 0x00004000 /* For shared-cache mode */ #define SQLITE_LegacyFileFmt 0x00008000 /* Create new databases in format 1 */ /* ** Possible values for the sqlite.magic field. ** The numbers are obtained at random and have no special meaning, other ** than being distinct from one another. */ #define SQLITE_MAGIC_OPEN 0xa029a697 /* Database is open */ | > | 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 | #define SQLITE_VdbeListing 0x00000400 /* Debug listings of VDBE programs */ #define SQLITE_WriteSchema 0x00000800 /* OK to update SQLITE_MASTER */ #define SQLITE_NoReadlock 0x00001000 /* Readlocks are omitted when ** accessing read-only databases */ #define SQLITE_IgnoreChecks 0x00002000 /* Do not enforce check constraints */ #define SQLITE_ReadUncommitted 0x00004000 /* For shared-cache mode */ #define SQLITE_LegacyFileFmt 0x00008000 /* Create new databases in format 1 */ #define SQLITE_FullFSync 0x00010000 /* Use full fsync on the backend */ /* ** Possible values for the sqlite.magic field. ** The numbers are obtained at random and have no special meaning, other ** than being distinct from one another. */ #define SQLITE_MAGIC_OPEN 0xa029a697 /* Database is open */ |
︙ | ︙ |
Changes to SQLite.Interop/src/table.c.
︙ | ︙ | |||
141 142 143 144 145 146 147 148 149 150 151 152 153 154 | res.nAlloc = 20; res.rc = SQLITE_OK; res.azResult = malloc( sizeof(char*)*res.nAlloc ); if( res.azResult==0 ) return SQLITE_NOMEM; res.azResult[0] = 0; rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg); if( res.azResult ){ res.azResult[0] = (char*)res.nData; } if( rc==SQLITE_ABORT ){ sqlite3_free_table(&res.azResult[1]); if( res.zErrMsg ){ if( pzErrMsg ){ free(*pzErrMsg); | > | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | res.nAlloc = 20; res.rc = SQLITE_OK; res.azResult = malloc( sizeof(char*)*res.nAlloc ); if( res.azResult==0 ) return SQLITE_NOMEM; res.azResult[0] = 0; rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg); if( res.azResult ){ assert( sizeof(res.azResult[0])>= sizeof(res.nData) ); res.azResult[0] = (char*)res.nData; } if( rc==SQLITE_ABORT ){ sqlite3_free_table(&res.azResult[1]); if( res.zErrMsg ){ if( pzErrMsg ){ free(*pzErrMsg); |
︙ | ︙ |
Changes to SQLite.Interop/src/tclsqlite.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** A TCL Interface to SQLite ** | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** A TCL Interface to SQLite ** ** $Id: tclsqlite.c,v 1.19 2006/02/11 14:43:40 rmsimpson Exp $ */ #ifndef NO_TCL /* Omit this whole file if TCL is unavailable */ #include "sqliteInt.h" #include "hash.h" #include "tcl.h" #include <stdlib.h> |
︙ | ︙ |
Changes to SQLite.Interop/src/tokenize.c.
︙ | ︙ | |||
11 12 13 14 15 16 17 | ************************************************************************* ** An tokenizer for SQL ** ** This file contains C code that splits an SQL input string up into ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ************************************************************************* ** An tokenizer for SQL ** ** This file contains C code that splits an SQL input string up into ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** ** $Id: tokenize.c,v 1.22 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> #include <stdlib.h> /* |
︙ | ︙ | |||
257 258 259 260 261 262 263 | } /* Fall through into the next case if the '#' is not followed by ** a digit. Try to match #AAAA where AAAA is a parameter name. */ } #ifndef SQLITE_OMIT_TCL_VARIABLE case '$': #endif | | | 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | } /* Fall through into the next case if the '#' is not followed by ** a digit. Try to match #AAAA where AAAA is a parameter name. */ } #ifndef SQLITE_OMIT_TCL_VARIABLE case '$': #endif case '@': /* For compatibility with MS SQL Server */ case ':': { int n = 0; *tokenType = TK_VARIABLE; for(i=1; (c=z[i])!=0; i++){ if( IdChar(c) ){ n++; #ifndef SQLITE_OMIT_TCL_VARIABLE |
︙ | ︙ |
Changes to SQLite.Interop/src/update.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle UPDATE statements. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains C code routines that are called by the parser ** to handle UPDATE statements. ** ** $Id: update.c,v 1.19 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** The most recently coded instruction was an OP_Column to retrieve the ** i-th column of table pTab. This routine sets the P3 parameter of the ** OP_Column to the default value, if any. |
︙ | ︙ |
Changes to SQLite.Interop/src/utf.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains routines used to translate between UTF-8, ** UTF-16, UTF-16BE, and UTF-16LE. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains routines used to translate between UTF-8, ** UTF-16, UTF-16BE, and UTF-16LE. ** ** $Id: utf.c,v 1.18 2006/02/11 14:43:40 rmsimpson Exp $ ** ** Notes on UTF-8: ** ** Byte-0 Byte-1 Byte-2 Byte-3 Value ** 0xxxxxxx 00000000 00000000 0xxxxxxx ** 110yyyyy 10xxxxxx 00000000 00000yyy yyxxxxxx ** 1110zzzz 10yyyyyy 10xxxxxx 00000000 zzzzyyyy yyxxxxxx |
︙ | ︙ |
Changes to SQLite.Interop/src/util.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** Utility functions used throughout sqlite. ** ** This file contains functions for allocating memory, comparing ** strings, and stuff like that. ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** Utility functions used throughout sqlite. ** ** This file contains functions for allocating memory, comparing ** strings, and stuff like that. ** ** $Id: util.c,v 1.20 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <stdarg.h> #include <ctype.h> /* |
︙ | ︙ |
Changes to SQLite.Interop/src/vacuum.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** This file contains code used to implement the VACUUM command. ** ** Most of the code in this file may be omitted by defining the ** SQLITE_OMIT_VACUUM macro. ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** This file contains code used to implement the VACUUM command. ** ** Most of the code in this file may be omitted by defining the ** SQLITE_OMIT_VACUUM macro. ** ** $Id: vacuum.c,v 1.19 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" #include "vdbeInt.h" #include "os.h" #ifndef SQLITE_OMIT_VACUUM /* |
︙ | ︙ |
Changes to SQLite.Interop/src/vdbe.c.
︙ | ︙ | |||
39 40 41 42 43 44 45 | ** ** Various scripts scan this source file in order to generate HTML ** documentation, headers files, or other derived files. The formatting ** of the code in this file is, therefore, important. See other comments ** in this file for details. If in doubt, do not deviate from existing ** commenting and indentation practices when changing or adding code. ** | | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | ** ** Various scripts scan this source file in order to generate HTML ** documentation, headers files, or other derived files. The formatting ** of the code in this file is, therefore, important. See other comments ** in this file for details. If in doubt, do not deviate from existing ** commenting and indentation practices when changing or adding code. ** ** $Id: vdbe.c,v 1.21 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" #include "os.h" #include <ctype.h> #include "vdbeInt.h" /* |
︙ | ︙ |
Changes to SQLite.Interop/src/vdbe.h.
︙ | ︙ | |||
11 12 13 14 15 16 17 | ************************************************************************* ** Header file for the Virtual DataBase Engine (VDBE) ** ** This header defines the interface to the virtual database engine ** or VDBE. The VDBE implements an abstract machine that runs a ** simple program to access and modify the underlying database. ** | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ************************************************************************* ** Header file for the Virtual DataBase Engine (VDBE) ** ** This header defines the interface to the virtual database engine ** or VDBE. The VDBE implements an abstract machine that runs a ** simple program to access and modify the underlying database. ** ** $Id: vdbe.h,v 1.19 2006/02/11 14:43:40 rmsimpson Exp $ */ #ifndef _SQLITE_VDBE_H_ #define _SQLITE_VDBE_H_ #include <stdio.h> /* ** A single VDBE is an opaque structure named "Vdbe". Only routines |
︙ | ︙ |
Changes to SQLite.Interop/src/where.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** This module contains C code that generates VDBE code used to process ** the WHERE clause of SQL statements. This module is reponsible for ** generating the code that loops through a table looking for applicable ** rows. Indices are selected and used to speed the search when doing ** so is applicable. Because this module is responsible for selecting ** indices, you might also think of this module as the "query optimizer". ** | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ** This module contains C code that generates VDBE code used to process ** the WHERE clause of SQL statements. This module is reponsible for ** generating the code that loops through a table looking for applicable ** rows. Indices are selected and used to speed the search when doing ** so is applicable. Because this module is responsible for selecting ** indices, you might also think of this module as the "query optimizer". ** ** $Id: where.c,v 1.21 2006/02/11 14:43:40 rmsimpson Exp $ */ #include "sqliteInt.h" /* ** The number of bits in a Bitmask. "BMS" means "BitMask Size". */ #define BMS (sizeof(Bitmask)*8) |
︙ | ︙ |