aboutsummaryrefslogtreecommitdiff
path: root/src/complete.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-08-27 23:26:59 +0000
committerdrh <drh@noemail.net>2007-08-27 23:26:59 +0000
commit46c99e0f5d0191c8e1a80be52a3f26f3ba96e0d6 (patch)
tree71e5d68e584fa4810451fffb5c41426e860351b2 /src/complete.c
parent97c8ec325de75d363cc989b4ad1433d33c11f7a8 (diff)
downloadsqlite-46c99e0f5d0191c8e1a80be52a3f26f3ba96e0d6.tar.gz
sqlite-46c99e0f5d0191c8e1a80be52a3f26f3ba96e0d6.zip
Work around problem with forward declarations of constants in MSVC
in the amalgamation. Ticket #2574. (CVS 4304) FossilOrigin-Name: dc80b2e1f4e1d31479aad9f39e651e62f2601fb8
Diffstat (limited to 'src/complete.c')
-rw-r--r--src/complete.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/complete.c b/src/complete.c
index 6571df63f..ae61d8ab0 100644
--- a/src/complete.c
+++ b/src/complete.c
@@ -16,7 +16,7 @@
** separating it out, the code will be automatically omitted from
** static links that do not use it.
**
-** $Id: complete.c,v 1.5 2007/08/21 19:33:56 drh Exp $
+** $Id: complete.c,v 1.6 2007/08/27 23:26:59 drh Exp $
*/
#include "sqliteInt.h"
#ifndef SQLITE_OMIT_COMPLETE
@@ -24,8 +24,16 @@
/*
** This is defined in tokenize.c. We just have to import the definition.
*/
-extern const char sqlite3IsIdChar[];
-#define IdChar(C) (((c=C)&0x80)!=0 || (c>0x1f && sqlite3IsIdChar[c-0x20]))
+#ifndef SQLITE_AMALGAMATION
+#ifdef SQLITE_ASCII
+extern const char sqlite3IsAsciiIdChar[];
+#define IdChar(C) (((c=C)&0x80)!=0 || (c>0x1f && sqlite3IsAsciiIdChar[c-0x20]))
+#endif
+#ifdef SQLITE_EBCDIC
+extern const char sqlite3IsEbcdicIdChar[];
+#define IdChar(C) (((c=C)>=0x42 && sqlite3IsEbcdicIdChar[c-0x40]))
+#endif
+#endif /* SQLITE_AMALGAMATION */
/*