Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
b3e70cbf
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b3e70cbf
编写于
11月 24, 2013
作者:
G
geniusgogo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify the RTT is abbreviated error, change to be rtthread.
上级
6433eeae
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
436 addition
and
436 deletion
+436
-436
components/external/SQLite-3.8.1/make/Makefile
components/external/SQLite-3.8.1/make/Makefile
+10
-10
components/external/SQLite-3.8.1/src/mem1.c
components/external/SQLite-3.8.1/src/mem1.c
+1
-1
components/external/SQLite-3.8.1/src/mutex.h
components/external/SQLite-3.8.1/src/mutex.h
+3
-3
components/external/SQLite-3.8.1/src/mutex_rtthread.c
components/external/SQLite-3.8.1/src/mutex_rtthread.c
+28
-28
components/external/SQLite-3.8.1/src/os.h
components/external/SQLite-3.8.1/src/os.h
+2
-2
components/external/SQLite-3.8.1/src/os_rtthread.c
components/external/SQLite-3.8.1/src/os_rtthread.c
+173
-173
components/external/SQLite-3.8.1/src/sqliteInt.h
components/external/SQLite-3.8.1/src/sqliteInt.h
+1
-1
components/external/SQLite-3.8.1/tool/mksqlite3c.tcl
components/external/SQLite-3.8.1/tool/mksqlite3c.tcl
+2
-2
components/external/sqlite/sqlite3.c
components/external/sqlite/sqlite3.c
+216
-216
未找到文件。
components/external/SQLite-3.8.1/make/Makefile
浏览文件 @
b3e70cbf
...
...
@@ -27,7 +27,7 @@ BCC = gcc -g
# same unless your are cross-compiling.)
#
TCC
=
arm-none-eabi-gcc
-g
-O2
\
-DSQLITE_OS_OTHER
=
1
-DSQLITE_OS_RTT
=
1
\
-DSQLITE_OS_OTHER
=
1
-DSQLITE_OS_RTT
HREAD
=
1
\
-I
.
-I
${TOP}
/src
-I
${TOP}
/ext/rtree
\
-I
../../../../include
\
-I
../../../../components/dfs/include
\
...
...
@@ -82,7 +82,7 @@ TEMP_STORE = -DSQLITE_TEMP_STORE=1
# based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
# The same set of OMIT and ENABLE flags should be passed to the
# LEMON parser generator and the mkkeywordhash tool as well.
OPT_FEATURE_FLAGS
=
-DSQLITE_OMIT_LOAD_EXTENSION
=
1
-DSQLITE_RTT_NO_WIDE
=
1
\
OPT_FEATURE_FLAGS
=
-DSQLITE_OMIT_LOAD_EXTENSION
=
1
-DSQLITE_RTT
HREAD
_NO_WIDE
=
1
\
-DSQLITE_OMIT_WAL
-DSQLITE_ENABLE_LOCKING_STYLE
=
0
\
-DSQLITE_DISABLE_LOCKING_STYLE
=
1
...
...
@@ -182,8 +182,8 @@ LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \
icu.lo insert.lo journal.lo legacy.lo loadext.lo
\
main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo
\
memjournal.lo
\
mutex.lo mutex_noop.lo mutex_rtt.lo
\
notify.lo opcodes.lo os.lo os_rtt.lo
\
mutex.lo mutex_noop.lo mutex_rtt
hread
.lo
\
notify.lo opcodes.lo os.lo os_rtt
hread
.lo
\
pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo
\
random.lo resolve.lo rowset.lo rtree.lo
select
.lo status.lo
\
table.lo tokenize.lo trigger.lo
\
...
...
@@ -242,12 +242,12 @@ SRC = \
$(TOP)
/src/mutex.c
\
$(TOP)
/src/mutex.h
\
$(TOP)
/src/mutex_noop.c
\
$(TOP)
/src/mutex_rtt.c
\
$(TOP)
/src/mutex_rtt
hread
.c
\
$(TOP)
/src/notify.c
\
$(TOP)
/src/os.c
\
$(TOP)
/src/os.h
\
$(TOP)
/src/os_common.h
\
$(TOP)
/src/os_rtt.c
\
$(TOP)
/src/os_rtt
hread
.c
\
$(TOP)
/src/pager.c
\
$(TOP)
/src/pager.h
\
$(TOP)
/src/parse.y
\
...
...
@@ -683,8 +683,8 @@ mutex.lo: $(TOP)/src/mutex.c $(HDR)
mutex_noop.lo
:
$(TOP)/src/mutex_noop.c $(HDR)
$(LTCOMPILE)
$(TEMP_STORE)
-c
$(TOP)
/src/mutex_noop.c
mutex_rtt
.lo
:
$(TOP)/src/mutex_rtt
.c $(HDR)
$(LTCOMPILE)
$(TEMP_STORE)
-c
$(TOP)
/src/mutex_rtt.c
mutex_rtt
hread.lo
:
$(TOP)/src/mutex_rtthread
.c $(HDR)
$(LTCOMPILE)
$(TEMP_STORE)
-c
$(TOP)
/src/mutex_rtt
hread
.c
notify.lo
:
$(TOP)/src/notify.c $(HDR)
$(LTCOMPILE)
$(TEMP_STORE)
-c
$(TOP)
/src/notify.c
...
...
@@ -701,8 +701,8 @@ pcache1.lo: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h
os.lo
:
$(TOP)/src/os.c $(HDR)
$(LTCOMPILE)
$(TEMP_STORE)
-c
$(TOP)
/src/os.c
os_rtt
.lo
:
$(TOP)/src/os_rtt
.c $(HDR)
$(LTCOMPILE)
$(TEMP_STORE)
-c
$(TOP)
/src/os_rtt.c
os_rtt
hread.lo
:
$(TOP)/src/os_rtthread
.c $(HDR)
$(LTCOMPILE)
$(TEMP_STORE)
-c
$(TOP)
/src/os_rtt
hread
.c
pragma.lo
:
$(TOP)/src/pragma.c $(HDR)
$(LTCOMPILE)
$(TEMP_STORE)
-c
$(TOP)
/src/pragma.c
...
...
components/external/SQLite-3.8.1/src/mem1.c
浏览文件 @
b3e70cbf
...
...
@@ -75,7 +75,7 @@ static malloc_zone_t* _sqliteZone_;
#define SQLITE_MALLOCSIZE(x) \
(_sqliteZone_ ? _sqliteZone_->size(_sqliteZone_,x) : malloc_size(x))
#elif defined(SQLITE_OS_RTT)
#elif defined(SQLITE_OS_RTT
HREAD
)
#include <rtthread.h>
/*
** Use standard C library malloc and free on non-Apple systems.
...
...
components/external/SQLite-3.8.1/src/mutex.h
浏览文件 @
b3e70cbf
...
...
@@ -33,7 +33,7 @@
** implementation can be overridden at
** start-time.
**
** SQLITE_MUTEX_RTT
For multi_
threaded applications on rt-thread.
** SQLITE_MUTEX_RTT
HREAD For multi-
threaded applications on rt-thread.
**
** SQLITE_MUTEX_PTHREADS For multi-threaded applications on Unix.
**
...
...
@@ -47,8 +47,8 @@
# define SQLITE_MUTEX_PTHREADS
# elif SQLITE_OS_WIN
# define SQLITE_MUTEX_W32
# elif SQLITE_OS_RTT
# define SQLITE_MUTEX_RTT
# elif SQLITE_OS_RTT
HREAD
# define SQLITE_MUTEX_RTT
HREAD
# else
# define SQLITE_MUTEX_NOOP
# endif
...
...
components/external/SQLite-3.8.1/src/mutex_rtt.c
→
components/external/SQLite-3.8.1/src/mutex_rtt
hread
.c
浏览文件 @
b3e70cbf
...
...
@@ -20,7 +20,7 @@
** Note that this implementation requires a version of rt-thread that
** supports recursive mutexes.
*/
#ifdef SQLITE_MUTEX_RTT
#ifdef SQLITE_MUTEX_RTT
HREAD
#include <rtthread.h>
...
...
@@ -58,23 +58,23 @@ struct sqlite3_mutex {
** The sqlite3_mutex_held() and sqlite3_mutex_notheld() routine are
** intended for use only inside assert() statements. On some platforms,
** there might be race conditions that can cause these routines to
** deliver incorrect results. In particular, if rtt_equal() is
** deliver incorrect results. In particular, if rtt
hread
_equal() is
** not an atomic operation, then these routines might delivery
** incorrect results. On most platforms, rtt_equal() is a
** incorrect results. On most platforms, rtt
hread
_equal() is a
** comparison of two integers and is therefore atomic. But we are
** told that HPUX is not such a platform. If so, then these routines
** will not always work correctly on HPUX.
**
** On those platforms where rtt_equal() is not atomic, SQLite
** On those platforms where rtt
hread
_equal() is not atomic, SQLite
** should be compiled without -DSQLITE_DEBUG and with -DNDEBUG to
** make sure no assert() statements are evaluated and hence these
** routines are never called.
*/
#if !defined(NDEBUG) || defined(SQLITE_DEBUG)
static
int
rttMutexHeld
(
sqlite3_mutex
*
p
){
static
int
rtt
hread
MutexHeld
(
sqlite3_mutex
*
p
){
return
(
p
->
nRef
!=
0
&&
p
->
owner
==
rt_thread_self
());
}
static
int
rttMutexNotheld
(
sqlite3_mutex
*
p
){
static
int
rtt
hread
MutexNotheld
(
sqlite3_mutex
*
p
){
return
(
p
->
nRef
==
0
||
p
->
owner
!=
rt_thread_self
());
}
#endif
...
...
@@ -82,8 +82,8 @@ static int rttMutexNotheld(sqlite3_mutex *p){
/*
** Initialize and deinitialize the mutex subsystem.
*/
static
int
rttMutexInit
(
void
){
return
SQLITE_OK
;
}
static
int
rttMutexEnd
(
void
){
return
SQLITE_OK
;
}
static
int
rtt
hread
MutexInit
(
void
){
return
SQLITE_OK
;
}
static
int
rtt
hread
MutexEnd
(
void
){
return
SQLITE_OK
;
}
/*
** The sqlite3_mutex_alloc() routine allocates a new
...
...
@@ -127,7 +127,7 @@ static int rttMutexEnd(void){ return SQLITE_OK; }
** mutex types, the same mutex is returned on every call that has
** the same type number.
*/
static
sqlite3_mutex
*
rtt
MutexAlloc
(
int
iType
){
static
sqlite3_mutex
*
rtthread
MutexAlloc
(
int
iType
){
static
sqlite3_mutex
staticMutexes
[]
=
{
SQLITE3_MUTEX_INITIALIZER
,
SQLITE3_MUTEX_INITIALIZER
,
...
...
@@ -179,7 +179,7 @@ static sqlite3_mutex *rttMutexAlloc(int iType){
** allocated mutex. SQLite is careful to deallocate every
** mutex that it allocates.
*/
static
void
rttMutexFree
(
sqlite3_mutex
*
p
){
static
void
rtt
hread
MutexFree
(
sqlite3_mutex
*
p
){
assert
(
p
->
nRef
==
0
);
assert
(
p
->
id
==
SQLITE_MUTEX_FAST
||
p
->
id
==
SQLITE_MUTEX_RECURSIVE
);
rt_mutex_detach
(
&
p
->
mutex
);
...
...
@@ -197,12 +197,12 @@ static void rttMutexFree(sqlite3_mutex *p){
** can enter. If the same thread tries to enter any other kind of mutex
** more than once, the behavior is undefined.
*/
static
void
rttMutexEnter
(
sqlite3_mutex
*
p
){
assert
(
p
->
id
==
SQLITE_MUTEX_RECURSIVE
||
rttMutexNotheld
(
p
)
);
static
void
rtt
hread
MutexEnter
(
sqlite3_mutex
*
p
){
assert
(
p
->
id
==
SQLITE_MUTEX_RECURSIVE
||
rtt
hread
MutexNotheld
(
p
)
);
#ifdef SQLITE_HOMEGROWN_RECURSIVE_MUTEX
/* If recursive mutexes are not available, then we have to grow
** our own. This implementation assumes that rtt_equal()
** our own. This implementation assumes that rtt
hread
_equal()
** is atomic - that it cannot be deceived into thinking self
** and p->owner are equal if p->owner changes between two values
** that are not equal to self while the comparison is taking place.
...
...
@@ -239,13 +239,13 @@ static void rttMutexEnter(sqlite3_mutex *p){
}
#endif
}
static
int
rttMutexTry
(
sqlite3_mutex
*
p
){
static
int
rtt
hread
MutexTry
(
sqlite3_mutex
*
p
){
int
rc
;
assert
(
p
->
id
==
SQLITE_MUTEX_RECURSIVE
||
rttMutexNotheld
(
p
)
);
assert
(
p
->
id
==
SQLITE_MUTEX_RECURSIVE
||
rtt
hread
MutexNotheld
(
p
)
);
#ifdef SQLITE_HOMEGROWN_RECURSIVE_MUTEX
/* If recursive mutexes are not available, then we have to grow
** our own. This implementation assumes that rtt_equal()
** our own. This implementation assumes that rtt
hread
_equal()
** is atomic - that it cannot be deceived into thinking self
** and p->owner are equal if p->owner changes between two values
** that are not equal to self while the comparison is taking place.
...
...
@@ -296,8 +296,8 @@ static int rttMutexTry(sqlite3_mutex *p){
** is undefined if the mutex is not currently entered or
** is not currently allocated. SQLite will never do either.
*/
static
void
rttMutexLeave
(
sqlite3_mutex
*
p
){
assert
(
rttMutexHeld
(
p
)
);
static
void
rtt
hread
MutexLeave
(
sqlite3_mutex
*
p
){
assert
(
rtt
hread
MutexHeld
(
p
)
);
#if SQLITE_MUTEX_NREF
p
->
nRef
--
;
if
(
p
->
nRef
==
0
)
p
->
owner
=
0
;
...
...
@@ -321,16 +321,16 @@ static void rttMutexLeave(sqlite3_mutex *p){
sqlite3_mutex_methods
const
*
sqlite3DefaultMutex
(
void
){
static
const
sqlite3_mutex_methods
sMutex
=
{
rttMutexInit
,
rttMutexEnd
,
rttMutexAlloc
,
rttMutexFree
,
rttMutexEnter
,
rttMutexTry
,
rttMutexLeave
,
rtt
hread
MutexInit
,
rtt
hread
MutexEnd
,
rtt
hread
MutexAlloc
,
rtt
hread
MutexFree
,
rtt
hread
MutexEnter
,
rtt
hread
MutexTry
,
rtt
hread
MutexLeave
,
#ifdef SQLITE_DEBUG
rttMutexHeld
,
rttMutexNotheld
rtt
hread
MutexHeld
,
rtt
hread
MutexNotheld
#else
0
,
0
...
...
@@ -340,5 +340,5 @@ sqlite3_mutex_methods const *sqlite3DefaultMutex(void){
return
&
sMutex
;
}
#endif
/* SQLITE_MUTEX_RTT */
#endif
/* SQLITE_MUTEX_RTT
HREAD
*/
components/external/SQLite-3.8.1/src/os.h
浏览文件 @
b3e70cbf
...
...
@@ -33,8 +33,8 @@
# define SQLITE_OS_UNIX 0
# undef SQLITE_OS_WIN
# define SQLITE_OS_WIN 0
# undef SQLITE_OS_RTT
# define SQLITE_OS_RTT 1
# undef SQLITE_OS_RTT
HREAD
# define SQLITE_OS_RTT
HREAD
1
# else
# undef SQLITE_OS_OTHER
# endif
...
...
components/external/SQLite-3.8.1/src/os_rtt.c
→
components/external/SQLite-3.8.1/src/os_rtt
hread
.c
浏览文件 @
b3e70cbf
此差异已折叠。
点击以展开。
components/external/SQLite-3.8.1/src/sqliteInt.h
浏览文件 @
b3e70cbf
...
...
@@ -568,7 +568,7 @@ extern const int sqlite3one;
# endif
#endif
#ifndef SQLITE_MAX_MMAP_SIZE
# if defined(SQLITE_OS_RTT)
# if defined(SQLITE_OS_RTT
HREAD
)
# define SQLITE_MAX_MMAP_SIZE 0
# elif defined(__linux__) \
|| defined(_WIN32) \
...
...
components/external/SQLite-3.8.1/tool/mksqlite3c.tcl
浏览文件 @
b3e70cbf
...
...
@@ -245,7 +245,7 @@ foreach file {
mem5.c
mutex.c
mutex_noop.c
mutex_rtt.c
mutex_rtt
hread
.c
malloc.c
printf.c
random.c
...
...
@@ -254,7 +254,7 @@ foreach file {
hash.c
opcodes.c
os_rtt.c
os_rtt
hread
.c
bitvec.c
pcache.c
...
...
components/external/sqlite/sqlite3.c
浏览文件 @
b3e70cbf
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录