/ Check-in [c447441c]
Login

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

Overview
Comment:Avoid a duplication #define in FTS5
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c447441cff1884d6fe5f0a76d64b3e7d908584a1
User & Date: drh 2017-02-13 13:20:02
Context
2017-02-13
13:26
Fix typos in using the MSVC_VERSION macro. check-in: f3b65926 user: drh tags: trunk
13:20
Avoid a duplication #define in FTS5 check-in: c447441c user: drh tags: trunk
2017-02-11
14:59
Fix indexes on expressions so that they can be actually used with a COLLATE clause. check-in: e464b919 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5Int.h.

    26     26   typedef unsigned char  u8;
    27     27   typedef unsigned int   u32;
    28     28   typedef unsigned short u16;
    29     29   typedef short i16;
    30     30   typedef sqlite3_int64 i64;
    31     31   typedef sqlite3_uint64 u64;
    32     32   
    33         -#define ArraySize(x) ((int)(sizeof(x) / sizeof(x[0])))
           33  +#ifndef ArraySize
           34  +# define ArraySize(x) ((int)(sizeof(x) / sizeof(x[0])))
           35  +#endif
    34     36   
    35     37   #define testcase(x)
    36     38   #define ALWAYS(x) 1
    37     39   #define NEVER(x) 0
    38     40   
    39     41   #define MIN(x,y) (((x) < (y)) ? (x) : (y))
    40     42   #define MAX(x,y) (((x) > (y)) ? (x) : (y))