minor changes

This commit is contained in:
Shengliang Guan 2022-02-28 17:50:50 +08:00
parent 175cbfb82d
commit 02421ede92
7 changed files with 15 additions and 44 deletions

View File

@ -280,4 +280,4 @@ typedef struct SSessionWindow {
} }
#endif #endif
#endif // _TD_COMMON_DEF_H_ #endif /*_TD_COMMON_DEF_H_*/

View File

@ -23,7 +23,6 @@
extern "C" { extern "C" {
#endif #endif
typedef struct SCorEpSet { typedef struct SCorEpSet {
int32_t version; int32_t version;
SEpSet epSet; SEpSet epSet;
@ -123,4 +122,4 @@ void* blockDataDestroy(SSDataBlock* pBlock);
} }
#endif #endif
#endif // _TD_COMMON_EP_H_ #endif /*_TD_COMMON_EP_H_*/

View File

@ -67,4 +67,4 @@ SSchema createSchema(uint8_t type, int32_t bytes, int32_t colId, const char* nam
} }
#endif #endif
#endif // _TD_COMMON_NAME_H_ #endif /*_TD_COMMON_NAME_H_*/

View File

@ -16,7 +16,6 @@
#ifndef _TD_COMMON_TTSZIP_H_ #ifndef _TD_COMMON_TTSZIP_H_
#define _TD_COMMON_TTSZIP_H_ #define _TD_COMMON_TTSZIP_H_
#include "os.h" #include "os.h"
#include "tdef.h" #include "tdef.h"
#include "tvariant.h" #include "tvariant.h"
@ -25,8 +24,8 @@
extern "C" { extern "C" {
#endif #endif
#define MEM_BUF_SIZE (1 << 20) #define MEM_BUF_SIZE (1 << 20)
#define TS_COMP_FILE_MAGIC 0x87F5EC4C #define TS_COMP_FILE_MAGIC 0x87F5EC4C
#define TS_COMP_FILE_GROUP_MAX 512 #define TS_COMP_FILE_GROUP_MAX 512
typedef struct STSList { typedef struct STSList {
@ -62,10 +61,10 @@ typedef struct STSBlock {
* and the offset of int32_t type is enough * and the offset of int32_t type is enough
*/ */
typedef struct STSGroupBlockInfo { typedef struct STSGroupBlockInfo {
int32_t id; // group id int32_t id; // group id
int32_t offset; // offset set value in file int32_t offset; // offset set value in file
int32_t numOfBlocks; // number of total blocks int32_t numOfBlocks; // number of total blocks
int32_t compLen; // compressed size int32_t compLen; // compressed size
} STSGroupBlockInfo; } STSGroupBlockInfo;
typedef struct STSGroupBlockInfoEx { typedef struct STSGroupBlockInfoEx {
@ -113,9 +112,9 @@ STSBuf* tsBufClone(STSBuf* pTSBuf);
STSGroupBlockInfo* tsBufGetGroupBlockInfo(STSBuf* pTSBuf, int32_t id); STSGroupBlockInfo* tsBufGetGroupBlockInfo(STSBuf* pTSBuf, int32_t id);
void tsBufFlush(STSBuf* pTSBuf); void tsBufFlush(STSBuf* pTSBuf);
void tsBufResetPos(STSBuf* pTSBuf); void tsBufResetPos(STSBuf* pTSBuf);
bool tsBufNextPos(STSBuf* pTSBuf); bool tsBufNextPos(STSBuf* pTSBuf);
STSElem tsBufGetElem(STSBuf* pTSBuf); STSElem tsBufGetElem(STSBuf* pTSBuf);
STSElem tsBufGetElemStartPos(STSBuf* pTSBuf, int32_t id, SVariant* tag); STSElem tsBufGetElemStartPos(STSBuf* pTSBuf, int32_t id, SVariant* tag);
@ -145,4 +144,4 @@ bool tsBufIsValidElem(STSElem* pElem);
} }
#endif #endif
#endif // _TD_COMMON_TTSZIP_H_ #endif /*_TD_COMMON_TTSZIP_H_*/

View File

@ -231,4 +231,4 @@ void *getDataMax(int32_t type);
} }
#endif #endif
#endif // _TD_COMMON_TTYPE_H_ #endif /*_TD_COMMON_TTYPE_H_*/

View File

@ -64,4 +64,4 @@ int32_t taosVariantTypeSetType(SVariant *pVariant, char type);
} }
#endif #endif
#endif // _TD_COMMON_VARIANT_H_ #endif /*_TD_COMMON_VARIANT_H_*/

View File

@ -1,27 +0,0 @@
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_TYPE_H_
#define _TD_TYPE_H_
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /*_TD_TYPE_H_*/