From 533e15ce8dc9300344fc672cfcca4516802c1100 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Fri, 29 Apr 2016 22:33:47 +0200 Subject: [PATCH] [DEV] remove __class__ and better header --- enet/Ftp.cpp | 9 +-------- enet/Ftp.h | 4 +--- enet/Http.cpp | 9 +-------- enet/Http.h | 4 +--- enet/Tcp.cpp | 8 +------- enet/Tcp.h | 4 +--- enet/Udp.cpp | 9 +-------- enet/Udp.h | 4 +--- enet/debug.cpp | 4 +--- enet/debug.h | 4 +--- enet/enet.h | 4 +--- test/debug.cpp | 4 +--- test/main.cpp | 4 +--- 13 files changed, 13 insertions(+), 58 deletions(-) diff --git a/enet/Ftp.cpp b/enet/Ftp.cpp index 9449663..56ea544 100644 --- a/enet/Ftp.cpp +++ b/enet/Ftp.cpp @@ -1,16 +1,9 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ #include #include #include - -#ifdef __class__ - #undef __class__ -#endif -#define __class__ ("Ftp") diff --git a/enet/Ftp.h b/enet/Ftp.h index 08d9456..f0ab1b0 100644 --- a/enet/Ftp.h +++ b/enet/Ftp.h @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ #pragma once diff --git a/enet/Http.cpp b/enet/Http.cpp index 0861ad3..9af5314 100644 --- a/enet/Http.cpp +++ b/enet/Http.cpp @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ @@ -12,11 +10,6 @@ #include #include -#ifdef __class__ - #undef __class__ -#endif -#define __class__ ("Http") - static std::map getErrorList() { static std::map g_list; return g_list; diff --git a/enet/Http.h b/enet/Http.h index b5ba96f..b8f1455 100644 --- a/enet/Http.h +++ b/enet/Http.h @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ #pragma once diff --git a/enet/Tcp.cpp b/enet/Tcp.cpp index 9781da6..6516efc 100644 --- a/enet/Tcp.cpp +++ b/enet/Tcp.cpp @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ @@ -17,10 +15,6 @@ #include #include -#ifdef __class__ - #undef __class__ -#endif -#define __class__ ("Tcp") enet::Tcp::Tcp() : m_socketId(-1), diff --git a/enet/Tcp.h b/enet/Tcp.h index b740583..d48e65b 100644 --- a/enet/Tcp.h +++ b/enet/Tcp.h @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ #pragma once diff --git a/enet/Udp.cpp b/enet/Udp.cpp index 695ed72..5931c83 100644 --- a/enet/Udp.cpp +++ b/enet/Udp.cpp @@ -1,16 +1,9 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ #include #include - -#ifdef __class__ - #undef __class__ -#endif -#define __class__ ("Udp") diff --git a/enet/Udp.h b/enet/Udp.h index 4c52a30..eb2ef7c 100644 --- a/enet/Udp.h +++ b/enet/Udp.h @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ #pragma once diff --git a/enet/debug.cpp b/enet/debug.cpp index cc1f536..7785527 100644 --- a/enet/debug.cpp +++ b/enet/debug.cpp @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ diff --git a/enet/debug.h b/enet/debug.h index 6942d88..80a0ad7 100644 --- a/enet/debug.h +++ b/enet/debug.h @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ #pragma once diff --git a/enet/enet.h b/enet/enet.h index 194de19..cf9b9d8 100644 --- a/enet/enet.h +++ b/enet/enet.h @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ #pragma once diff --git a/test/debug.cpp b/test/debug.cpp index 73233b3..7dccef7 100644 --- a/test/debug.cpp +++ b/test/debug.cpp @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ diff --git a/test/main.cpp b/test/main.cpp index 3f8959c..50f0f12 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,8 +1,6 @@ -/** +/** @file * @author Edouard DUPIN - * * @copyright 2014, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */