minor changes
This commit is contained in:
parent
869d3c1742
commit
4cbfc4f82b
|
@ -13,8 +13,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TD_UTIL_VERSION_H
|
#ifndef _TD_UTIL_VERSION_H_
|
||||||
#define _TD_UTIL_VERSION_H
|
#define _TD_UTIL_VERSION_H_
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -28,4 +28,4 @@ int32_t taosCheckVersionCompatible(int32_t clientVer, int32_t serverVer, int32_t
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /*_TD_UTIL_VERSION_H*/
|
#endif /*_TD_UTIL_VERSION_H_*/
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TD_UTIL_WORKER_H
|
#ifndef _TD_UTIL_WORKER_H_
|
||||||
#define _TD_UTIL_WORKER_H
|
#define _TD_UTIL_WORKER_H_
|
||||||
#include "tqueue.h"
|
#include "tqueue.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -75,4 +75,4 @@ void tWWorkerFreeQueue(SWWorkerPool *pool, STaosQueue *queue);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /*_TD_UTIL_WORKER_H*/
|
#endif /*_TD_UTIL_WORKER_H_*/
|
||||||
|
|
|
@ -66,11 +66,16 @@ static FORCE_INLINE double taos_align_get_double(const char *pBuf) {
|
||||||
// #else
|
// #else
|
||||||
#define GET_FLOAT_VAL(x) (*(float *)(x))
|
#define GET_FLOAT_VAL(x) (*(float *)(x))
|
||||||
#define GET_DOUBLE_VAL(x) (*(double *)(x))
|
#define GET_DOUBLE_VAL(x) (*(double *)(x))
|
||||||
#define SET_BIGINT_VAL(x, y) { (*(int64_t *)(x)) = (int64_t)(y); }
|
#define SET_BIGINT_VAL(x, y) \
|
||||||
#define SET_FLOAT_VAL(x, y) { (*(float *)(x)) = (float)(y); }
|
{ (*(int64_t *)(x)) = (int64_t)(y); }
|
||||||
#define SET_DOUBLE_VAL(x, y) { (*(double *)(x)) = (double)(y); }
|
#define SET_FLOAT_VAL(x, y) \
|
||||||
#define SET_FLOAT_PTR(x, y) { (*(float *)(x)) = (*(float *)(y)); }
|
{ (*(float *)(x)) = (float)(y); }
|
||||||
#define SET_DOUBLE_PTR(x, y) { (*(double *)(x)) = (*(double *)(y)); }
|
#define SET_DOUBLE_VAL(x, y) \
|
||||||
|
{ (*(double *)(x)) = (double)(y); }
|
||||||
|
#define SET_FLOAT_PTR(x, y) \
|
||||||
|
{ (*(float *)(x)) = (*(float *)(y)); }
|
||||||
|
#define SET_DOUBLE_PTR(x, y) \
|
||||||
|
{ (*(double *)(x)) = (*(double *)(y)); }
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
typedef uint16_t VarDataLenT; // maxVarDataLen: 32767
|
typedef uint16_t VarDataLenT; // maxVarDataLen: 32767
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TD_UTIL_VERSION_H
|
#ifndef _TD_UTIL_VERSION_H_
|
||||||
#define _TD_UTIL_VERSION_H
|
#define _TD_UTIL_VERSION_H_
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -30,4 +30,4 @@ extern char buildinfo[];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /*_TD_UTIL_VERSION_H*/
|
#endif /*_TD_UTIL_VERSION_H_*/
|
||||||
|
|
Loading…
Reference in New Issue