Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
37c11dd8
T
TDengine
项目概览
慢慢CG
/
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看板
提交
37c11dd8
编写于
8月 25, 2020
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-1090 first version of windows 32 client
上级
3fb64ca0
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
26 addition
and
24 deletion
+26
-24
src/client/inc/tscUtil.h
src/client/inc/tscUtil.h
+1
-1
src/client/inc/tsclient.h
src/client/inc/tsclient.h
+1
-1
src/client/src/tscUtil.c
src/client/src/tscUtil.c
+1
-1
src/inc/taosdef.h
src/inc/taosdef.h
+1
-1
src/inc/taosmsg.h
src/inc/taosmsg.h
+4
-1
src/sync/inc/taosTcpPool.h
src/sync/inc/taosTcpPool.h
+1
-1
tests/tsim/inc/sim.h
tests/tsim/inc/sim.h
+7
-7
tests/tsim/inc/simParse.h
tests/tsim/inc/simParse.h
+10
-11
未找到文件。
src/client/inc/tscUtil.h
浏览文件 @
37c11dd8
...
...
@@ -108,7 +108,7 @@ int32_t tscCreateDataBlock(size_t initialSize, int32_t rowSize, int32_t startOff
void
tscDestroyDataBlock
(
STableDataBlocks
*
pDataBlock
);
void
tscSortRemoveDataBlockDupRows
(
STableDataBlocks
*
dataBuf
);
SParamInfo
*
tscAddParamToDataBlock
(
STableDataBlocks
*
pDataBlock
,
char
type
,
uint8_t
timePrec
,
shor
t
bytes
,
SParamInfo
*
tscAddParamToDataBlock
(
STableDataBlocks
*
pDataBlock
,
char
type
,
uint8_t
timePrec
,
int16_
t
bytes
,
uint32_t
offset
);
void
*
tscDestroyBlockArrayList
(
SArray
*
pDataBlockList
);
...
...
src/client/inc/tsclient.h
浏览文件 @
37c11dd8
...
...
@@ -234,7 +234,7 @@ typedef struct {
char
*
curSql
;
// current sql, resume position of sql after parsing paused
int8_t
parseFinished
;
short
numOfCols
;
int16_t
numOfCols
;
uint32_t
allocSize
;
char
*
payload
;
int32_t
payloadLen
;
...
...
src/client/src/tscUtil.c
浏览文件 @
37c11dd8
...
...
@@ -404,7 +404,7 @@ void tscDestroyDataBlock(STableDataBlocks* pDataBlock) {
taosTFree
(
pDataBlock
);
}
SParamInfo
*
tscAddParamToDataBlock
(
STableDataBlocks
*
pDataBlock
,
char
type
,
uint8_t
timePrec
,
shor
t
bytes
,
SParamInfo
*
tscAddParamToDataBlock
(
STableDataBlocks
*
pDataBlock
,
char
type
,
uint8_t
timePrec
,
int16_
t
bytes
,
uint32_t
offset
)
{
uint32_t
needed
=
pDataBlock
->
numOfParams
+
1
;
if
(
needed
>
pDataBlock
->
numOfAllocedParams
)
{
...
...
src/inc/taosdef.h
浏览文件 @
37c11dd8
...
...
@@ -63,7 +63,7 @@ typedef struct tstr {
extern
const
int32_t
TYPE_BYTES
[
11
];
// TODO: replace and remove code below
#define CHAR_BYTES sizeof(char)
#define SHORT_BYTES sizeof(
shor
t)
#define SHORT_BYTES sizeof(
int16_
t)
#define INT_BYTES sizeof(int)
#define LONG_BYTES sizeof(int64_t)
#define FLOAT_BYTES sizeof(float)
...
...
src/inc/taosmsg.h
浏览文件 @
37c11dd8
...
...
@@ -424,7 +424,10 @@ typedef struct SColumnInfo {
int16_t
type
;
int16_t
bytes
;
int16_t
numOfFilters
;
SColumnFilterInfo
*
filters
;
union
{
int64_t
placeholder
;
SColumnFilterInfo
*
filters
;
};
}
SColumnInfo
;
typedef
struct
STableIdInfo
{
...
...
src/sync/inc/taosTcpPool.h
浏览文件 @
37c11dd8
...
...
@@ -26,7 +26,7 @@ typedef void* tthread_h;
typedef
struct
{
int
numOfThreads
;
uint32_t
serverIp
;
short
port
;
int16_t
port
;
int
bufferSize
;
void
(
*
processBrokenLink
)(
void
*
ahandle
);
int
(
*
processIncomingMsg
)(
void
*
ahandle
,
void
*
buffer
);
...
...
tests/tsim/inc/sim.h
浏览文件 @
37c11dd8
...
...
@@ -96,8 +96,8 @@ enum {
struct
_script_t
;
typedef
struct
_cmd_t
{
shor
t
cmdno
;
shor
t
nlen
;
int16_
t
cmdno
;
int16_
t
nlen
;
char
name
[
MAX_SIM_CMD_NAME_LEN
];
bool
(
*
parseCmd
)(
char
*
,
struct
_cmd_t
*
,
int
);
bool
(
*
executeCmd
)(
struct
_script_t
*
script
,
char
*
option
);
...
...
@@ -105,11 +105,11 @@ typedef struct _cmd_t {
}
SCommand
;
typedef
struct
{
shor
t
cmdno
;
shor
t
jump
;
// jump position
shor
t
errorJump
;
// sql jump flag, while '-x' exist in sql cmd, this flag
// will be SQL_JUMP_TRUE, otherwise is SQL_JUMP_FALSE */
shor
t
lineNum
;
// correspodning line number in original file
int16_
t
cmdno
;
int16_
t
jump
;
// jump position
int16_
t
errorJump
;
// sql jump flag, while '-x' exist in sql cmd, this flag
// will be SQL_JUMP_TRUE, otherwise is SQL_JUMP_FALSE */
int16_
t
lineNum
;
// correspodning line number in original file
int
optionOffset
;
// relative option offset
}
SCmdLine
;
...
...
tests/tsim/inc/simParse.h
浏览文件 @
37c11dd8
...
...
@@ -33,21 +33,20 @@ enum {
/* label stack */
typedef
struct
{
char
top
;
/* number of labels */
short
pos
[
MAX_NUM_LABLES
];
/* the position of the label */
char
label
[
MAX_NUM_LABLES
][
MAX_LABEL_LEN
];
/* name of the label */
int16_t
pos
[
MAX_NUM_LABLES
];
/* the position of the label */
char
label
[
MAX_NUM_LABLES
][
MAX_LABEL_LEN
];
/* name of the label */
}
SLabel
;
/* block definition */
typedef
struct
{
char
top
;
/* the number of blocks stacked */
char
type
[
MAX_NUM_BLOCK
];
/* the block type */
shor
t
*
pos
[
MAX_NUM_BLOCK
];
/* position of the jump for if/elif/case */
short
back
[
MAX_NUM_BLOCK
];
/* go back, endw and continue */
char
numJump
[
MAX_NUM_BLOCK
];
shor
t
*
jump
[
MAX_NUM_BLOCK
][
MAX_NUM_JUMP
];
/* break or elif */
char
sexp
[
MAX_NUM_BLOCK
][
40
];
/*switch expression */
char
sexpLen
[
MAX_NUM_BLOCK
];
/*switch expression length */
char
top
;
/* the number of blocks stacked */
char
type
[
MAX_NUM_BLOCK
];
/* the block type */
int16_
t
*
pos
[
MAX_NUM_BLOCK
];
/* position of the jump for if/elif/case */
int16_t
back
[
MAX_NUM_BLOCK
];
/* go back, endw and continue */
char
numJump
[
MAX_NUM_BLOCK
];
int16_
t
*
jump
[
MAX_NUM_BLOCK
][
MAX_NUM_JUMP
];
/* break or elif */
char
sexp
[
MAX_NUM_BLOCK
][
40
];
/*switch expression */
char
sexpLen
[
MAX_NUM_BLOCK
];
/*switch expression length */
}
SBlock
;
bool
simParseExpression
(
char
*
token
,
int
lineNum
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录