From 08c826b20b93ea9c0153ca153142385e2d6996a6 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 16 Apr 2011 04:05:22 +0200 Subject: [PATCH] Header guards: Rename ZZGO_* to PACHI_* --- board.h | 4 ++-- debug.h | 4 ++-- distributed/distributed.h | 4 ++-- distributed/merge.h | 4 ++-- distributed/protocol.h | 4 ++-- engine.h | 4 ++-- fbook.h | 4 ++-- fixp.h | 4 ++-- gtp.h | 4 ++-- joseki/base.h | 4 ++-- joseki/joseki.h | 4 ++-- montecarlo/internal.h | 4 ++-- montecarlo/montecarlo.h | 4 ++-- move.h | 4 ++-- mq.h | 4 ++-- network.h | 4 ++-- ownermap.h | 4 ++-- pattern3.h | 4 ++-- playout.h | 4 ++-- playout/light.h | 4 ++-- playout/moggy.h | 4 ++-- probdist.h | 4 ++-- random.h | 4 ++-- random/random.h | 4 ++-- replay/replay.h | 4 ++-- stats.h | 4 ++-- stone.h | 4 ++-- t-unit/test.h | 4 ++-- tactics/1lib.h | 4 ++-- tactics/2lib.h | 4 ++-- tactics/ladder.h | 4 ++-- tactics/nakade.h | 4 ++-- tactics/nlib.h | 4 ++-- tactics/selfatari.h | 4 ++-- tactics/util.h | 4 ++-- timeinfo.h | 4 ++-- uct/dynkomi.h | 4 ++-- uct/internal.h | 4 ++-- uct/plugin.h | 4 ++-- uct/plugins.h | 4 ++-- uct/policy/generic.h | 4 ++-- uct/prior.h | 4 ++-- uct/search.h | 4 ++-- uct/slave.h | 4 ++-- uct/tree.h | 4 ++-- uct/uct.h | 4 ++-- uct/walk.h | 4 ++-- util.h | 4 ++-- version.h | 4 ++-- 49 files changed, 98 insertions(+), 98 deletions(-) diff --git a/board.h b/board.h index d3678e8..e1546e7 100644 --- a/board.h +++ b/board.h @@ -2,8 +2,8 @@ * proper including order. */ #include "probdist.h" -#ifndef ZZGO_BOARD_H -#define ZZGO_BOARD_H +#ifndef PACHI_BOARD_H +#define PACHI_BOARD_H #include #include diff --git a/debug.h b/debug.h index ab69790..13916ee 100644 --- a/debug.h +++ b/debug.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_DEBUG_H -#define ZZGO_DEBUG_H +#ifndef PACHI_DEBUG_H +#define PACHI_DEBUG_H #include diff --git a/distributed/distributed.h b/distributed/distributed.h index e0bb500..b7dbcf8 100644 --- a/distributed/distributed.h +++ b/distributed/distributed.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_DISTRIBUTED_DISTRIBUTED_H -#define ZZGO_DISTRIBUTED_DISTRIBUTED_H +#ifndef PACHI_DISTRIBUTED_DISTRIBUTED_H +#define PACHI_DISTRIBUTED_DISTRIBUTED_H #include diff --git a/distributed/merge.h b/distributed/merge.h index d3da3b3..e7634c7 100644 --- a/distributed/merge.h +++ b/distributed/merge.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_DISTRIBUTED_MERGE_H -#define ZZGO_DISTRIBUTED_MERGE_H +#ifndef PACHI_DISTRIBUTED_MERGE_H +#define PACHI_DISTRIBUTED_MERGE_H #include "distributed/protocol.h" diff --git a/distributed/protocol.h b/distributed/protocol.h index a92fa54..0dfa438 100644 --- a/distributed/protocol.h +++ b/distributed/protocol.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_DISTRIBUTED_PROTOCOL_H -#define ZZGO_DISTRIBUTED_PROTOCOL_H +#ifndef PACHI_DISTRIBUTED_PROTOCOL_H +#define PACHI_DISTRIBUTED_PROTOCOL_H #include #include diff --git a/engine.h b/engine.h index 1307f07..637303c 100644 --- a/engine.h +++ b/engine.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_ENGINE_H -#define ZZGO_ENGINE_H +#ifndef PACHI_ENGINE_H +#define PACHI_ENGINE_H #include "board.h" #include "move.h" diff --git a/fbook.h b/fbook.h index e7c580d..b571e78 100644 --- a/fbook.h +++ b/fbook.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_FBOOK_H -#define ZZGO_FBOOK_H +#ifndef PACHI_FBOOK_H +#define PACHI_FBOOK_H #include "move.h" diff --git a/fixp.h b/fixp.h index 9b5a0f1..40d35a2 100644 --- a/fixp.h +++ b/fixp.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_FIXP_H -#define ZZGO_FIXP_H +#ifndef PACHI_FIXP_H +#define PACHI_FIXP_H /* Tools for counting fixed-point numbers. */ diff --git a/gtp.h b/gtp.h index 06e507b..697dbe9 100644 --- a/gtp.h +++ b/gtp.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_GTP_H -#define ZZGO_GTP_H +#ifndef PACHI_GTP_H +#define PACHI_GTP_H struct board; struct engine; diff --git a/joseki/base.h b/joseki/base.h index b5b1cfb..4062af7 100644 --- a/joseki/base.h +++ b/joseki/base.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_JOSEKI_BASE_H -#define ZZGO_JOSEKI_BASE_H +#ifndef PACHI_JOSEKI_BASE_H +#define PACHI_JOSEKI_BASE_H #include "board.h" diff --git a/joseki/joseki.h b/joseki/joseki.h index 0f688de..74730ad 100644 --- a/joseki/joseki.h +++ b/joseki/joseki.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_JOSEKI_JOSEKI_H -#define ZZGO_JOSEKI_JOSEKI_H +#ifndef PACHI_JOSEKI_JOSEKI_H +#define PACHI_JOSEKI_JOSEKI_H #include "engine.h" diff --git a/montecarlo/internal.h b/montecarlo/internal.h index 4222041..cf77977 100644 --- a/montecarlo/internal.h +++ b/montecarlo/internal.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_MONTECARLO_INTERNAL_H -#define ZZGO_MONTECARLO_INTERNAL_H +#ifndef PACHI_MONTECARLO_INTERNAL_H +#define PACHI_MONTECARLO_INTERNAL_H #include "debug.h" #include "move.h" diff --git a/montecarlo/montecarlo.h b/montecarlo/montecarlo.h index 8ed56c6..ee9e614 100644 --- a/montecarlo/montecarlo.h +++ b/montecarlo/montecarlo.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_MONTECARLO_MONTECARLO_H -#define ZZGO_MONTECARLO_MONTECARLO_H +#ifndef PACHI_MONTECARLO_MONTECARLO_H +#define PACHI_MONTECARLO_MONTECARLO_H #include "engine.h" diff --git a/move.h b/move.h index e9b4857..a2b6dc6 100644 --- a/move.h +++ b/move.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_MOVE_H -#define ZZGO_MOVE_H +#ifndef PACHI_MOVE_H +#define PACHI_MOVE_H #include #include diff --git a/mq.h b/mq.h index 7363f99..3532f6c 100644 --- a/mq.h +++ b/mq.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_MQ_H -#define ZZGO_MQ_H +#ifndef PACHI_MQ_H +#define PACHI_MQ_H /* Move queues; in fact, they are more like move lists, usually used * to accumulate equally good move candidates, then choosing from them diff --git a/network.h b/network.h index 602e3f7..6b7c246 100644 --- a/network.h +++ b/network.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_NETWORK_H -#define ZZGO_NETWORK_H +#ifndef PACHI_NETWORK_H +#define PACHI_NETWORK_H #include diff --git a/ownermap.h b/ownermap.h index b99fdff..b12d040 100644 --- a/ownermap.h +++ b/ownermap.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_OWNERMAP_H -#define ZZGO_OWNERMAP_H +#ifndef PACHI_OWNERMAP_H +#define PACHI_OWNERMAP_H /* Map of board intersection owners, and devices to derive group status * information from the map. */ diff --git a/pattern3.h b/pattern3.h index 8a1daf4..f456d54 100644 --- a/pattern3.h +++ b/pattern3.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_PATTERN3_H -#define ZZGO_PATTERN3_H +#ifndef PACHI_PATTERN3_H +#define PACHI_PATTERN3_H /* Fast matching of simple 3x3 patterns. */ diff --git a/playout.h b/playout.h index 939cbf9..2182d4e 100644 --- a/playout.h +++ b/playout.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_PLAYOUT_H -#define ZZGO_PLAYOUT_H +#ifndef PACHI_PLAYOUT_H +#define PACHI_PLAYOUT_H #define MAX_GAMELEN 600 diff --git a/playout/light.h b/playout/light.h index 397d247..7a7d0b6 100644 --- a/playout/light.h +++ b/playout/light.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_PLAYOUT_LIGHT_H -#define ZZGO_PLAYOUT_LIGHT_H +#ifndef PACHI_PLAYOUT_LIGHT_H +#define PACHI_PLAYOUT_LIGHT_H struct board; struct playout_policy; diff --git a/playout/moggy.h b/playout/moggy.h index 0f6c10c..a590938 100644 --- a/playout/moggy.h +++ b/playout/moggy.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_PLAYOUT_MOGGY_H -#define ZZGO_PLAYOUT_MOGGY_H +#ifndef PACHI_PLAYOUT_MOGGY_H +#define PACHI_PLAYOUT_MOGGY_H struct board; struct playout_policy; diff --git a/probdist.h b/probdist.h index 36d4a71..8586786 100644 --- a/probdist.h +++ b/probdist.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_PROBDIST_H -#define ZZGO_PROBDIST_H +#ifndef PACHI_PROBDIST_H +#define PACHI_PROBDIST_H /* Tools for picking an item according to a probability distribution. */ diff --git a/random.h b/random.h index 0722a35..77b169b 100644 --- a/random.h +++ b/random.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_RANDOM_H -#define ZZGO_RANDOM_H +#ifndef PACHI_RANDOM_H +#define PACHI_RANDOM_H #include diff --git a/random/random.h b/random/random.h index c398635..890904f 100644 --- a/random/random.h +++ b/random/random.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_RANDOM_RANDOM_H -#define ZZGO_RANDOM_RANDOM_H +#ifndef PACHI_RANDOM_RANDOM_H +#define PACHI_RANDOM_RANDOM_H #include "engine.h" diff --git a/replay/replay.h b/replay/replay.h index e8426ea..14983a0 100644 --- a/replay/replay.h +++ b/replay/replay.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_REPLAY_REPLAY_H -#define ZZGO_REPLAY_REPLAY_H +#ifndef PACHI_REPLAY_REPLAY_H +#define PACHI_REPLAY_REPLAY_H #include "engine.h" diff --git a/stats.h b/stats.h index 7a8e1a0..8064b68 100644 --- a/stats.h +++ b/stats.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_STATS_H -#define ZZGO_STATS_H +#ifndef PACHI_STATS_H +#define PACHI_STATS_H #include diff --git a/stone.h b/stone.h index 593f574..4afb3dc 100644 --- a/stone.h +++ b/stone.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_STONE_H -#define ZZGO_STONE_H +#ifndef PACHI_STONE_H +#define PACHI_STONE_H enum stone { S_NONE, diff --git a/t-unit/test.h b/t-unit/test.h index 96daa4b..adc27d6 100644 --- a/t-unit/test.h +++ b/t-unit/test.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_T_UNIT_TEST_H -#define ZZGO_T_UNIT_TEST_H +#ifndef PACHI_T_UNIT_TEST_H +#define PACHI_T_UNIT_TEST_H void unittest(char *filename); diff --git a/tactics/1lib.h b/tactics/1lib.h index ebdb3b8..9899caa 100644 --- a/tactics/1lib.h +++ b/tactics/1lib.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_TACTICS_1LIB_H -#define ZZGO_TACTICS_1LIB_H +#ifndef PACHI_TACTICS_1LIB_H +#define PACHI_TACTICS_1LIB_H /* One-liberty tactical checks (i.e. dealing with atari situations). */ diff --git a/tactics/2lib.h b/tactics/2lib.h index 844fe41..d261dd3 100644 --- a/tactics/2lib.h +++ b/tactics/2lib.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_TACTICS_2LIB_H -#define ZZGO_TACTICS_2LIB_H +#ifndef PACHI_TACTICS_2LIB_H +#define PACHI_TACTICS_2LIB_H /* Two-liberty tactical checks (i.e. dealing with two-step capturing races, * preventing atari). */ diff --git a/tactics/ladder.h b/tactics/ladder.h index d97a628..7b06962 100644 --- a/tactics/ladder.h +++ b/tactics/ladder.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_TACTICS_LADDER_H -#define ZZGO_TACTICS_LADDER_H +#ifndef PACHI_TACTICS_LADDER_H +#define PACHI_TACTICS_LADDER_H /* Reading ladders. */ diff --git a/tactics/nakade.h b/tactics/nakade.h index 0960f25..34741e7 100644 --- a/tactics/nakade.h +++ b/tactics/nakade.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_TACTICS_NAKADE_H -#define ZZGO_TACTICS_NAKADE_H +#ifndef PACHI_TACTICS_NAKADE_H +#define PACHI_TACTICS_NAKADE_H /* Piercing eyes. */ diff --git a/tactics/nlib.h b/tactics/nlib.h index 74aff4d..c328420 100644 --- a/tactics/nlib.h +++ b/tactics/nlib.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_TACTICS_NLIB_H -#define ZZGO_TACTICS_NLIB_H +#ifndef PACHI_TACTICS_NLIB_H +#define PACHI_TACTICS_NLIB_H /* N-liberty semeai defense tactical checks. */ diff --git a/tactics/selfatari.h b/tactics/selfatari.h index b9cb111..2e3c812 100644 --- a/tactics/selfatari.h +++ b/tactics/selfatari.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_TACTICS_SELFATARI_H -#define ZZGO_TACTICS_SELFATARI_H +#ifndef PACHI_TACTICS_SELFATARI_H +#define PACHI_TACTICS_SELFATARI_H /* A fairly reliable elf-atari detector. */ diff --git a/tactics/util.h b/tactics/util.h index 47e42cf..ed94691 100644 --- a/tactics/util.h +++ b/tactics/util.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_TACTICS_UTIL_H -#define ZZGO_TACTICS_UTIL_H +#ifndef PACHI_TACTICS_UTIL_H +#define PACHI_TACTICS_UTIL_H /* Advanced tactical checks non-essential to the board implementation. */ diff --git a/timeinfo.h b/timeinfo.h index c02ab85..ff7e01f 100644 --- a/timeinfo.h +++ b/timeinfo.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_TIMEINFO_H -#define ZZGO_TIMEINFO_H +#ifndef PACHI_TIMEINFO_H +#define PACHI_TIMEINFO_H /* Time-keeping information about time to spend on the next move and/or * rest of the game. This is only a hint, an engine may decide to spend diff --git a/uct/dynkomi.h b/uct/dynkomi.h index 9a0e0ba..7cff32f 100644 --- a/uct/dynkomi.h +++ b/uct/dynkomi.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_DYNKOMI_H -#define ZZGO_UCT_DYNKOMI_H +#ifndef PACHI_UCT_DYNKOMI_H +#define PACHI_UCT_DYNKOMI_H /* Dynamic computation of artificial komi values to stabilize the MCTS. */ diff --git a/uct/internal.h b/uct/internal.h index c4c78d7..48ea353 100644 --- a/uct/internal.h +++ b/uct/internal.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_INTERNAL_H -#define ZZGO_UCT_INTERNAL_H +#ifndef PACHI_UCT_INTERNAL_H +#define PACHI_UCT_INTERNAL_H /* Internal UCT structures */ diff --git a/uct/plugin.h b/uct/plugin.h index 0a8b6c5..953554d 100644 --- a/uct/plugin.h +++ b/uct/plugin.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_PLUGIN_H -#define ZZGO_UCT_PLUGIN_H +#ifndef PACHI_UCT_PLUGIN_H +#define PACHI_UCT_PLUGIN_H /* This is the public API for external Pachi UCT plugins. */ /* Unlike the rest of Pachi, this file is available for anyone for diff --git a/uct/plugins.h b/uct/plugins.h index 85381aa..b559677 100644 --- a/uct/plugins.h +++ b/uct/plugins.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_PLUGINS_H -#define ZZGO_UCT_PLUGINS_H +#ifndef PACHI_UCT_PLUGINS_H +#define PACHI_UCT_PLUGINS_H struct tree_node; struct board; diff --git a/uct/policy/generic.h b/uct/policy/generic.h index 6c071dc..40e5360 100644 --- a/uct/policy/generic.h +++ b/uct/policy/generic.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_POLICY_GENERIC_H -#define ZZGO_UCT_POLICY_GENERIC_H +#ifndef PACHI_UCT_POLICY_GENERIC_H +#define PACHI_UCT_POLICY_GENERIC_H /* Some default policy routines and templates. */ diff --git a/uct/prior.h b/uct/prior.h index 8778027..e51fed3 100644 --- a/uct/prior.h +++ b/uct/prior.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_PRIOR_H -#define ZZGO_UCT_PRIOR_H +#ifndef PACHI_UCT_PRIOR_H +#define PACHI_UCT_PRIOR_H #include "move.h" #include "uct/tree.h" diff --git a/uct/search.h b/uct/search.h index e9757af..6ee8178 100644 --- a/uct/search.h +++ b/uct/search.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_SEARCH_H -#define ZZGO_UCT_SEARCH_H +#ifndef PACHI_UCT_SEARCH_H +#define PACHI_UCT_SEARCH_H /* MCTS Search infrastructure. We juggle the search threads and * control search duration. */ diff --git a/uct/slave.h b/uct/slave.h index d70c6cb..454ad14 100644 --- a/uct/slave.h +++ b/uct/slave.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_SLAVE_H -#define ZZGO_UCT_SLAVE_H +#ifndef PACHI_UCT_SLAVE_H +#define PACHI_UCT_SLAVE_H #include "move.h" #include "distributed/distributed.h" diff --git a/uct/tree.h b/uct/tree.h index 2461476..f2acb95 100644 --- a/uct/tree.h +++ b/uct/tree.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_TREE_H -#define ZZGO_UCT_TREE_H +#ifndef PACHI_UCT_TREE_H +#define PACHI_UCT_TREE_H /* Management of UCT trees. See diagram below for the node structure. * diff --git a/uct/uct.h b/uct/uct.h index c653668..b69da8b 100644 --- a/uct/uct.h +++ b/uct/uct.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_UCT_H -#define ZZGO_UCT_UCT_H +#ifndef PACHI_UCT_UCT_H +#define PACHI_UCT_UCT_H #include "engine.h" #include "move.h" diff --git a/uct/walk.h b/uct/walk.h index fe7e38e..e645f34 100644 --- a/uct/walk.h +++ b/uct/walk.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UCT_WALK_H -#define ZZGO_UCT_WALK_H +#ifndef PACHI_UCT_WALK_H +#define PACHI_UCT_WALK_H #include "move.h" diff --git a/util.h b/util.h index 895ff36..297a0f9 100644 --- a/util.h +++ b/util.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_UTIL_H -#define ZZGO_UTIL_H +#ifndef PACHI_UTIL_H +#define PACHI_UTIL_H #include diff --git a/version.h b/version.h index 31129de..635247b 100644 --- a/version.h +++ b/version.h @@ -1,5 +1,5 @@ -#ifndef ZZGO_VERSION_H -#define ZZGO_VERSION_H +#ifndef PACHI_VERSION_H +#define PACHI_VERSION_H #define PACHI_VERNUM 7.99 #define PACHI_VERNUMS "7.99" -- 2.11.4.GIT