/ Check-in [c9c1f8d6]
Login

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

Overview
Comment:Fix harmless macro redefinition warnings in the totype extension.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c9c1f8d6701b0a1bc939a7e35e565d4160dbf8d3
User & Date: drh 2013-10-15 11:58:34
Context
2013-10-15
14:29
Fix an 8-byte alignment problem on the "crash test" harness (test code, not in the core) that causes problems on Sparc. check-in: bcbc6503 user: drh tags: trunk
14:10
Merge the latest trunk changes into the sessions branch. This merge should fix the build for WinRT. check-in: e111e4ed user: drh tags: sessions
11:58
Fix harmless macro redefinition warnings in the totype extension. check-in: c9c1f8d6 user: drh tags: trunk
10:43
Fix harmless macro redefinition warnings in the totype extension. Closed-Leaf check-in: a38adeb7 user: mistachkin tags: noWarnings
2013-10-14
22:35
Fix harmless compiler warning in the totype extension. Include all standard whitespace characters in totypeIsspace. Minor adjustments to style and comments. check-in: 73238f65 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/misc/totype.c.

    52     52   #endif
    53     53   
    54     54   /*
    55     55   ** Constants for the largest and smallest possible 64-bit signed integers.
    56     56   ** These macros are designed to work correctly on both 32-bit and 64-bit
    57     57   ** compilers.
    58     58   */
    59         -#define LARGEST_INT64  (0xffffffff|(((sqlite3_int64)0x7fffffff)<<32))
    60         -#define SMALLEST_INT64 (((sqlite3_int64)-1) - LARGEST_INT64)
           59  +#ifndef LARGEST_INT64
           60  +# define LARGEST_INT64   (0xffffffff|(((sqlite3_int64)0x7fffffff)<<32))
           61  +#endif
           62  +
           63  +#ifndef SMALLEST_INT64
           64  +# define SMALLEST_INT64  (((sqlite3_int64)-1) - LARGEST_INT64)
           65  +#endif
    61     66   
    62     67   /*
    63     68   ** Return TRUE if character c is a whitespace character
    64     69   */
    65     70   static int totypeIsspace(unsigned char c){
    66     71     return c==' ' || c=='\t' || c=='\n' || c=='\v' || c=='\f' || c=='\r';
    67     72   }