提交 4745dec4 编写于 作者: Y yuqi.fy 提交者: xiaoyi.yl

using pragma once as headers include guard to avoid conflics with third-party

上级 5f6fcc55
......@@ -8,8 +8,8 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef BINLOG_BUF_H_
#define BINLOG_BUF_H_
#pragma once
#define LOG_EVENT_INIT_LEN (1024 * 32)
#include <cstdlib>
#include <cstring>
......@@ -120,5 +120,3 @@ static inline bool binlogBuf_NULL(BinLogBuf* buf)
} // namespace logmessage
} // namespace oceanbase
#endif /* BINLOG_BUF_H_ */
......@@ -8,8 +8,7 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef ENDIANNESS_H
#define ENDIANNESS_H
#pragma once
namespace oceanbase {
namespace logmessage {
......@@ -141,5 +140,3 @@ static inline T toLeEndianByType(T value)
} // namespace logmessage
} // namespace oceanbase
#endif
......@@ -8,8 +8,8 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef _LOGMSGBUF_H_
#define _LOGMSGBUF_H_
#pragma once
#include <vector>
#include <string>
......@@ -40,5 +40,3 @@ size_t LogMsgAppendDataArray(uint8_t* sa, size_t size);
} // namespace logmessage
} // namespace oceanbase
#endif /* _LOGMSGBUF_H_ */
......@@ -8,8 +8,8 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef __LOG_MSG_FACTORY__
#define __LOG_MSG_FACTORY__
#pragma once
#include <string>
namespace oceanbase {
......@@ -191,4 +191,3 @@ public:
} // namespace logmessage
} // namespace oceanbase
#endif
......@@ -8,8 +8,7 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef _LOG_REC_H_
#define _LOG_REC_H_
#pragma once
#include <string>
#include <vector>
......@@ -442,5 +441,3 @@ protected:
} // namespace logmessage
} // namespace oceanbase
#endif /*_LOG_REC_H_*/
......@@ -8,8 +8,7 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef _MD_H_
#define _MD_H_
#pragma once
#include <cstdio>
#include <ctime>
......@@ -398,4 +397,3 @@ private:
} // namespace logmessage
} // namespace oceanbase
#endif
......@@ -8,8 +8,7 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef _MSG_HEADER_H_
#define _MSG_HEADER_H_
#pragma once
#include <cstdint>
......@@ -26,5 +25,3 @@ struct MsgHeader {
} // namespace logmessage
} // namespace oceanbase
#endif
......@@ -8,8 +8,7 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef _MSG_TYPE_H_
#define _MSG_TYPE_H_
#pragma once
#include <cstdint>
......@@ -52,4 +51,3 @@ public:
} // namespace logmessage
} // namespace oceanbase
#endif
......@@ -8,8 +8,7 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef _STR_ARRAY_H_
#define _STR_ARRAY_H_
#pragma once
#include <sys/types.h>
......@@ -30,4 +29,3 @@ public:
} // namespace logmessage
} // namespace oceanbase
#endif
......@@ -8,8 +8,7 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
#ifndef __USER_DATA_H__
#define __USER_DATA_H__
#pragma once
namespace oceanbase {
namespace logmessage {
......@@ -25,4 +24,3 @@ public:
} // namespace logmessage
} // namespace oceanbase
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册