/ Check-in [3c53ee0f]
Login

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

Overview
Comment:Disable assert() in the spellfix extension if not compiled with SQLITE_DEBUG.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3c53ee0fdea4cbf2590e2b289b021b0ef8b7ead2945db1bdfc767432d9447acb
User & Date: drh 2018-02-14 20:25:33
Context
2018-02-14
20:58
Performance optimizations to the editdist3() function in the spellfix extension. check-in: 70d304dc user: drh tags: trunk
20:25
Disable assert() in the spellfix extension if not compiled with SQLITE_DEBUG. check-in: 3c53ee0f user: drh tags: trunk
15:30
New test cases for the editdist3() function in the spellfix extension. check-in: 2d3f1f22 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/misc/spellfix.c.

    14     14   ** to search a large vocabulary for close matches.  See separate
    15     15   ** documentation (http://www.sqlite.org/spellfix1.html) for details.
    16     16   */
    17     17   #include "sqlite3ext.h"
    18     18   SQLITE_EXTENSION_INIT1
    19     19   
    20     20   #ifndef SQLITE_AMALGAMATION
           21  +# if !defined(NDEBUG) && !defined(SQLITE_DEBUG)
           22  +#  define NDEBUG 1
           23  +# endif
           24  +# if defined(NDEBUG) && defined(SQLITE_DEBUG)
           25  +#  undef NDEBUG
           26  +# endif
    21     27   # include <string.h>
    22     28   # include <stdio.h>
    23     29   # include <stdlib.h>
    24     30   # include <assert.h>
    25     31   # define ALWAYS(X)  1
    26     32   # define NEVER(X)   0
    27     33     typedef unsigned char u8;