diff --git a/src/debug.h b/src/debug.h
index 04a0595f..ab1e06e8 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -1,4 +1,4 @@
-/*
+/*
This file is part of Sanmill.
Copyright (C) 2019-2021 The Sanmill developers (see AUTHORS file)
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef DEBUG_H
-#define DEBUG_H
+#ifndef DEBUG_H_INCLUDED
+#define DEBUG_H_INCLUDED
#include "config.h"
@@ -39,4 +39,4 @@
#endif
#endif /* CSTYLE_DEBUG_OUTPUT */
-#endif /* DEBUG_H */
+#endif /* DEBUG_H_INCLUDED */
diff --git a/src/hashmap.h b/src/hashmap.h
index 80f65a0a..4da28f51 100644
--- a/src/hashmap.h
+++ b/src/hashmap.h
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef HASH_MAP_H_
-#define HASH_MAP_H_
+#ifndef HASH_MAP_H_INCLUDED
+#define HASH_MAP_H_INCLUDED
#include "config.h"
@@ -282,4 +282,4 @@ private:
#endif
};
}
-#endif // HASH_MAP_H_
+#endif // HASH_MAP_H_INCLUDED
diff --git a/src/hashnode.h b/src/hashnode.h
index 53a91444..997704f4 100644
--- a/src/hashnode.h
+++ b/src/hashnode.h
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef HASH_NODE_H_
-#define HASH_NODE_H_
+#ifndef HASH_NODE_H_INCLUDED
+#define HASH_NODE_H_INCLUDED
#include "config.h"
@@ -213,4 +213,4 @@ private:
};
}
-#endif // HASH_NODE_H_
+#endif // HASH_NODE_H_INCLUDED
diff --git a/src/option.h b/src/option.h
index ffea3655..95d9a762 100644
--- a/src/option.h
+++ b/src/option.h
@@ -1,4 +1,4 @@
-/*
+/*
This file is part of Sanmill.
Copyright (C) 2019-2021 The Sanmill developers (see AUTHORS file)
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef OPTION_H
-#define OPTION_H
+#ifndef OPTION_H_INCLUDED
+#define OPTION_H_INCLUDED
#include "config.h"
@@ -305,4 +305,4 @@ private:
extern GameOptions gameOptions;
-#endif /* OPTION_H */
+#endif /* OPTION_H_INCLUDED */
diff --git a/src/perfect/bufferedFile.h b/src/perfect/bufferedFile.h
index f97649db..afbbece2 100644
--- a/src/perfect/bufferedFile.h
+++ b/src/perfect/bufferedFile.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef BUFFERED_FILE_H
-#define BUFFERED_FILE_H
+#ifndef BUFFERED_FILE_H_INCLUDED
+#define BUFFERED_FILE_H_INCLUDED
#include
#include
@@ -48,4 +48,4 @@ public:
long long getFileSize();
};
-#endif
+#endif // BUFFERED_FILE_H_INCLUDED
diff --git a/src/perfect/cyclicArray.h b/src/perfect/cyclicArray.h
index 9d1fa165..f9b66423 100644
--- a/src/perfect/cyclicArray.h
+++ b/src/perfect/cyclicArray.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef CYLCIC_ARRAY_H
-#define CYLCIC_ARRAY_H
+#ifndef CYLCIC_ARRAY_H_INCLUDED
+#define CYLCIC_ARRAY_H_INCLUDED
#include
#include
@@ -46,4 +46,4 @@ public:
bool bytesAvailable();
};
-#endif
+#endif // CYLCIC_ARRAY_H_INCLUDED
diff --git a/src/perfect/mill.h b/src/perfect/mill.h
index db9b825e..f8f42aac 100644
--- a/src/perfect/mill.h
+++ b/src/perfect/mill.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef MILL_H
-#define MILL_H
+#ifndef MILL_H_INCLUDED
+#define MILL_H_INCLUDED
#include "millAI.h"
#include
@@ -145,4 +145,4 @@ public:
}
};
-#endif
+#endif // MILL_H_INCLUDED
diff --git a/src/perfect/millAI.h b/src/perfect/millAI.h
index 28a02a48..9b8eb748 100644
--- a/src/perfect/millAI.h
+++ b/src/perfect/millAI.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef MUEHLE_AI_H
-#define MUEHLE_AI_H
+#ifndef MUEHLE_AI_H_INCLUDED
+#define MUEHLE_AI_H_INCLUDED
#include
#include
@@ -111,4 +111,4 @@ public:
virtual void play(fieldStruct* theField, unsigned int* pushFrom, unsigned int* pushTo) = 0;
};
-#endif
+#endif // MUEHLE_AI_H_INCLUDED
diff --git a/src/perfect/miniMax.h b/src/perfect/miniMax.h
index 6f256c7e..90b45a6a 100644
--- a/src/perfect/miniMax.h
+++ b/src/perfect/miniMax.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
***************************************************************************************************************************/
-#ifndef MINIMAX_H
-#define MINIMAX_H
+#ifndef MINIMAX_H_INCLUDED
+#define MINIMAX_H_INCLUDED
#include "Shlwapi.h"
#include "bufferedFile.h"
@@ -827,4 +827,4 @@ private:
bool falseOrStop();
};
-#endif
+#endif // MINIMAX_H_INCLUDED
diff --git a/src/perfect/miniMaxAI.h b/src/perfect/miniMaxAI.h
index 7fed698c..860d5199 100644
--- a/src/perfect/miniMaxAI.h
+++ b/src/perfect/miniMaxAI.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef MINIMAX_AI_H
-#define MINIMAX_AI_H
+#ifndef MINIMAX_AI_H_INCLUDED
+#define MINIMAX_AI_H_INCLUDED
#include "millAI.h"
#include "miniMax.h"
@@ -142,4 +142,4 @@ public:
void setSearchDepth(unsigned int depth);
};
-#endif
\ No newline at end of file
+#endif // MINIMAX_AI_H_INCLUDED
diff --git a/src/perfect/miniMaxWin.h b/src/perfect/miniMaxWin.h
index 10b6d6ff..6fc68748 100644
--- a/src/perfect/miniMaxWin.h
+++ b/src/perfect/miniMaxWin.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef MINIMAXWIN_H
-#define MINIMAXWIN_H
+#ifndef MINIMAXWIN_H_INCLUDED
+#define MINIMAXWIN_H_INCLUDED
// Windows Header Files:
#include "miniMax.h"
@@ -156,4 +156,4 @@ public:
};
};
-#endif
\ No newline at end of file
+#endif // MINIMAXWIN_H_INCLUDED
diff --git a/src/perfect/miniMax_retroAnalysis.h b/src/perfect/miniMax_retroAnalysis.h
index 6479d7ca..f0120142 100644
--- a/src/perfect/miniMax_retroAnalysis.h
+++ b/src/perfect/miniMax_retroAnalysis.h
@@ -6,6 +6,9 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
+#ifndef MINIMAX_RETROANALYSIS_H_INCLUDED
+#define MINIMAX_RETROANALYSIS_H_INCLUDED
+
#include "miniMax.h"
struct RetroAnalysisQueueState {
@@ -65,4 +68,6 @@ struct AddNumSucceedersVars {
LONGLONG statesProcessed;
RetroAnalysisVars* retroVars;
RetroAnalysisPredVars* predVars;
-};
\ No newline at end of file
+};
+
+#endif // MINIMAX_RETROANALYSIS_H_INCLUDED
diff --git a/src/perfect/perfect.h b/src/perfect/perfect.h
index 3927a4f0..59f336e0 100644
--- a/src/perfect/perfect.h
+++ b/src/perfect/perfect.h
@@ -1,5 +1,5 @@
-#ifndef PERFECT_H
-#define PERFECT_H
+#ifndef PERFECT_H_INCLUDED
+#define PERFECT_H_INCLUDED
#include "mill.h"
#include "perfectAI.h"
@@ -22,4 +22,4 @@ Move perfect_search();
bool perfect_do_move(Move move);
bool perfect_command(const char* cmd);
-#endif
\ No newline at end of file
+#endif // PERFECT_H_INCLUDED
diff --git a/src/perfect/perfectAI.h b/src/perfect/perfectAI.h
index bdccfed6..a0a66e27 100644
--- a/src/perfect/perfectAI.h
+++ b/src/perfect/perfectAI.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef PERFECT_AI_H
-#define PERFECT_AI_H
+#ifndef PERFECT_AI_H_INCLUDED
+#define PERFECT_AI_H_INCLUDED
#include "millAI.h"
#include "miniMax.h"
@@ -233,4 +233,4 @@ public:
bool testLayers(unsigned int startTestFromLayer, unsigned int endTestAtLayer);
};
-#endif
\ No newline at end of file
+#endif // PERFECT_AI_H_INCLUDED
diff --git a/src/perfect/randomAI.h b/src/perfect/randomAI.h
index 038e4ff3..395a6d62 100644
--- a/src/perfect/randomAI.h
+++ b/src/perfect/randomAI.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef RANDOM_AI_H
-#define RANDOM_AI_H
+#ifndef RANDOM_AI_H_INCLUDED
+#define RANDOM_AI_H_INCLUDED
#include "millAI.h"
#include
@@ -23,4 +23,4 @@ public:
void play(fieldStruct* theField, unsigned int* pushFrom, unsigned int* pushTo);
};
-#endif
+#endif // RANDOM_AI_H_INCLUDED
diff --git a/src/perfect/strLib.h b/src/perfect/strLib.h
index 3fc840cc..3cbcc98f 100644
--- a/src/perfect/strLib.h
+++ b/src/perfect/strLib.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef STRLIB_H
-#define STRLIB_H
+#ifndef STRLIB_H_INCLUDED
+#define STRLIB_H_INCLUDED
#include
#include
@@ -46,4 +46,4 @@ public:
static int hiBit(unsigned int n);
};
-#endif
+#endif // STRLIB_H_INCLUDED
diff --git a/src/perfect/threadManager.h b/src/perfect/threadManager.h
index 0b209131..63f88c0f 100644
--- a/src/perfect/threadManager.h
+++ b/src/perfect/threadManager.h
@@ -6,8 +6,8 @@
https://github.com/madweasel/Muehle
\*********************************************************************/
-#ifndef THREADMANAGER_H
-#define THREADMANAGER_H
+#ifndef THREADMANAGER_H_INCLUDED
+#define THREADMANAGER_H_INCLUDED
// standard library & win32 api
#include
@@ -139,4 +139,4 @@ public:
unsigned int executeParallelLoop(DWORD threadProc(void* pParameter, unsigned int index), void* pParameter, unsigned int parameterStructSize, unsigned int scheduleType, int initialValue, int finalValue, int inkrement);
};
-#endif
+#endif // THREADMANAGER_H_INCLUDED
diff --git a/src/rule.h b/src/rule.h
index 3fb23d59..94d90e10 100644
--- a/src/rule.h
+++ b/src/rule.h
@@ -1,4 +1,4 @@
-/*
+/*
This file is part of Sanmill.
Copyright (C) 2019-2021 The Sanmill developers (see AUTHORS file)
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef RULE_H
-#define RULE_H
+#ifndef RULE_H_INCLUDED
+#define RULE_H_INCLUDED
#include "types.h"
@@ -87,4 +87,4 @@ extern const struct Rule RULES[N_RULES];
extern struct Rule rule;
extern bool set_rule(int ruleIdx) noexcept;
-#endif /* RULE_H */
+#endif /* RULE_H_INCLUDED */
diff --git a/src/stack.h b/src/stack.h
index 6fda7907..f20f602d 100644
--- a/src/stack.h
+++ b/src/stack.h
@@ -1,4 +1,4 @@
-/*
+/*
This file is part of Sanmill.
Copyright (C) 2019-2021 The Sanmill developers (see AUTHORS file)
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef STACK_H
-#define STACK_H
+#ifndef STACK_H_INCLUDED
+#define STACK_H_INCLUDED
namespace Sanmill {
@@ -133,4 +133,4 @@ private:
}
-#endif // STACK_H
+#endif // STACK_H_INCLUDED
diff --git a/src/stopwatch.h b/src/stopwatch.h
index 236ad2c5..858a3834 100644
--- a/src/stopwatch.h
+++ b/src/stopwatch.h
@@ -1,4 +1,4 @@
-/*
+/*
This file is part of Sanmill.
Copyright (C) 2019-2021 The Sanmill developers (see AUTHORS file)
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef STOPWATCH_H_
-#define STOPWATCH_H_
+#ifndef STOPWATCH_H_INCLUDED
+#define STOPWATCH_H_INCLUDED
#include
#include
@@ -113,4 +113,4 @@ auto sample(Func&& function) -> std::array
}
} /* namespace stopwatch */
-#endif // STOPWATCH_H_
+#endif // STOPWATCH_H_INCLUDED
diff --git a/src/test/test.h b/src/test/test.h
index 6c0d2fd4..857299a0 100644
--- a/src/test/test.h
+++ b/src/test/test.h
@@ -1,4 +1,4 @@
-/*
+/*
This file is part of Sanmill.
Copyright (C) 2019-2021 The Sanmill developers (see AUTHORS file)
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef TEST_H
-#define TEST_H
+#ifndef TEST_H_INCLUDED
+#define TEST_H_INCLUDED
#include
#include
@@ -85,4 +85,4 @@ private:
QTimer* readMemoryTimer;
};
-#endif // TEST_H
+#endif // TEST_H_INCLUDED
diff --git a/src/ui/qt/boarditem.h b/src/ui/qt/boarditem.h
index 584c2884..5443580c 100644
--- a/src/ui/qt/boarditem.h
+++ b/src/ui/qt/boarditem.h
@@ -1,4 +1,4 @@
-/*
+/*
This file is part of Sanmill.
Copyright (C) 2019-2021 The Sanmill developers (see AUTHORS file)
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef BOARDITEM_H
-#define BOARDITEM_H
+#ifndef BOARDITEM_H_INCLUDED
+#define BOARDITEM_H_INCLUDED
#include
@@ -70,4 +70,4 @@ private:
bool hasDiagonalLine { false };
};
-#endif // BOARDITEM_H
+#endif // BOARDITEM_H_INCLUDED
diff --git a/src/ui/qt/client.h b/src/ui/qt/client.h
index bf3f6f56..58540ff3 100644
--- a/src/ui/qt/client.h
+++ b/src/ui/qt/client.h
@@ -1,4 +1,4 @@
-/*
+/*
This file is part of Sanmill.
Copyright (C) 2019-2021 The Sanmill developers (see AUTHORS file)
@@ -16,8 +16,8 @@
along with this program. If not, see .
*/
-#ifndef CLIENT_H
-#define CLIENT_H
+#ifndef CLIENT_H_INCLUDED
+#define CLIENT_H_INCLUDED
#include "config.h"
@@ -83,4 +83,4 @@ private:
#endif // NET_FIGHT_SUPPORT
-#endif // CLIENT_H
+#endif // CLIENT_H_INCLUDED
diff --git a/src/ui/qt/game.h b/src/ui/qt/game.h
index bb3689c0..39c56d8a 100644
--- a/src/ui/qt/game.h
+++ b/src/ui/qt/game.h
@@ -1,4 +1,4 @@
-/*
+/*
This file is part of Sanmill.
Copyright (C) 2019-2021 The Sanmill developers (see AUTHORS file)
@@ -24,8 +24,8 @@
* But it doesn't look good to use one scene class to do so many control module operations
*/
-#ifndef GAME_H
-#define GAME_H
+#ifndef GAME_H_INCLUDED
+#define GAME_H_INCLUDED
#include