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