SQLite4
Check-in [d966049dd6]
Not logged in

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

Overview
Comment:Add the definition of sqlite4_stricmp() to sqlite.h.in. Avoid multiple declarations the u8 and similar typedefs in the amalgmation.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d966049dd6d4012fbfbe4bab5ccc8c429ee6c433
User & Date: drh 2013-01-31 05:58:14
Context
2013-02-01
19:49
Simplifications and clarifications to lsmusr.wiki. check-in: 33eca2e1f4 user: dan tags: trunk
2013-01-31
05:58
Add the definition of sqlite4_stricmp() to sqlite.h.in. Avoid multiple declarations the u8 and similar typedefs in the amalgmation. check-in: d966049dd6 user: drh tags: trunk
05:36
Change all occurrences of sqlite4StrICmp to sqlite4_stricmp and change sqlite4StrNICmp to sqlite4_strnicmp. check-in: b6d0a62048 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/lsmInt.h.

    93     93   typedef struct TransMark TransMark;
    94     94   typedef struct Tree Tree;
    95     95   typedef struct TreeCursor TreeCursor;
    96     96   typedef struct TreeHeader TreeHeader;
    97     97   typedef struct TreeMark TreeMark;
    98     98   typedef struct TreeRoot TreeRoot;
    99     99   
          100  +#ifndef _SQLITEINT_H_
   100    101   typedef unsigned char u8;
   101    102   typedef unsigned short int u16;
   102    103   typedef unsigned int u32;
   103    104   typedef lsm_i64 i64;
   104    105   typedef unsigned long long int u64;
          106  +#endif
   105    107   
   106    108   /* A page number is a 64-bit integer. */
   107    109   typedef i64 Pgno;
   108    110   
   109    111   #ifdef LSM_DEBUG
   110    112   int lsmErrorBkpt(int);
   111    113   #else

Changes to src/sqlite.h.in.

  4114   4114   ** CAPIREF: String Comparison
  4115   4115   **
  4116   4116   ** ^The [sqlite4_strnicmp()] API allows applications and extensions to
  4117   4117   ** compare the contents of two buffers containing UTF-8 strings in a
  4118   4118   ** case-independent fashion, using the same definition of case independence 
  4119   4119   ** that SQLite uses internally when comparing identifiers.
  4120   4120   */
         4121  +int sqlite4_stricmp(const char*, const char*);
  4121   4122   int sqlite4_strnicmp(const char *, const char *, int);
  4122   4123   
  4123   4124   /*
  4124   4125   ** CAPIREF: Error Logging Interface
  4125   4126   **
  4126   4127   ** ^The [sqlite4_log()] interface writes a message into the error log
  4127   4128   ** established by the [SQLITE4_CONFIG_LOG] option to [sqlite4_env_config()].