mirror of
https://github.com/znc/znc.git
synced 2026-06-30 23:11:28 +02:00
Fix reserved identifier violation in header guards (#433)
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _BUFFER_H
|
||||
#define _BUFFER_H
|
||||
#ifndef ZNC_BUFFER_H
|
||||
#define ZNC_BUFFER_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/ZNCString.h>
|
||||
@@ -82,4 +82,4 @@ protected:
|
||||
unsigned int m_uLineCount;
|
||||
};
|
||||
|
||||
#endif // !_BUFFER_H
|
||||
#endif // !ZNC_BUFFER_H
|
||||
|
||||
+3
-3
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _CHAN_H
|
||||
#define _CHAN_H
|
||||
#ifndef ZNC_CHAN_H
|
||||
#define ZNC_CHAN_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Nick.h>
|
||||
@@ -180,4 +180,4 @@ protected:
|
||||
std::map<unsigned char, CString> m_musModes;
|
||||
};
|
||||
|
||||
#endif // !_CHAN_H
|
||||
#endif // !ZNC_CHAN_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _CLIENT_H
|
||||
#define _CLIENT_H
|
||||
#ifndef ZNC_CLIENT_H
|
||||
#define ZNC_CLIENT_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Socket.h>
|
||||
@@ -209,4 +209,4 @@ protected:
|
||||
friend class ClientTest;
|
||||
};
|
||||
|
||||
#endif // !_CLIENT_H
|
||||
#endif // !ZNC_CLIENT_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
#ifndef ZNC_CONFIG_H
|
||||
#define ZNC_CONFIG_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/ZNCString.h>
|
||||
@@ -171,4 +171,4 @@ private:
|
||||
SubConfigMap m_SubConfigs;
|
||||
};
|
||||
|
||||
#endif // !CONFIG_H
|
||||
#endif // !ZNC_CONFIG_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef EXEC_SOCK_H
|
||||
#define EXEC_SOCK_H
|
||||
#ifndef ZNC_EXECSOCK_H
|
||||
#define ZNC_EXECSOCK_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Socket.h>
|
||||
@@ -52,4 +52,4 @@ private:
|
||||
int m_iPid;
|
||||
};
|
||||
|
||||
#endif // !EXEC_SOCK_H
|
||||
#endif // !ZNC_EXECSOCK_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _FILEUTILS_H
|
||||
#define _FILEUTILS_H
|
||||
#ifndef ZNC_FILEUTILS_H
|
||||
#define ZNC_FILEUTILS_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/ZNCString.h>
|
||||
@@ -259,4 +259,4 @@ protected:
|
||||
CFile::EFileAttr m_eSortAttr;
|
||||
bool m_bDesc;
|
||||
};
|
||||
#endif // !_FILEUTILS_H
|
||||
#endif // !ZNC_FILEUTILS_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _HTTPSOCK_H
|
||||
#define _HTTPSOCK_H
|
||||
#ifndef ZNC_HTTPSOCK_H
|
||||
#define ZNC_HTTPSOCK_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Socket.h>
|
||||
@@ -125,4 +125,4 @@ protected:
|
||||
CString m_sURIPrefix;
|
||||
};
|
||||
|
||||
#endif // !_HTTPSOCK_H
|
||||
#endif // !ZNC_HTTPSOCK_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _IRCNETWORK_H
|
||||
#define _IRCNETWORK_H
|
||||
#ifndef ZNC_IRCNETWORK_H
|
||||
#define ZNC_IRCNETWORK_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/ZNCString.h>
|
||||
@@ -244,4 +244,4 @@ protected:
|
||||
unsigned short int m_uJoinDelay;
|
||||
};
|
||||
|
||||
#endif // !_IRCNETWORK_H
|
||||
#endif // !ZNC_IRCNETWORK_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _IRCSOCK_H
|
||||
#define _IRCSOCK_H
|
||||
#ifndef ZNC_IRCSOCK_H
|
||||
#define ZNC_IRCSOCK_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Socket.h>
|
||||
@@ -152,4 +152,4 @@ protected:
|
||||
friend class CIRCFloodTimer;
|
||||
};
|
||||
|
||||
#endif // !_IRCSOCK_H
|
||||
#endif // !ZNC_IRCSOCK_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _LISTENER_H
|
||||
#define _LISTENER_H
|
||||
#ifndef ZNC_LISTENER_H
|
||||
#define ZNC_LISTENER_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Socket.h>
|
||||
@@ -100,4 +100,4 @@ private:
|
||||
const CString m_sURIPrefix;
|
||||
};
|
||||
|
||||
#endif // !_LISTENER_H
|
||||
#endif // !ZNC_LISTENER_H
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
/* C implementation by Christophe Devine, C++ "class-ified" by [T3] */
|
||||
|
||||
#ifndef _MD5_H
|
||||
#define _MD5_H
|
||||
#ifndef ZNC_MD5_H
|
||||
#define ZNC_MD5_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <string>
|
||||
@@ -54,4 +54,4 @@ private:
|
||||
void md5_process( md5_context *ctx, const uint8 data[64] ) const;
|
||||
};
|
||||
|
||||
#endif /* _MD5_H */
|
||||
#endif /* ZNC_MD5_H */
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _MODULES_H
|
||||
#define _MODULES_H
|
||||
#ifndef ZNC_MODULES_H
|
||||
#define ZNC_MODULES_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/WebModules.h>
|
||||
@@ -1277,4 +1277,4 @@ protected:
|
||||
CClient* m_pClient;
|
||||
};
|
||||
|
||||
#endif // !_MODULES_H
|
||||
#endif // !ZNC_MODULES_H
|
||||
|
||||
+3
-3
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _NICK_H
|
||||
#define _NICK_H
|
||||
#ifndef ZNC_NICK_H
|
||||
#define ZNC_NICK_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/ZNCString.h>
|
||||
@@ -71,4 +71,4 @@ protected:
|
||||
CString m_sHost;
|
||||
};
|
||||
|
||||
#endif // !_NICK_H
|
||||
#endif // !ZNC_NICK_H
|
||||
|
||||
+3
-3
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _QUERY_H
|
||||
#define _QUERY_H
|
||||
#ifndef ZNC_QUERY_H
|
||||
#define ZNC_QUERY_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/ZNCString.h>
|
||||
@@ -51,4 +51,4 @@ private:
|
||||
CBuffer m_Buffer;
|
||||
};
|
||||
|
||||
#endif // !_QUERY_H
|
||||
#endif // !ZNC_QUERY_H
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef SHA2_H
|
||||
#define SHA2_H
|
||||
#ifndef ZNC_SHA2_H
|
||||
#define ZNC_SHA2_H
|
||||
|
||||
#define SHA256_DIGEST_SIZE ( 256 / 8)
|
||||
#define SHA256_BLOCK_SIZE ( 512 / 8)
|
||||
@@ -60,5 +60,5 @@ void sha256_final(sha256_ctx *ctx, unsigned char *digest);
|
||||
void sha256(const unsigned char *message, size_t len,
|
||||
unsigned char *digest);
|
||||
|
||||
#endif /* !SHA2_H */
|
||||
#endif /* !ZNC_SHA2_H */
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef SSLVERIFYHOST_H
|
||||
#define SSLVERIFYHOST_H
|
||||
#ifndef ZNC_SSLVERIFYHOST_H
|
||||
#define ZNC_SSLVERIFYHOST_H
|
||||
|
||||
#ifdef HAVE_LIBSSL
|
||||
|
||||
@@ -26,4 +26,4 @@ bool ZNC_SSLVerifyHost(const CString& sHost, const X509* pCert, CString& sError)
|
||||
|
||||
#endif /* HAVE_LIBSSL */
|
||||
|
||||
#endif /* SSLVERIFYHOST_H */
|
||||
#endif /* ZNC_SSLVERIFYHOST_H */
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _SERVER_H
|
||||
#define _SERVER_H
|
||||
#ifndef ZNC_SERVER_H
|
||||
#define ZNC_SERVER_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/ZNCString.h>
|
||||
@@ -39,4 +39,4 @@ protected:
|
||||
bool m_bSSL;
|
||||
};
|
||||
|
||||
#endif // !_SERVER_H
|
||||
#endif // !ZNC_SERVER_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef SOCKET_H
|
||||
#define SOCKET_H
|
||||
#ifndef ZNC_SOCKET_H
|
||||
#define ZNC_SOCKET_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Csocket.h>
|
||||
@@ -256,4 +256,4 @@ public:
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif /* SOCKET_H */
|
||||
#endif /* ZNC_SOCKET_H */
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _TEMPLATE_H
|
||||
#define _TEMPLATE_H
|
||||
#ifndef ZNC_TEMPLATE_H
|
||||
#define ZNC_TEMPLATE_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/ZNCString.h>
|
||||
@@ -182,4 +182,4 @@ private:
|
||||
std::vector<std::shared_ptr<CTemplateTagHandler> > m_vspTagHandlers;
|
||||
};
|
||||
|
||||
#endif // !_TEMPLATE_H
|
||||
#endif // !ZNC_TEMPLATE_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _THREADS_H
|
||||
#define _THREADS_H
|
||||
#ifndef ZNC_THREADS_H
|
||||
#define ZNC_THREADS_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
|
||||
@@ -327,4 +327,4 @@ private:
|
||||
};
|
||||
|
||||
#endif // HAVE_PTHREAD
|
||||
#endif // !_THREADS_H
|
||||
#endif // !ZNC_THREADS_H
|
||||
|
||||
+3
-3
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _USER_H
|
||||
#define _USER_H
|
||||
#ifndef ZNC_USER_H
|
||||
#define ZNC_USER_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Utils.h>
|
||||
@@ -244,4 +244,4 @@ private:
|
||||
bool LoadModule(const CString& sModName, const CString& sArgs, const CString& sNotice, CString& sError);
|
||||
};
|
||||
|
||||
#endif // !_USER_H
|
||||
#endif // !ZNC_USER_H
|
||||
|
||||
+3
-3
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _UTILS_H
|
||||
#define _UTILS_H
|
||||
#ifndef ZNC_UTILS_H
|
||||
#define ZNC_UTILS_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/ZNCString.h>
|
||||
@@ -363,4 +363,4 @@ protected:
|
||||
unsigned int m_uTTL; //!< Default time-to-live duration
|
||||
};
|
||||
|
||||
#endif // !_UTILS_H
|
||||
#endif // !ZNC_UTILS_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _WEBMODULES_H
|
||||
#define _WEBMODULES_H
|
||||
#ifndef ZNC_WEBMODULES_H
|
||||
#define ZNC_WEBMODULES_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Template.h>
|
||||
@@ -168,4 +168,4 @@ private:
|
||||
static const unsigned int m_uiMaxSessions;
|
||||
};
|
||||
|
||||
#endif // !_WEBMODULES_H
|
||||
#endif // !ZNC_WEBMODULES_H
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _DEFINES_H
|
||||
#define _DEFINES_H
|
||||
#ifndef ZNC_DEFINES_H
|
||||
#define ZNC_DEFINES_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
|
||||
@@ -36,4 +36,4 @@
|
||||
#define PERROR(f) DEBUG(__FILE__ << ":" << __LINE__ << " " << f << ": " << strerror(GetSockError()))
|
||||
|
||||
|
||||
#endif // !_DEFINES_H
|
||||
#endif // !ZNC_DEFINES_H
|
||||
|
||||
+3
-3
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _MAIN_H
|
||||
#define _MAIN_H
|
||||
#ifndef ZNC_MAIN_H
|
||||
#define ZNC_MAIN_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/version.h>
|
||||
@@ -142,4 +142,4 @@ extern bool ZNC_NO_NEED_TO_DO_ANYTHING_ON_MODULE_CALL_EXITER;
|
||||
* Feel free to also look at existing modules.
|
||||
*/
|
||||
|
||||
#endif // !_MAIN_H
|
||||
#endif // !ZNC_MAIN_H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef _VERSION_H
|
||||
#define _VERSION_H
|
||||
#ifndef ZNC_VERSION_H
|
||||
#define ZNC_VERSION_H
|
||||
|
||||
// The following defines are for #if comparison (preprocessor only likes ints)
|
||||
#define VERSION_MAJOR 1
|
||||
@@ -13,4 +13,4 @@
|
||||
// You can add -DVERSION_EXTRA="stuff" to your CXXFLAGS!
|
||||
extern const char* ZNC_VERSION_EXTRA;
|
||||
|
||||
#endif
|
||||
#endif // !ZNC_VERSION_H
|
||||
|
||||
+3
-3
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _ZNC_H
|
||||
#define _ZNC_H
|
||||
#ifndef ZNC_H
|
||||
#define ZNC_H
|
||||
|
||||
#include <znc/zncconfig.h>
|
||||
#include <znc/Client.h>
|
||||
@@ -237,4 +237,4 @@ protected:
|
||||
bool m_bHideVersion;
|
||||
};
|
||||
|
||||
#endif // !_ZNC_H
|
||||
#endif // !ZNC_H
|
||||
|
||||
Reference in New Issue
Block a user