Skip to content

Commit fc5fc81

Browse files
committed
track 3.7.5
1 parent 92bc322 commit fc5fc81

File tree

227 files changed

+27357
-4329
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+27357
-4329
lines changed

Makefile.in

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ BCC = @BUILD_CC@ @BUILD_CFLAGS@
2626
# will run on the target platform. (BCC and TCC are usually the
2727
# same unless your are cross-compiling.)
2828
#
29-
TCC = @CC@ @CPPFLAGS@ @CFLAGS@ -I. -I${TOP}/src
29+
TCC = @CC@ @CPPFLAGS@ @CFLAGS@ -I. -I${TOP}/src -I${TOP}/ext/rtree
3030

3131
# Define this for the autoconf-based build, so that the code knows it can
3232
# include the generated config.h
@@ -59,10 +59,6 @@ LIBREADLINE = @TARGET_READLINE_LIBS@
5959
#
6060
TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@
6161

62-
# Do threads override each others locks by default (1), or do we test (-1)
63-
#
64-
TCC += -DSQLITE_THREAD_OVERRIDE_LOCK=@THREADSOVERRIDELOCKS@
65-
6662
# Any target libraries which libsqlite must be linked against
6763
#
6864
TLIBS = @LIBS@
@@ -167,7 +163,8 @@ USE_AMALGAMATION = @USE_AMALGAMATION@
167163
#
168164
LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \
169165
backup.lo bitvec.lo btmutex.lo btree.lo build.lo \
170-
callback.lo complete.lo ctime.lo date.lo delete.lo expr.lo fault.lo fkey.lo \
166+
callback.lo complete.lo ctime.lo date.lo delete.lo \
167+
expr.lo fault.lo fkey.lo \
171168
fts3.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo fts3_porter.lo \
172169
fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo fts3_write.lo \
173170
func.lo global.lo hash.lo \
@@ -181,7 +178,7 @@ LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \
181178
table.lo tokenize.lo trigger.lo \
182179
update.lo util.lo vacuum.lo \
183180
vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbetrace.lo \
184-
wal.lo walker.lo where.lo utf.o vtab.lo
181+
wal.lo walker.lo where.lo utf.lo vtab.lo
185182

186183
# Object files for the amalgamation.
187184
#
@@ -363,12 +360,16 @@ TESTSRC = \
363360
$(TOP)/src/test_intarray.c \
364361
$(TOP)/src/test_journal.c \
365362
$(TOP)/src/test_malloc.c \
363+
$(TOP)/src/test_multiplex.c \
366364
$(TOP)/src/test_mutex.c \
367365
$(TOP)/src/test_onefile.c \
368366
$(TOP)/src/test_osinst.c \
369367
$(TOP)/src/test_pcache.c \
368+
$(TOP)/src/test_quota.c \
369+
$(TOP)/src/test_rtree.c \
370370
$(TOP)/src/test_schema.c \
371371
$(TOP)/src/test_server.c \
372+
$(TOP)/src/test_superlock.c \
372373
$(TOP)/src/test_stat.c \
373374
$(TOP)/src/test_tclvar.c \
374375
$(TOP)/src/test_thread.c \
@@ -460,6 +461,8 @@ EXTHDR += \
460461
$(TOP)/ext/rtree/rtree.h
461462
EXTHDR += \
462463
$(TOP)/ext/icu/sqliteicu.h
464+
EXTHDR += \
465+
$(TOP)/ext/rtree/sqlite3rtree.h
463466

464467
# This is the default Makefile target. The objects listed here
465468
# are what get build when you type just "make" with no arguments.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.2
1+
3.7.5

configure

Lines changed: 23 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.62 for sqlite 3.7.2.
3+
# Generated by GNU Autoconf 2.62 for sqlite 3.7.5.
44
#
55
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
66
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
@@ -743,8 +743,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
743743
# Identity of this package.
744744
PACKAGE_NAME='sqlite'
745745
PACKAGE_TARNAME='sqlite'
746-
PACKAGE_VERSION='3.7.2'
747-
PACKAGE_STRING='sqlite 3.7.2'
746+
PACKAGE_VERSION='3.7.5'
747+
PACKAGE_STRING='sqlite 3.7.5'
748748
PACKAGE_BUGREPORT=''
749749

750750
# Factoring default headers for most tests.
@@ -869,7 +869,6 @@ VERSION_NUMBER
869869
BUILD_CC
870870
SQLITE_THREADSAFE
871871
XTHREADCONNECT
872-
THREADSOVERRIDELOCKS
873872
ALLOWRELEASE
874873
TEMP_STORE
875874
BUILD_EXEEXT
@@ -912,7 +911,6 @@ enable_largefile
912911
with_hints
913912
enable_threadsafe
914913
enable_cross_thread_connections
915-
enable_threads_override_locks
916914
enable_releasemode
917915
enable_tempstore
918916
enable_tcl
@@ -1487,7 +1485,7 @@ if test "$ac_init_help" = "long"; then
14871485
# Omit some internal or obsolete options to make the list less imposing.
14881486
# This message is too long to be a string in the A/UX 3.1 sh.
14891487
cat <<_ACEOF
1490-
\`configure' configures sqlite 3.7.2 to adapt to many kinds of systems.
1488+
\`configure' configures sqlite 3.7.5 to adapt to many kinds of systems.
14911489
14921490
Usage: $0 [OPTION]... [VAR=VALUE]...
14931491
@@ -1552,7 +1550,7 @@ fi
15521550

15531551
if test -n "$ac_init_help"; then
15541552
case $ac_init_help in
1555-
short | recursive ) echo "Configuration of sqlite 3.7.2:";;
1553+
short | recursive ) echo "Configuration of sqlite 3.7.5:";;
15561554
esac
15571555
cat <<\_ACEOF
15581556
@@ -1569,8 +1567,6 @@ Optional Features:
15691567
--enable-threadsafe Support threadsafe operation
15701568
--enable-cross-thread-connections
15711569
Allow connection sharing across threads
1572-
--enable-threads-override-locks
1573-
Threads can override each others locks
15741570
--enable-releasemode Support libtool link to release mode
15751571
--enable-tempstore Use an in-ram database for temporary tables
15761572
(never,no,yes,always)
@@ -1670,7 +1666,7 @@ fi
16701666
test -n "$ac_init_help" && exit $ac_status
16711667
if $ac_init_version; then
16721668
cat <<\_ACEOF
1673-
sqlite configure 3.7.2
1669+
sqlite configure 3.7.5
16741670
generated by GNU Autoconf 2.62
16751671
16761672
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1684,7 +1680,7 @@ cat >config.log <<_ACEOF
16841680
This file contains any messages produced by compilers while
16851681
running configure, to aid debugging if configure makes a mistake.
16861682
1687-
It was created by sqlite $as_me 3.7.2, which was
1683+
It was created by sqlite $as_me 3.7.5, which was
16881684
generated by GNU Autoconf 2.62. Invocation command line was
16891685
16901686
$ $0 $@
@@ -3738,13 +3734,13 @@ if test "${lt_cv_nm_interface+set}" = set; then
37383734
else
37393735
lt_cv_nm_interface="BSD nm"
37403736
echo "int some_variable = 0;" > conftest.$ac_ext
3741-
(eval echo "\"\$as_me:3741: $ac_compile\"" >&5)
3737+
(eval echo "\"\$as_me:3737: $ac_compile\"" >&5)
37423738
(eval "$ac_compile" 2>conftest.err)
37433739
cat conftest.err >&5
3744-
(eval echo "\"\$as_me:3744: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3740+
(eval echo "\"\$as_me:3740: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
37453741
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
37463742
cat conftest.err >&5
3747-
(eval echo "\"\$as_me:3747: output\"" >&5)
3743+
(eval echo "\"\$as_me:3743: output\"" >&5)
37483744
cat conftest.out >&5
37493745
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
37503746
lt_cv_nm_interface="MS dumpbin"
@@ -4966,7 +4962,7 @@ ia64-*-hpux*)
49664962
;;
49674963
*-*-irix6*)
49684964
# Find out which ABI we are using.
4969-
echo '#line 4969 "configure"' > conftest.$ac_ext
4965+
echo '#line 4965 "configure"' > conftest.$ac_ext
49704966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49714967
(eval $ac_compile) 2>&5
49724968
ac_status=$?
@@ -6835,11 +6831,11 @@ else
68356831
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
68366832
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
68376833
-e 's:$: $lt_compiler_flag:'`
6838-
(eval echo "\"\$as_me:6838: $lt_compile\"" >&5)
6834+
(eval echo "\"\$as_me:6834: $lt_compile\"" >&5)
68396835
(eval "$lt_compile" 2>conftest.err)
68406836
ac_status=$?
68416837
cat conftest.err >&5
6842-
echo "$as_me:6842: \$? = $ac_status" >&5
6838+
echo "$as_me:6838: \$? = $ac_status" >&5
68436839
if (exit $ac_status) && test -s "$ac_outfile"; then
68446840
# The compiler can only warn and ignore the option if not recognized
68456841
# So say no if there are warnings other than the usual output.
@@ -7174,11 +7170,11 @@ else
71747170
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
71757171
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
71767172
-e 's:$: $lt_compiler_flag:'`
7177-
(eval echo "\"\$as_me:7177: $lt_compile\"" >&5)
7173+
(eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
71787174
(eval "$lt_compile" 2>conftest.err)
71797175
ac_status=$?
71807176
cat conftest.err >&5
7181-
echo "$as_me:7181: \$? = $ac_status" >&5
7177+
echo "$as_me:7177: \$? = $ac_status" >&5
71827178
if (exit $ac_status) && test -s "$ac_outfile"; then
71837179
# The compiler can only warn and ignore the option if not recognized
71847180
# So say no if there are warnings other than the usual output.
@@ -7279,11 +7275,11 @@ else
72797275
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
72807276
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
72817277
-e 's:$: $lt_compiler_flag:'`
7282-
(eval echo "\"\$as_me:7282: $lt_compile\"" >&5)
7278+
(eval echo "\"\$as_me:7278: $lt_compile\"" >&5)
72837279
(eval "$lt_compile" 2>out/conftest.err)
72847280
ac_status=$?
72857281
cat out/conftest.err >&5
7286-
echo "$as_me:7286: \$? = $ac_status" >&5
7282+
echo "$as_me:7282: \$? = $ac_status" >&5
72877283
if (exit $ac_status) && test -s out/conftest2.$ac_objext
72887284
then
72897285
# The compiler can only warn and ignore the option if not recognized
@@ -7334,11 +7330,11 @@ else
73347330
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
73357331
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
73367332
-e 's:$: $lt_compiler_flag:'`
7337-
(eval echo "\"\$as_me:7337: $lt_compile\"" >&5)
7333+
(eval echo "\"\$as_me:7333: $lt_compile\"" >&5)
73387334
(eval "$lt_compile" 2>out/conftest.err)
73397335
ac_status=$?
73407336
cat out/conftest.err >&5
7341-
echo "$as_me:7341: \$? = $ac_status" >&5
7337+
echo "$as_me:7337: \$? = $ac_status" >&5
73427338
if (exit $ac_status) && test -s out/conftest2.$ac_objext
73437339
then
73447340
# The compiler can only warn and ignore the option if not recognized
@@ -10147,7 +10143,7 @@ else
1014710143
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1014810144
lt_status=$lt_dlunknown
1014910145
cat > conftest.$ac_ext <<_LT_EOF
10150-
#line 10150 "configure"
10146+
#line 10146 "configure"
1015110147
#include "confdefs.h"
1015210148
1015310149
#if HAVE_DLFCN_H
@@ -10243,7 +10239,7 @@ else
1024310239
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1024410240
lt_status=$lt_dlunknown
1024510241
cat > conftest.$ac_ext <<_LT_EOF
10246-
#line 10246 "configure"
10242+
#line 10242 "configure"
1024710243
#include "confdefs.h"
1024810244
1024910245
#if HAVE_DLFCN_H
@@ -12580,32 +12576,6 @@ $as_echo "yes" >&6; }
1258012576
fi
1258112577
1258212578
12583-
##########
12584-
# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
12585-
# default. Normally, a test at runtime is performed to determine the
12586-
# appropriate value of this variable. Use this option only if you're sure that
12587-
# threads can safely override each others locks in all runtime situations.
12588-
#
12589-
# Check whether --enable-threads-override-locks was given.
12590-
if test "${enable_threads_override_locks+set}" = set; then
12591-
enableval=$enable_threads_override_locks;
12592-
else
12593-
enable_threads_override_locks=no
12594-
fi
12595-
12596-
{ $as_echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
12597-
$as_echo_n "checking whether threads can override each others locks... " >&6; }
12598-
if test "$enable_threads_override_locks" = "no"; then
12599-
THREADSOVERRIDELOCKS='-1'
12600-
{ $as_echo "$as_me:$LINENO: result: no" >&5
12601-
$as_echo "no" >&6; }
12602-
else
12603-
THREADSOVERRIDELOCKS='1'
12604-
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12605-
$as_echo "yes" >&6; }
12606-
fi
12607-
12608-
1260912579
##########
1261012580
# Do we want to support release
1261112581
#
@@ -13972,7 +13942,7 @@ exec 6>&1
1397213942
# report actual input values of CONFIG_FILES etc. instead of their
1397313943
# values after options handling.
1397413944
ac_log="
13975-
This file was extended by sqlite $as_me 3.7.2, which was
13945+
This file was extended by sqlite $as_me 3.7.5, which was
1397613946
generated by GNU Autoconf 2.62. Invocation command line was
1397713947
1397813948
CONFIG_FILES = $CONFIG_FILES
@@ -14025,7 +13995,7 @@ Report bugs to <bug-autoconf@gnu.org>."
1402513995
_ACEOF
1402613996
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1402713997
ac_cs_version="\\
14028-
sqlite config.status 3.7.2
13998+
sqlite config.status 3.7.5
1402913999
configured by $0, generated by GNU Autoconf 2.62,
1403014000
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1403114001

configure.ac

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -268,24 +268,6 @@ else
268268
fi
269269
AC_SUBST(XTHREADCONNECT)
270270

271-
##########
272-
# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
273-
# default. Normally, a test at runtime is performed to determine the
274-
# appropriate value of this variable. Use this option only if you're sure that
275-
# threads can safely override each others locks in all runtime situations.
276-
#
277-
AC_ARG_ENABLE(threads-override-locks,
278-
AC_HELP_STRING([--enable-threads-override-locks],[Threads can override each others locks]),,enable_threads_override_locks=no)
279-
AC_MSG_CHECKING([whether threads can override each others locks])
280-
if test "$enable_threads_override_locks" = "no"; then
281-
THREADSOVERRIDELOCKS='-1'
282-
AC_MSG_RESULT([no])
283-
else
284-
THREADSOVERRIDELOCKS='1'
285-
AC_MSG_RESULT([yes])
286-
fi
287-
AC_SUBST(THREADSOVERRIDELOCKS)
288-
289271
##########
290272
# Do we want to support release
291273
#

ext/fts2/fts2.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,6 @@
306306
#include <stdlib.h>
307307
#include <stdio.h>
308308
#include <string.h>
309-
#include <ctype.h>
310-
311309
#include "fts2.h"
312310
#include "fts2_hash.h"
313311
#include "fts2_tokenizer.h"
@@ -345,13 +343,13 @@ SQLITE_EXTENSION_INIT1
345343
*/
346344
/* TODO(shess) Is __isascii() a portable version of (c&0x80)==0? */
347345
static int safe_isspace(char c){
348-
return (c&0x80)==0 ? isspace(c) : 0;
346+
return c==' ' || c=='\t' || c=='\n' || c=='\r' || c=='\v' || c=='\f';
349347
}
350348
static int safe_tolower(char c){
351-
return (c&0x80)==0 ? tolower(c) : c;
349+
return (c>='A' && c<='Z') ? (c - 'A' + 'a') : c;
352350
}
353351
static int safe_isalnum(char c){
354-
return (c&0x80)==0 ? isalnum(c) : 0;
352+
return (c>='0' && c<='9') || (c>='A' && c<='Z') || (c>='a' && c<='z');
355353
}
356354

357355
typedef enum DocListType {

ext/fts2/fts2_porter.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include <stdlib.h>
3030
#include <stdio.h>
3131
#include <string.h>
32-
#include <ctype.h>
3332

3433
#include "fts2_tokenizer.h"
3534

ext/fts2/fts2_tokenizer1.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include <stdlib.h>
3030
#include <stdio.h>
3131
#include <string.h>
32-
#include <ctype.h>
3332

3433
#include "fts2_tokenizer.h"
3534

@@ -89,7 +88,8 @@ static int simpleCreate(
8988
/* Mark non-alphanumeric ASCII characters as delimiters */
9089
int i;
9190
for(i=1; i<0x80; i++){
92-
t->delim[i] = !isalnum(i);
91+
t->delim[i] = !((i>='0' && i<='9') || (i>='A' && i<='Z') ||
92+
(i>='a' && i<='z'));
9393
}
9494
}
9595

@@ -191,7 +191,7 @@ static int simpleNext(
191191
** case-insensitivity.
192192
*/
193193
unsigned char ch = p[iStartOffset+i];
194-
c->pToken[i] = ch<0x80 ? tolower(ch) : ch;
194+
c->pToken[i] = (ch>='A' && ch<='Z') ? (ch - 'A' + 'a') : ch;
195195
}
196196
*ppToken = c->pToken;
197197
*pnBytes = n;

0 commit comments

Comments
 (0)