aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/spellfix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-04-25 19:31:33 +0000
committerdrh <drh@noemail.net>2013-04-25 19:31:33 +0000
commitea41dc44c579fe48b3130c43ef040e07ca2875b0 (patch)
tree118de25af367efa28f1dbaf40ec6fde5e3798ab2 /ext/misc/spellfix.c
parente67f418d10ba3a1823bf68713bc0f04a9880fab3 (diff)
downloadsqlite-ea41dc44c579fe48b3130c43ef040e07ca2875b0.tar.gz
sqlite-ea41dc44c579fe48b3130c43ef040e07ca2875b0.zip
Added the nextchar.c extension. Minor changes to the spellfix.c extension
so that it can be appended to an amalgamation and compiled without duplicating symbols. FossilOrigin-Name: 56b9a417f5451631f11c5206d625f11472ee65f9
Diffstat (limited to 'ext/misc/spellfix.c')
-rw-r--r--ext/misc/spellfix.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/ext/misc/spellfix.c b/ext/misc/spellfix.c
index a8492185b..e0a7d1f37 100644
--- a/ext/misc/spellfix.c
+++ b/ext/misc/spellfix.c
@@ -17,15 +17,17 @@
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT1
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <assert.h>
-#define ALWAYS(X) 1
-#define NEVER(X) 0
-typedef unsigned char u8;
-typedef unsigned short u16;
-#include <ctype.h>
+#ifndef SQLITE_AMALGAMATION
+# include <string.h>
+# include <stdio.h>
+# include <stdlib.h>
+# include <assert.h>
+# define ALWAYS(X) 1
+# define NEVER(X) 0
+ typedef unsigned char u8;
+ typedef unsigned short u16;
+# include <ctype.h>
+#endif
/*
** Character classes for ASCII characters: