Ver Fonte

refactor & style: 调整文件名

SongZihuan há 3 anos atrás
pai
commit
9d72cdf50b

+ 0 - 8
include/core/core.h

@@ -1,8 +0,0 @@
-#ifndef AFUN_CORE_H
-#define AFUN_CORE_H
-
-namespace aFuncore {
-
-}
-
-#endif //AFUN_CORE_H

+ 1 - 1
include/tool/aFuntool.h

@@ -7,7 +7,7 @@
 #ifndef AFUN_AFUNTOOL_H
 #define AFUN_AFUNTOOL_H
 
-#include "tool.h"
+#include "tool-type.h"
 #include "aFunToolExport.h"
 
 #include "tool-exception.h"

+ 1 - 1
include/tool/log.h

@@ -3,7 +3,7 @@
 
 #include <iostream>
 #include "aFunToolExport.h"
-#include "tool.h"
+#include "tool-type.h"
 #include "thread"
 #include "mutex"
 #include "condition_variable"

+ 1 - 1
include/tool/path.h

@@ -1,6 +1,6 @@
 #ifndef AFUN_PATH_H
 #define AFUN_PATH_H
-#include "tool.h"
+#include "tool-type.h"
 
 /* 路径工具 */
 #ifdef aFunWIN32_NO_CYGWIN

+ 1 - 1
include/tool/tool-exception.h

@@ -1,6 +1,6 @@
 #ifndef AFUN_TOOL_EXCEPTION_H
 #define AFUN_TOOL_EXCEPTION_H
-#include "tool.h"
+#include "tool-type.h"
 
 namespace aFuntool {
     class aFunException : public std::exception {

+ 1 - 1
include/tool/tool-stdio.h

@@ -2,7 +2,7 @@
 #define AFUN_STDIO_H
 #include <cstdio>
 #include <cinttypes>
-#include "tool.h"
+#include "tool-type.h"
 #include "aFunToolExport.h"
 
 namespace aFuntool {

+ 3 - 3
include/tool/tool.h → include/tool/tool-type.h

@@ -3,8 +3,8 @@
  * 目标: 定义公共宏 和 公共头文件
  */
 
-#ifndef AFUN_TOOL_H
-#define AFUN_TOOL_H
+#ifndef AFUN_TOOL_TYPE_H
+#define AFUN_TOOL_TYPE_H
 #include <iostream>
 #include <cinttypes>
 #include <cstdarg>
@@ -19,4 +19,4 @@ namespace aFuntool {
 
 #include "mem.h"
 
-#endif //AFUN_TOOL_H
+#endif //AFUN_TOOL_TYPE_H

+ 1 - 1
src/tool/byte.cpp

@@ -2,7 +2,7 @@
 #include <cstdio>
 #include <cstdlib>
 #include <cstring>
-#include "tool.h"
+#include "tool-type.h"
 #include "byte.h"
 
 namespace aFuntool {

+ 1 - 1
src/tool/dlc.cpp

@@ -1,4 +1,4 @@
-#include "tool.h"
+#include "tool-type.h"
 #include "dlc.h"
 
 namespace aFuntool {

+ 1 - 1
src/tool/file.cpp

@@ -8,7 +8,7 @@
 #include <cstdio>
 #include <cstdlib>
 
-#include "tool.h"
+#include "tool-type.h"
 #include "file.h"
 #include "path.h"
 #include "str.h"

+ 1 - 1
src/tool/hash.cpp

@@ -3,7 +3,7 @@
  * 目标: 关于哈希表的实用函数
  */
 
-#include "tool.h"
+#include "tool-type.h"
 #include "hash.h"
 
 namespace aFuntool {

+ 1 - 1
src/tool/log.cpp

@@ -15,7 +15,7 @@
 #include <cstdlib>
 #include <cstdarg>
 #include <cstring>
-#include "tool.h"
+#include "tool-type.h"
 #include "log.h"
 #include "tool-exception.h"
 #include "log-macro.h"

+ 1 - 1
src/tool/md5.cpp

@@ -6,7 +6,7 @@
 #include <cstdio>
 #include <cstring>
 
-#include "tool.h"
+#include "tool-type.h"
 #include "md5.h"
 #include "file.h"
 #include "tool-exception.h"

+ 1 - 1
src/tool/stdio.cpp

@@ -5,7 +5,7 @@
  */
 
 #include <cstdio>
-#include "tool.h"
+#include "tool-type.h"
 #include "tool-stdio.h"
 #include "mutex"
 

+ 1 - 1
src/tool/string.cpp

@@ -5,7 +5,7 @@
 
 #include <cstdlib>
 #include <cstring>
-#include "tool.h"
+#include "tool-type.h"
 #include "str.h"
 
 #define EQ_STR(str1, str2) (!strcmp((str1), (str2)))

+ 1 - 1
src/tool/time.cpp

@@ -4,7 +4,7 @@
  */
 
 #include <ctime>
-#include "tool.h"
+#include "tool-type.h"
 #include "tool-time.h"
 #include "tool-stdio.h"
 #include "str.h"