]> git.sesse.net Git - stockfish/commit
Consistent use of anonymous namespace
authorlucasart <lucas.braesch@gmail.com>
Sat, 1 Nov 2014 20:35:10 +0000 (20:35 +0000)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sat, 1 Nov 2014 20:35:10 +0000 (20:35 +0000)
commit8a7876d48d4360d14d918c1ff444b5d6eb0382de
treedf38d75507497636d3313539566e96beb6d4376b
parent2ee125029420b46b255116ab1d57931a9d6cf3e4
Consistent use of anonymous namespace

Objects that are only accessible at file-scope should be put in the anonymous namespace.
This is what the  C++ standard recommends, rather than using static, which is really C-style and results in static linkage.

Stockfish already does this throughout the code. So let's weed out the few exceptions,
because... they have no reason to be exceptional.

No functional change.

Resolves #84
src/benchmark.cpp
src/misc.cpp
src/movepick.cpp
src/position.cpp