/ Check-in [d71abab0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Truncate over-length source lines in sqliteInt.h to 80 characters or less.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d71abab08518f0be1eb73c7068566ab813652318
User & Date: drh 2013-02-19 18:34:12
Context
2013-02-19
18:34
Do not rollback the schema if a parsing error occurs while parsing the schema and writable_schema is set. check-in: 680d3ab5 user: drh tags: trunk
18:34
Truncate over-length source lines in sqliteInt.h to 80 characters or less. check-in: d71abab0 user: drh tags: trunk
11:51
Add the edit_cost_table= command to the spellfix1 virtual table, permitting the edit distance cost table to be changed at runtime. check-in: 89d63682 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteInt.h.

   196    196   ** Later we learn that _XOPEN_SOURCE is poorly or incorrectly
   197    197   ** implemented on some systems.  So we avoid defining it at all
   198    198   ** if it is already defined or if it is unneeded because we are
   199    199   ** not doing a threadsafe build.  Ticket #2681.
   200    200   **
   201    201   ** See also ticket #2741.
   202    202   */
   203         -#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__) && SQLITE_THREADSAFE
          203  +#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) \
          204  + && !defined(__APPLE__) && SQLITE_THREADSAFE
   204    205   #  define _XOPEN_SOURCE 500  /* Needed to enable pthread recursive mutexes */
   205    206   #endif
   206    207   
   207    208   /*
   208    209   ** The TCL headers are only needed when compiling the TCL bindings.
   209    210   */
   210    211   #if defined(SQLITE_TCL) || defined(TCLSH)
................................................................................
  2833   2834   Select *sqlite3SelectNew(Parse*,ExprList*,SrcList*,Expr*,ExprList*,
  2834   2835                            Expr*,ExprList*,u16,Expr*,Expr*);
  2835   2836   void sqlite3SelectDelete(sqlite3*, Select*);
  2836   2837   Table *sqlite3SrcListLookup(Parse*, SrcList*);
  2837   2838   int sqlite3IsReadOnly(Parse*, Table*, int);
  2838   2839   void sqlite3OpenTable(Parse*, int iCur, int iDb, Table*, int);
  2839   2840   #if defined(SQLITE_ENABLE_UPDATE_DELETE_LIMIT) && !defined(SQLITE_OMIT_SUBQUERY)
  2840         -Expr *sqlite3LimitWhere(Parse *, SrcList *, Expr *, ExprList *, Expr *, Expr *, char *);
         2841  +Expr *sqlite3LimitWhere(Parse*,SrcList*,Expr*,ExprList*,Expr*,Expr*,char*);
  2841   2842   #endif
  2842   2843   void sqlite3DeleteFrom(Parse*, SrcList*, Expr*);
  2843   2844   void sqlite3Update(Parse*, SrcList*, ExprList*, Expr*, int);
  2844   2845   WhereInfo *sqlite3WhereBegin(Parse*,SrcList*,Expr*,ExprList*,ExprList*,u16,int);
  2845   2846   void sqlite3WhereEnd(WhereInfo*);
  2846   2847   int sqlite3ExprCodeGetColumn(Parse*, Table*, int, int, int, u8);
  2847   2848   void sqlite3ExprCodeGetColumnOfTable(Vdbe*, Table*, int, int, int);
................................................................................
  3014   3015   **     x = sqlite3GetVarint32( A, &B );
  3015   3016   **     x = sqlite3PutVarint32( A, B );
  3016   3017   **
  3017   3018   **     x = getVarint32( A, B );
  3018   3019   **     x = putVarint32( A, B );
  3019   3020   **
  3020   3021   */
  3021         -#define getVarint32(A,B)  (u8)((*(A)<(u8)0x80) ? ((B) = (u32)*(A)),1 : sqlite3GetVarint32((A), (u32 *)&(B)))
  3022         -#define putVarint32(A,B)  (u8)(((u32)(B)<(u32)0x80) ? (*(A) = (unsigned char)(B)),1 : sqlite3PutVarint32((A), (B)))
         3022  +#define getVarint32(A,B)  \
         3023  +  (u8)((*(A)<(u8)0x80)?((B)=(u32)*(A)),1:sqlite3GetVarint32((A),(u32 *)&(B)))
         3024  +#define putVarint32(A,B)  \
         3025  +  (u8)(((u32)(B)<(u32)0x80)?(*(A)=(unsigned char)(B)),1:\
         3026  +  sqlite3PutVarint32((A),(B)))
  3023   3027   #define getVarint    sqlite3GetVarint
  3024   3028   #define putVarint    sqlite3PutVarint
  3025   3029   
  3026   3030   
  3027   3031   const char *sqlite3IndexAffinityStr(Vdbe *, Index *);
  3028   3032   void sqlite3TableAffinityStr(Vdbe *, Table *);
  3029   3033   char sqlite3CompareAffinity(Expr *pExpr, char aff2);