1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Omit the fts3 unicode character class routines from the build if fts3/4

is disabled.

FossilOrigin-Name: c00bb5d4601efc15933f222349e96a043b610a19
This commit is contained in:
drh
2012-05-28 12:22:00 +00:00
parent 2bfcce45eb
commit a9cfaba95a
4 changed files with 17 additions and 14 deletions

View File

@ -507,7 +507,8 @@ proc print_fileheader {} {
*/
}]
puts ""
puts "#ifndef SQLITE_DISABLE_FTS3_UNICODE"
puts "#if !defined(SQLITE_DISABLE_FTS3_UNICODE)"
puts "#if defined(SQLITE_ENABLE_FTS3) || defined(SQLITE_ENABLE_FTS4)"
puts ""
puts "#include <assert.h>"
puts ""
@ -534,7 +535,7 @@ proc print_test_main {} {
# our liking.
#
proc usage {} {
puts -nonewline stderr "Usage: $::argv0 ?-test? i"
puts -nonewline stderr "Usage: $::argv0 ?-test? "
puts stderr "<CaseFolding.txt file> <UnicodeData.txt file>"
exit 1
}
@ -569,5 +570,5 @@ if {$::generate_test_code} {
print_test_main
}
puts "#endif /* ifndef SQLITE_DISABLE_FTS3_UNICODE */"
puts "#endif /* defined(SQLITE_ENABLE_FTS3) || defined(SQLITE_ENABLE_FTS4) */"
puts "#endif /* !defined(SQLITE_DISABLE_FTS3_UNICODE) */"