diff options
author | shane <shane@noemail.net> | 2008-07-31 01:47:11 +0000 |
---|---|---|
committer | shane <shane@noemail.net> | 2008-07-31 01:47:11 +0000 |
commit | 2a5fc4d6f5ca322362ff965b428c662a7366786f (patch) | |
tree | c00f6f01c088b6e5ae44e4b8ce4af087ec4474de /src | |
parent | 9200309ef6964307bab98dd9d1029ab779cac50e (diff) | |
download | sqlite-2a5fc4d6f5ca322362ff965b428c662a7366786f.tar.gz sqlite-2a5fc4d6f5ca322362ff965b428c662a7366786f.zip |
Omit calls to test_destructor16() if SQLITE_OMIT_UTF16 defined. (CVS 5508)
FossilOrigin-Name: 2d5cec53c2f31875d198d81ac4fd54e7066ea0ff
Diffstat (limited to 'src')
-rw-r--r-- | src/test_func.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test_func.c b/src/test_func.c index d43b7a9f2..83f9730df 100644 --- a/src/test_func.c +++ b/src/test_func.c @@ -12,7 +12,7 @@ ** Code for testing all sorts of SQLite interfaces. This code ** implements new SQL functions used by the test scripts. ** -** $Id: test_func.c,v 1.8 2008/07/11 21:02:54 drh Exp $ +** $Id: test_func.c,v 1.9 2008/07/31 01:47:11 shane Exp $ */ #include "sqlite3.h" #include "tcl.h" @@ -114,6 +114,7 @@ static void test_destructor( memcpy(zVal, sqlite3_value_text(argv[0]), len); sqlite3_result_text(pCtx, zVal, -1, destructor); } +#ifndef SQLITE_OMIT_UTF16 static void test_destructor16( sqlite3_context *pCtx, int nArg, @@ -136,6 +137,7 @@ static void test_destructor16( memcpy(zVal, sqlite3_value_text16(argv[0]), len); sqlite3_result_text16(pCtx, zVal, -1, destructor); } +#endif static void test_destructor_count( sqlite3_context *pCtx, int nArg, @@ -272,7 +274,9 @@ static int registerTestFunctions(sqlite3 *db){ } aFuncs[] = { { "randstr", 2, SQLITE_UTF8, randStr }, { "test_destructor", 1, SQLITE_UTF8, test_destructor}, +#ifndef SQLITE_OMIT_UTF16 { "test_destructor16", 1, SQLITE_UTF8, test_destructor16}, +#endif { "test_destructor_count", 0, SQLITE_UTF8, test_destructor_count}, { "test_auxdata", -1, SQLITE_UTF8, test_auxdata}, { "test_error", 1, SQLITE_UTF8, test_error}, |