Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
680a288f
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
680a288f
编写于
9月 07, 2020
作者:
S
Shengliang Guan
提交者:
GitHub
9月 07, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3405 from taosdata/release/s101
Release/s101
上级
94962825
1dad7945
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
36 addition
and
32 deletion
+36
-32
src/os/inc/osWindows.h
src/os/inc/osWindows.h
+2
-2
src/os/src/windows/wSocket.c
src/os/src/windows/wSocket.c
+4
-0
src/util/src/tnettest.c
src/util/src/tnettest.c
+5
-5
tests/tsim/src/simParse.c
tests/tsim/src/simParse.c
+25
-25
未找到文件。
src/os/inc/osWindows.h
浏览文件 @
680a288f
...
...
@@ -179,9 +179,9 @@ int gettimeofday(struct timeval *ptv, void *pTimeZone);
#endif
#ifdef _MSC_VER
#if _MSC_VER >= 1900
//
#if _MSC_VER >= 1900
#define TAOS_OS_FUNC_SOCKET_INET
#endif
//
#endif
#endif
#define SHUT_RDWR SD_BOTH
...
...
src/os/src/windows/wSocket.c
浏览文件 @
680a288f
...
...
@@ -61,6 +61,10 @@ int taosSetSockOpt(SOCKET socketfd, int level, int optname, void *optval, int op
return
0
;
}
if
(
level
==
SOL_TCP
&&
optname
==
TCP_KEEPCNT
)
{
return
0
;
}
return
setsockopt
(
socketfd
,
level
,
optname
,
optval
,
optlen
);
}
...
...
src/util/src/tnettest.c
浏览文件 @
680a288f
...
...
@@ -73,7 +73,7 @@ static void *bindUdpPort(void *sarg) {
continue
;
}
if
(
iDataNum
>
0
)
{
printf
(
"recv Client: %s pkg from UDP port: %d, pkg len: %d
\n
"
,
inet_n
toa
(
clientAddr
.
sin_addr
),
port
,
iDataNum
);
printf
(
"recv Client: %s pkg from UDP port: %d, pkg len: %d
\n
"
,
taosInetN
toa
(
clientAddr
.
sin_addr
),
port
,
iDataNum
);
//printf("Read msg from udp:%s ... %s\n", buffer, buffer+iDataNum-16);
sendto
(
serverSocket
,
buffer
,
iDataNum
,
0
,
(
struct
sockaddr
*
)
&
clientAddr
,
(
int
)
sin_size
);
...
...
@@ -138,7 +138,7 @@ static void *bindTcpPort(void *sarg) {
if
(
errno
==
EINTR
)
{
continue
;
}
else
{
printf
(
"recv Client: %s pkg from TCP port: %d fail:%s.
\n
"
,
inet_n
toa
(
clientAddr
.
sin_addr
),
port
,
strerror
(
errno
));
printf
(
"recv Client: %s pkg from TCP port: %d fail:%s.
\n
"
,
taosInetN
toa
(
clientAddr
.
sin_addr
),
port
,
strerror
(
errno
));
taosCloseSocket
(
serverSocket
);
return
NULL
;
}
...
...
@@ -149,7 +149,7 @@ static void *bindTcpPort(void *sarg) {
}
}
printf
(
"recv Client: %s pkg from TCP port: %d, pkg len: %d
\n
"
,
inet_n
toa
(
clientAddr
.
sin_addr
),
port
,
iDataNum
);
printf
(
"recv Client: %s pkg from TCP port: %d, pkg len: %d
\n
"
,
taosInetN
toa
(
clientAddr
.
sin_addr
),
port
,
iDataNum
);
if
(
iDataNum
>
0
)
{
send
(
client
,
buffer
,
iDataNum
,
0
);
}
...
...
@@ -197,7 +197,7 @@ static int checkTcpPort(info_s *info) {
struct
in_addr
ipStr
;
memcpy
(
&
ipStr
,
&
info
->
hostIp
,
4
);
sprintf
(
sendbuf
,
"client send tcp pkg to %s:%d, content: 1122334455"
,
inet_n
toa
(
ipStr
),
info
->
port
);
sprintf
(
sendbuf
,
"client send tcp pkg to %s:%d, content: 1122334455"
,
taosInetN
toa
(
ipStr
),
info
->
port
);
sprintf
(
sendbuf
+
info
->
pktLen
-
16
,
"1122334455667788"
);
send
(
clientSocket
,
sendbuf
,
info
->
pktLen
,
0
);
...
...
@@ -267,7 +267,7 @@ static int checkUdpPort(info_s *info) {
struct
in_addr
ipStr
;
memcpy
(
&
ipStr
,
&
info
->
hostIp
,
4
);
sprintf
(
sendbuf
,
"client send udp pkg to %s:%d, content: 1122334455"
,
inet_n
toa
(
ipStr
),
info
->
port
);
sprintf
(
sendbuf
,
"client send udp pkg to %s:%d, content: 1122334455"
,
taosInetN
toa
(
ipStr
),
info
->
port
);
sprintf
(
sendbuf
+
info
->
pktLen
-
16
,
"1122334455667788"
);
socklen_t
sin_size
=
sizeof
(
*
(
struct
sockaddr
*
)
&
serverAddr
);
...
...
tests/tsim/src/simParse.c
浏览文件 @
680a288f
...
...
@@ -840,14 +840,14 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_EXP
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"exp"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteExpCmd
;
cmdno
=
SIM_CMD_IF
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"if"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseIfCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -855,7 +855,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ELIF
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"elif"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseElifCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -863,7 +863,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ELSE
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"else"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseElseCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -871,7 +871,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ENDI
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"endi"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseEndiCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -879,7 +879,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_WHILE
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"while"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseWhileCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -887,7 +887,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ENDW
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"endw"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseEndwCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -895,7 +895,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SWITCH
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"switch"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSwitchCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -903,7 +903,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_CASE
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"case"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseCaseCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -911,7 +911,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_DEFAULT
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"default"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseDefaultCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -919,7 +919,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_BREAK
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"break"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseBreakCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -927,7 +927,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_CONTINUE
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"continue"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseContinueCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -935,7 +935,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ENDS
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"ends"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseEndsCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -943,7 +943,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SLEEP
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"sleep"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSleepCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSleepCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -951,7 +951,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_GOTO
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"goto"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseGotoCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteGotoCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -959,7 +959,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_RUN
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"run"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseRunCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteRunCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -967,7 +967,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_RUN_BACK
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"run_back"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseRunBackCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteRunBackCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -975,7 +975,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SYSTEM
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"system"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSystemCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSystemCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -983,7 +983,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SYSTEM_CONTENT
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"system_content"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSystemContentCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSystemContentCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -991,7 +991,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_PRINT
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"print"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParsePrintCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecutePrintCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -999,7 +999,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SQL
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"sql"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSqlCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSqlCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -1007,7 +1007,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SQL_ERROR
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"sql_error"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSqlErrorCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSqlErrorCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -1015,7 +1015,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SQL_SLOW
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"sql_slow"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSqlSlowCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSqlSlowCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
@@ -1024,14 +1024,14 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_TEST
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"test"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteTestCmd
;
cmdno
=
SIM_CMD_RETURN
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"return"
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
16_t
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseReturnCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteReturnCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录