Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_50753323
TDengine
提交
7e3cd84d
T
TDengine
项目概览
qq_50753323
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7e3cd84d
编写于
8月 08, 2020
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-1057
上级
a18e287c
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
407 addition
and
241 deletion
+407
-241
src/kit/taosdemo/CMakeLists.txt
src/kit/taosdemo/CMakeLists.txt
+1
-0
src/kit/taosdemo/taosdemo.c
src/kit/taosdemo/taosdemo.c
+363
-197
src/os/inc/osWindows.h
src/os/inc/osWindows.h
+1
-0
tests/tsim/CMakeLists.txt
tests/tsim/CMakeLists.txt
+0
-4
tests/tsim/src/simExe.c
tests/tsim/src/simExe.c
+8
-6
tests/tsim/src/simParse.c
tests/tsim/src/simParse.c
+34
-34
未找到文件。
src/kit/taosdemo/CMakeLists.txt
浏览文件 @
7e3cd84d
...
@@ -16,4 +16,5 @@ IF (TD_LINUX)
...
@@ -16,4 +16,5 @@ IF (TD_LINUX)
ELSEIF
(
TD_WINDOWS
)
ELSEIF
(
TD_WINDOWS
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_EXECUTABLE
(
taosdemo
${
SRC
}
)
ADD_EXECUTABLE
(
taosdemo
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
taosdemo taos_static
)
ENDIF
()
ENDIF
()
src/kit/taosdemo/taosdemo.c
浏览文件 @
7e3cd84d
此差异已折叠。
点击以展开。
src/os/inc/osWindows.h
浏览文件 @
7e3cd84d
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
#include "msvcProcess.h"
#include "msvcProcess.h"
#include "msvcDirect.h"
#include "msvcDirect.h"
#include "msvcFcntl.h"
#include "msvcFcntl.h"
#include "msvcStdio.h"
#include "sys/msvcStat.h"
#include "sys/msvcStat.h"
#include "sys/msvcTypes.h"
#include "sys/msvcTypes.h"
...
...
tests/tsim/CMakeLists.txt
浏览文件 @
7e3cd84d
...
@@ -4,10 +4,6 @@ INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc)
...
@@ -4,10 +4,6 @@ INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/cJson/inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/cJson/inc
)
INCLUDE_DIRECTORIES
(
inc
)
INCLUDE_DIRECTORIES
(
inc
)
IF
(
TD_WINDOWS
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/pthread
)
ENDIF
()
AUX_SOURCE_DIRECTORY
(
src SRC
)
AUX_SOURCE_DIRECTORY
(
src SRC
)
ADD_EXECUTABLE
(
tsim
${
SRC
}
)
ADD_EXECUTABLE
(
tsim
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
tsim taos_static trpc tutil pthread cJson
)
TARGET_LINK_LIBRARIES
(
tsim taos_static trpc tutil pthread cJson
)
tests/tsim/src/simExe.c
浏览文件 @
7e3cd84d
...
@@ -313,7 +313,9 @@ bool simExecuteSystemCmd(SScript *script, char *option) {
...
@@ -313,7 +313,9 @@ bool simExecuteSystemCmd(SScript *script, char *option) {
simError
(
"script:%s, failed to execute %s , code %d, errno:%d %s, repeatTimes:%d"
,
simError
(
"script:%s, failed to execute %s , code %d, errno:%d %s, repeatTimes:%d"
,
script
->
fileName
,
buf
,
code
,
errno
,
strerror
(
errno
),
repeatTimes
);
script
->
fileName
,
buf
,
code
,
errno
,
strerror
(
errno
),
repeatTimes
);
taosMsleep
(
1000
);
taosMsleep
(
1000
);
#ifdef LINUX
signal
(
SIGCHLD
,
SIG_DFL
);
signal
(
SIGCHLD
,
SIG_DFL
);
#endif
if
(
repeatTimes
++
>=
10
)
{
if
(
repeatTimes
++
>=
10
)
{
exit
(
0
);
exit
(
0
);
}
}
...
@@ -418,14 +420,14 @@ void simVisuallizeOption(SScript *script, char *src, char *dst) {
...
@@ -418,14 +420,14 @@ void simVisuallizeOption(SScript *script, char *src, char *dst) {
var
=
strchr
(
src
,
'$'
);
var
=
strchr
(
src
,
'$'
);
if
(
var
==
NULL
)
break
;
if
(
var
==
NULL
)
break
;
if
(
var
&&
((
var
-
src
-
1
)
>
0
)
&&
*
(
var
-
1
)
==
'\\'
)
{
if
(
var
&&
((
var
-
src
-
1
)
>
0
)
&&
*
(
var
-
1
)
==
'\\'
)
{
srcLen
=
var
-
src
-
1
;
srcLen
=
(
int
)(
var
-
src
-
1
)
;
memcpy
(
dst
+
dstLen
,
src
,
srcLen
);
memcpy
(
dst
+
dstLen
,
src
,
srcLen
);
dstLen
+=
srcLen
;
dstLen
+=
srcLen
;
src
=
var
;
src
=
var
;
break
;
break
;
}
}
srcLen
=
var
-
src
;
srcLen
=
(
int
)(
var
-
src
)
;
memcpy
(
dst
+
dstLen
,
src
,
srcLen
);
memcpy
(
dst
+
dstLen
,
src
,
srcLen
);
dstLen
+=
srcLen
;
dstLen
+=
srcLen
;
...
@@ -433,7 +435,7 @@ void simVisuallizeOption(SScript *script, char *src, char *dst) {
...
@@ -433,7 +435,7 @@ void simVisuallizeOption(SScript *script, char *src, char *dst) {
value
=
simGetVariable
(
script
,
token
,
tokenLen
);
value
=
simGetVariable
(
script
,
token
,
tokenLen
);
strcpy
(
dst
+
dstLen
,
value
);
strcpy
(
dst
+
dstLen
,
value
);
dstLen
+=
strlen
(
value
);
dstLen
+=
(
int
)
strlen
(
value
);
}
}
strcpy
(
dst
+
dstLen
,
src
);
strcpy
(
dst
+
dstLen
,
src
);
...
@@ -455,9 +457,9 @@ void simCloseNativeConnect(SScript *script) {
...
@@ -455,9 +457,9 @@ void simCloseNativeConnect(SScript *script) {
void
simCloseTaosdConnect
(
SScript
*
script
)
{
void
simCloseTaosdConnect
(
SScript
*
script
)
{
if
(
simAsyncQuery
)
{
if
(
simAsyncQuery
)
{
return
simCloseRestFulConnect
(
script
);
simCloseRestFulConnect
(
script
);
}
else
{
}
else
{
return
simCloseNativeConnect
(
script
);
simCloseNativeConnect
(
script
);
}
}
}
}
// {"status":"succ","code":0,"desc":"/KfeAzX/f9na8qdtNZmtONryp201ma04bEl8LcvLUd7a8qdtNZmtONryp201ma04"}
// {"status":"succ","code":0,"desc":"/KfeAzX/f9na8qdtNZmtONryp201ma04bEl8LcvLUd7a8qdtNZmtONryp201ma04"}
...
@@ -575,7 +577,7 @@ int simExecuteRestFulCommand(SScript *script, char *command) {
...
@@ -575,7 +577,7 @@ int simExecuteRestFulCommand(SScript *script, char *command) {
while
(
!
feof
(
fp
))
{
while
(
!
feof
(
fp
))
{
int
availSize
=
mallocSize
-
alreadyReadSize
;
int
availSize
=
mallocSize
-
alreadyReadSize
;
int
len
=
fread
(
content
+
alreadyReadSize
,
1
,
availSize
,
fp
);
int
len
=
(
int
)
fread
(
content
+
alreadyReadSize
,
1
,
availSize
,
fp
);
if
(
len
>=
availSize
)
{
if
(
len
>=
availSize
)
{
alreadyReadSize
+=
len
;
alreadyReadSize
+=
len
;
mallocSize
*=
2
;
mallocSize
*=
2
;
...
...
tests/tsim/src/simParse.c
浏览文件 @
7e3cd84d
...
@@ -105,7 +105,7 @@ void simAddCmdIntoHash(SCommand *pCmd) {
...
@@ -105,7 +105,7 @@ void simAddCmdIntoHash(SCommand *pCmd) {
int
hash
;
int
hash
;
SCommand
*
node
;
SCommand
*
node
;
hash
=
simHashCmd
(
pCmd
->
name
,
strlen
(
pCmd
->
name
));
hash
=
simHashCmd
(
pCmd
->
name
,
(
int
)
strlen
(
pCmd
->
name
));
node
=
cmdHashList
[
hash
];
node
=
cmdHashList
[
hash
];
pCmd
->
next
=
node
;
pCmd
->
next
=
node
;
cmdHashList
[
hash
]
=
pCmd
;
cmdHashList
[
hash
]
=
pCmd
;
...
@@ -199,7 +199,7 @@ SScript *simParseScript(char *fileName) {
...
@@ -199,7 +199,7 @@ SScript *simParseScript(char *fileName) {
if
(
fgets
(
buffer
,
sizeof
(
buffer
),
fd
)
==
NULL
)
continue
;
if
(
fgets
(
buffer
,
sizeof
(
buffer
),
fd
)
==
NULL
)
continue
;
lineNum
++
;
lineNum
++
;
int
cmdlen
=
strlen
(
buffer
);
int
cmdlen
=
(
int
)
strlen
(
buffer
);
if
(
buffer
[
cmdlen
-
1
]
==
'\r'
||
buffer
[
cmdlen
-
1
]
==
'\n'
)
if
(
buffer
[
cmdlen
-
1
]
==
'\r'
||
buffer
[
cmdlen
-
1
]
==
'\n'
)
buffer
[
cmdlen
-
1
]
=
0
;
buffer
[
cmdlen
-
1
]
=
0
;
rest
=
buffer
;
rest
=
buffer
;
...
@@ -294,10 +294,10 @@ int simCheckExpression(char *exp) {
...
@@ -294,10 +294,10 @@ int simCheckExpression(char *exp) {
rest
=
paGetToken
(
rest
,
&
op
,
&
opLen
);
rest
=
paGetToken
(
rest
,
&
op
,
&
opLen
);
if
(
opLen
==
0
)
return
rest
-
exp
;
if
(
opLen
==
0
)
return
(
int
)(
rest
-
exp
)
;
/* if it is key word "then" */
/* if it is key word "then" */
if
(
strncmp
(
op
,
"then"
,
4
)
==
0
)
return
op
-
exp
;
if
(
strncmp
(
op
,
"then"
,
4
)
==
0
)
return
(
int
)(
op
-
exp
)
;
rest
=
paGetToken
(
rest
,
&
op2
,
&
op2Len
);
rest
=
paGetToken
(
rest
,
&
op2
,
&
op2Len
);
if
(
op2Len
==
0
)
{
if
(
op2Len
==
0
)
{
...
@@ -312,7 +312,7 @@ int simCheckExpression(char *exp) {
...
@@ -312,7 +312,7 @@ int simCheckExpression(char *exp) {
if
(
op
[
0
]
==
'+'
||
op
[
0
]
==
'-'
||
op
[
0
]
==
'*'
||
op
[
0
]
==
'/'
||
if
(
op
[
0
]
==
'+'
||
op
[
0
]
==
'-'
||
op
[
0
]
==
'*'
||
op
[
0
]
==
'/'
||
op
[
0
]
==
'.'
)
{
op
[
0
]
==
'.'
)
{
return
rest
-
exp
;
return
(
int
)(
rest
-
exp
)
;
}
}
return
-
1
;
return
-
1
;
...
@@ -655,7 +655,7 @@ bool simParsePrintCmd(char *rest, SCommand *pCmd, int lineNum) {
...
@@ -655,7 +655,7 @@ bool simParsePrintCmd(char *rest, SCommand *pCmd, int lineNum) {
cmdLine
[
numOfLines
].
cmdno
=
SIM_CMD_PRINT
;
cmdLine
[
numOfLines
].
cmdno
=
SIM_CMD_PRINT
;
cmdLine
[
numOfLines
].
lineNum
=
lineNum
;
cmdLine
[
numOfLines
].
lineNum
=
lineNum
;
cmdLine
[
numOfLines
].
optionOffset
=
optionOffset
;
cmdLine
[
numOfLines
].
optionOffset
=
optionOffset
;
expLen
=
strlen
(
rest
);
expLen
=
(
int
)
strlen
(
rest
);
memcpy
(
optionBuffer
+
optionOffset
,
rest
,
expLen
);
memcpy
(
optionBuffer
+
optionOffset
,
rest
,
expLen
);
optionOffset
+=
expLen
+
1
;
optionOffset
+=
expLen
+
1
;
*
(
optionBuffer
+
optionOffset
-
1
)
=
0
;
*
(
optionBuffer
+
optionOffset
-
1
)
=
0
;
...
@@ -690,7 +690,7 @@ bool simParseSqlCmd(char *rest, SCommand *pCmd, int lineNum) {
...
@@ -690,7 +690,7 @@ bool simParseSqlCmd(char *rest, SCommand *pCmd, int lineNum) {
cmdLine
[
numOfLines
].
cmdno
=
SIM_CMD_SQL
;
cmdLine
[
numOfLines
].
cmdno
=
SIM_CMD_SQL
;
cmdLine
[
numOfLines
].
lineNum
=
lineNum
;
cmdLine
[
numOfLines
].
lineNum
=
lineNum
;
cmdLine
[
numOfLines
].
optionOffset
=
optionOffset
;
cmdLine
[
numOfLines
].
optionOffset
=
optionOffset
;
expLen
=
strlen
(
rest
);
expLen
=
(
int
)
strlen
(
rest
);
memcpy
(
optionBuffer
+
optionOffset
,
rest
,
expLen
);
memcpy
(
optionBuffer
+
optionOffset
,
rest
,
expLen
);
optionOffset
+=
expLen
+
1
;
optionOffset
+=
expLen
+
1
;
*
(
optionBuffer
+
optionOffset
-
1
)
=
0
;
*
(
optionBuffer
+
optionOffset
-
1
)
=
0
;
...
@@ -706,7 +706,7 @@ bool simParseSqlErrorCmd(char *rest, SCommand *pCmd, int lineNum) {
...
@@ -706,7 +706,7 @@ bool simParseSqlErrorCmd(char *rest, SCommand *pCmd, int lineNum) {
cmdLine
[
numOfLines
].
cmdno
=
SIM_CMD_SQL_ERROR
;
cmdLine
[
numOfLines
].
cmdno
=
SIM_CMD_SQL_ERROR
;
cmdLine
[
numOfLines
].
lineNum
=
lineNum
;
cmdLine
[
numOfLines
].
lineNum
=
lineNum
;
cmdLine
[
numOfLines
].
optionOffset
=
optionOffset
;
cmdLine
[
numOfLines
].
optionOffset
=
optionOffset
;
expLen
=
strlen
(
rest
);
expLen
=
(
int
)
strlen
(
rest
);
memcpy
(
optionBuffer
+
optionOffset
,
rest
,
expLen
);
memcpy
(
optionBuffer
+
optionOffset
,
rest
,
expLen
);
optionOffset
+=
expLen
+
1
;
optionOffset
+=
expLen
+
1
;
*
(
optionBuffer
+
optionOffset
-
1
)
=
0
;
*
(
optionBuffer
+
optionOffset
-
1
)
=
0
;
...
@@ -728,7 +728,7 @@ bool simParseSystemCmd(char *rest, SCommand *pCmd, int lineNum) {
...
@@ -728,7 +728,7 @@ bool simParseSystemCmd(char *rest, SCommand *pCmd, int lineNum) {
cmdLine
[
numOfLines
].
cmdno
=
SIM_CMD_SYSTEM
;
cmdLine
[
numOfLines
].
cmdno
=
SIM_CMD_SYSTEM
;
cmdLine
[
numOfLines
].
lineNum
=
lineNum
;
cmdLine
[
numOfLines
].
lineNum
=
lineNum
;
cmdLine
[
numOfLines
].
optionOffset
=
optionOffset
;
cmdLine
[
numOfLines
].
optionOffset
=
optionOffset
;
expLen
=
strlen
(
rest
);
expLen
=
(
int
)
strlen
(
rest
);
memcpy
(
optionBuffer
+
optionOffset
,
rest
,
expLen
);
memcpy
(
optionBuffer
+
optionOffset
,
rest
,
expLen
);
optionOffset
+=
expLen
+
1
;
optionOffset
+=
expLen
+
1
;
*
(
optionBuffer
+
optionOffset
-
1
)
=
0
;
*
(
optionBuffer
+
optionOffset
-
1
)
=
0
;
...
@@ -840,14 +840,14 @@ void simInitsimCmdList() {
...
@@ -840,14 +840,14 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_EXP
;
cmdno
=
SIM_CMD_EXP
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"exp"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"exp"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
NULL
;
simCmdList
[
cmdno
].
parseCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteExpCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteExpCmd
;
cmdno
=
SIM_CMD_IF
;
cmdno
=
SIM_CMD_IF
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"if"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"if"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseIfCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseIfCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -855,7 +855,7 @@ void simInitsimCmdList() {
...
@@ -855,7 +855,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ELIF
;
cmdno
=
SIM_CMD_ELIF
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"elif"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"elif"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseElifCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseElifCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -863,7 +863,7 @@ void simInitsimCmdList() {
...
@@ -863,7 +863,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ELSE
;
cmdno
=
SIM_CMD_ELSE
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"else"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"else"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseElseCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseElseCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -871,7 +871,7 @@ void simInitsimCmdList() {
...
@@ -871,7 +871,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ENDI
;
cmdno
=
SIM_CMD_ENDI
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"endi"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"endi"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseEndiCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseEndiCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -879,7 +879,7 @@ void simInitsimCmdList() {
...
@@ -879,7 +879,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_WHILE
;
cmdno
=
SIM_CMD_WHILE
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"while"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"while"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseWhileCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseWhileCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -887,7 +887,7 @@ void simInitsimCmdList() {
...
@@ -887,7 +887,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ENDW
;
cmdno
=
SIM_CMD_ENDW
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"endw"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"endw"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseEndwCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseEndwCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -895,7 +895,7 @@ void simInitsimCmdList() {
...
@@ -895,7 +895,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SWITCH
;
cmdno
=
SIM_CMD_SWITCH
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"switch"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"switch"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSwitchCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseSwitchCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -903,7 +903,7 @@ void simInitsimCmdList() {
...
@@ -903,7 +903,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_CASE
;
cmdno
=
SIM_CMD_CASE
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"case"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"case"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseCaseCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseCaseCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -911,7 +911,7 @@ void simInitsimCmdList() {
...
@@ -911,7 +911,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_DEFAULT
;
cmdno
=
SIM_CMD_DEFAULT
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"default"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"default"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseDefaultCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseDefaultCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -919,7 +919,7 @@ void simInitsimCmdList() {
...
@@ -919,7 +919,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_BREAK
;
cmdno
=
SIM_CMD_BREAK
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"break"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"break"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseBreakCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseBreakCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -927,7 +927,7 @@ void simInitsimCmdList() {
...
@@ -927,7 +927,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_CONTINUE
;
cmdno
=
SIM_CMD_CONTINUE
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"continue"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"continue"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseContinueCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseContinueCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -935,7 +935,7 @@ void simInitsimCmdList() {
...
@@ -935,7 +935,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_ENDS
;
cmdno
=
SIM_CMD_ENDS
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"ends"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"ends"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseEndsCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseEndsCmd
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
NULL
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -943,7 +943,7 @@ void simInitsimCmdList() {
...
@@ -943,7 +943,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SLEEP
;
cmdno
=
SIM_CMD_SLEEP
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"sleep"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"sleep"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSleepCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseSleepCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSleepCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSleepCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -951,7 +951,7 @@ void simInitsimCmdList() {
...
@@ -951,7 +951,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_GOTO
;
cmdno
=
SIM_CMD_GOTO
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"goto"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"goto"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseGotoCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseGotoCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteGotoCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteGotoCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -959,7 +959,7 @@ void simInitsimCmdList() {
...
@@ -959,7 +959,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_RUN
;
cmdno
=
SIM_CMD_RUN
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"run"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"run"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseRunCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseRunCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteRunCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteRunCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -967,7 +967,7 @@ void simInitsimCmdList() {
...
@@ -967,7 +967,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_RUN_BACK
;
cmdno
=
SIM_CMD_RUN_BACK
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"run_back"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"run_back"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseRunBackCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseRunBackCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteRunBackCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteRunBackCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -975,7 +975,7 @@ void simInitsimCmdList() {
...
@@ -975,7 +975,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SYSTEM
;
cmdno
=
SIM_CMD_SYSTEM
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"system"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"system"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSystemCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseSystemCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSystemCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSystemCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -983,7 +983,7 @@ void simInitsimCmdList() {
...
@@ -983,7 +983,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SYSTEM_CONTENT
;
cmdno
=
SIM_CMD_SYSTEM_CONTENT
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"system_content"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"system_content"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSystemContentCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseSystemContentCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSystemContentCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSystemContentCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -991,7 +991,7 @@ void simInitsimCmdList() {
...
@@ -991,7 +991,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_PRINT
;
cmdno
=
SIM_CMD_PRINT
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"print"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"print"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParsePrintCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParsePrintCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecutePrintCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecutePrintCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -999,7 +999,7 @@ void simInitsimCmdList() {
...
@@ -999,7 +999,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SQL
;
cmdno
=
SIM_CMD_SQL
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"sql"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"sql"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSqlCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseSqlCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSqlCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSqlCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -1007,7 +1007,7 @@ void simInitsimCmdList() {
...
@@ -1007,7 +1007,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SQL_ERROR
;
cmdno
=
SIM_CMD_SQL_ERROR
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"sql_error"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"sql_error"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSqlErrorCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseSqlErrorCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSqlErrorCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSqlErrorCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -1015,7 +1015,7 @@ void simInitsimCmdList() {
...
@@ -1015,7 +1015,7 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_SQL_SLOW
;
cmdno
=
SIM_CMD_SQL_SLOW
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"sql_slow"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"sql_slow"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseSqlSlowCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseSqlSlowCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSqlSlowCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteSqlSlowCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
@@ -1024,14 +1024,14 @@ void simInitsimCmdList() {
...
@@ -1024,14 +1024,14 @@ void simInitsimCmdList() {
cmdno
=
SIM_CMD_TEST
;
cmdno
=
SIM_CMD_TEST
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"test"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"test"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
NULL
;
simCmdList
[
cmdno
].
parseCmd
=
NULL
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteTestCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteTestCmd
;
cmdno
=
SIM_CMD_RETURN
;
cmdno
=
SIM_CMD_RETURN
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
simCmdList
[
cmdno
].
cmdno
=
cmdno
;
strcpy
(
simCmdList
[
cmdno
].
name
,
"return"
);
strcpy
(
simCmdList
[
cmdno
].
name
,
"return"
);
simCmdList
[
cmdno
].
nlen
=
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
nlen
=
(
int
)
strlen
(
simCmdList
[
cmdno
].
name
);
simCmdList
[
cmdno
].
parseCmd
=
simParseReturnCmd
;
simCmdList
[
cmdno
].
parseCmd
=
simParseReturnCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteReturnCmd
;
simCmdList
[
cmdno
].
executeCmd
=
simExecuteReturnCmd
;
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
simAddCmdIntoHash
(
&
(
simCmdList
[
cmdno
]));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录