]> git.sesse.net Git - stockfish/commitdiff
Big trailing whitespace cleanup part 2
authorMarco Costalba <mcostalba@gmail.com>
Wed, 7 Jan 2009 13:28:04 +0000 (14:28 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 7 Jan 2009 14:48:11 +0000 (15:48 +0100)
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
26 files changed:
src/benchmark.h
src/bitbase.h
src/book.h
src/color.h
src/depth.h
src/direction.h
src/endgame.h
src/evaluate.h
src/history.h
src/lock.h
src/material.h
src/mersenne.h
src/move.h
src/pawns.h
src/phase.h
src/piece.h
src/psqtab.h
src/san.h
src/scale.h
src/search.h
src/square.h
src/thread.h
src/types.h
src/uci.h
src/ucioption.h
src/value.h

index ce77e3d95cf32c8c736bf0f4cf193ecdac0818c8..1763547c2d5aee6b772c56cf4bd7ed2d47e810d2 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index b7024ecf5259f68b36b35ba1c2921f3428ad14a0..0bff9ab2f57632d5bef8ad73a0ebf496c04474c7 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index 2c17527348e6cc534217735b88e5d77477af9bb1..b6cee8080ca02205ace5be669059e5e9740b447d 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index 929102d698018f736fdc0c58185bb244db7be363..f27b14eba3ad139d0a93ba8440e5fa43b7f49c9e 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -33,8 +33,8 @@
 ////
 
 enum Color {
-  WHITE, 
-  BLACK, 
+  WHITE,
+  BLACK,
   COLOR_NONE
 };
 
index 81ba0c9b6b00ae6dd9df8b7697c999587c39b1fb..894b54a37493a766e9e1b5db09aa7981b70fb54c 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index d429782ac35c62e75e961691a04501615975e3fc..988128e390fe2d06505f89a8611a5ab4fe0941f1 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index dc477288c741a78d09150b5c81e7d65902b2b050..f2990e744d19a97ae19c2fa48f592f3afd360e0b 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index d573e2df3e49f2e04c4dbc5f28191ad30ae61a2e..b95aa15d92aad4e662f90a1cc8f2f8d52fced5f1 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -43,7 +43,7 @@
 /// EvalInfo object which is used by the search is futilityMargin.
 
 struct EvalInfo {
-  
+
   // Middle game and endgame evaluations:
   Value mgValue, egValue;
 
@@ -91,7 +91,7 @@ struct EvalInfo {
   Value mgMobility, egMobility;
 
   // Extra futility margin.  This is added to the standard futility margin
-  // in the quiescence search.  
+  // in the quiescence search.
   Value futilityMargin;
 };
 
index f2559499279dc22b0c652ab3198de6736ffcf643..9a648b87a9c75ecb5953e3c6bf8c6949c8e8a204 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index 065ceded55ab5b71706ed22546db97fbb31219e9..b34957df8c1f9cb0d7c149806507ced0024a74c5 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index 5fbe64050282474f1f50401f0849343e226de6e9..5877cd755ff87db8b502a94f1ad6554835c4b04a 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -58,7 +58,7 @@ public:
 
 private:
   void clear();
-  
+
   Key key;
   int16_t mgValue;
   int16_t egValue;
index 1a43908c330e98a568ed39bfc054c3ecad10fb8c..bf4bc5c697e7320ac30ba90d136011ffc4aa2aa7 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index ad7c8378c3a8da003a034d77cb3c4e9529b68a9e..56659cd983a0fdc93a7b9d40c16e1c1f2c602534 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -40,7 +40,7 @@ class Position;
 
 enum Move {
   MOVE_NONE = 0,
-  MOVE_NULL = 65, 
+  MOVE_NULL = 65,
   MOVE_MAX = 0xFFFFFF
 };
 
index 01a9d6e93c48acd02495b5404f59a585e933ca71..75136c6fe6c0ed3c75f9af1daabe8b934e6029a9 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -32,7 +32,7 @@
 //// Types
 ////
 
-/// PawnInfo is a class which contains various information about a pawn 
+/// PawnInfo is a class which contains various information about a pawn
 /// structure.  Currently, it only includes a middle game and an end game
 /// pawn structure evaluation, and a bitboard of passed pawns.  We may want
 /// to add further information in the future.  A lookup to the pawn hash table
index bc9648bee42b70b866fb89480d108c4e613db2ca..29981bee677cf20b61fb12ebff254ad7c9a396df 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index 59f22425372d4cf6de204f74a3d668322156b680..8d0d602c07d463deda19e5ff85927501d417384b 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -21,7 +21,7 @@
 #if !defined(PIECE_H_INCLUDED)
 #define PIECE_H_INCLUDED
 
-//// 
+////
 //// Includes
 ////
 
@@ -30,7 +30,7 @@
 #include "square.h"
 
 
-//// 
+////
 //// Types
 ////
 
@@ -54,11 +54,11 @@ const PieceType PieceTypeMin = PAWN;
 const PieceType PieceTypeMax = KING;
 
 extern const int SlidingArray[18];
-extern const SquareDelta Directions[16][16];   
+extern const SquareDelta Directions[16][16];
 extern const SquareDelta PawnPush[2];
 
 
-//// 
+////
 //// Inline functions
 ////
 
@@ -118,7 +118,7 @@ inline int piece_type_is_slider(PieceType pt) {
 inline SquareDelta pawn_push(Color c) {
   return PawnPush[c];
 }
-  
+
 
 ////
 //// Prototypes
index d15034443a0f4165cab4cd66b465b75d7d2f9a62..677761946df11436946474d30949c712375b2b3b 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index 8489769297d3a8d8599fb4aac8269dc0e4b58c62..424331f9aced35b55a0bb33d376150a3f46e0eca 100644 (file)
--- a/src/san.h
+++ b/src/san.h
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index 83858800fedc09d39d31f3db0fe19d2f00012018..0106e8425542267983f7f7b1685998dc8b5c07ff 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index c8d841a12f5778bd56f84fb22eab04b86b76dabb..0bdabdac6507cf89859eb2d3aec83e4b2264cf09 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -73,7 +73,7 @@ extern int ActiveThreads;
 extern Lock SMPLock;
 
 // Perhaps better to make H local, and pass as parameter to MovePicker?
-extern History H;  
+extern History H;
 
 
 ////
@@ -83,7 +83,7 @@ extern History H;
 extern void init_threads();
 extern void stop_threads();
 extern void think(const Position &pos, bool infinite, bool ponder, int side_to_move,
-                  int time[], int increment[], int movesToGo, int maxDepth, 
+                  int time[], int increment[], int movesToGo, int maxDepth,
                   int maxNodes, int maxTime, Move searchMoves[]);
 extern int64_t nodes_searched();
 
index ed0b289b7e902b394517c58011f92d570c9e2489..eb5a5c39eb13903abc3e25023e71feefcc3304ea 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -46,7 +46,7 @@ enum Square {
   SQ_A7, SQ_B7, SQ_C7, SQ_D7, SQ_E7, SQ_F7, SQ_G7, SQ_H7,
   SQ_A8, SQ_B8, SQ_C8, SQ_D8, SQ_E8, SQ_F8, SQ_G8, SQ_H8,
   SQ_NONE
-}; 
+};
 
 enum File {
   FILE_A, FILE_B, FILE_C, FILE_D, FILE_E, FILE_F, FILE_G, FILE_H, FILE_NONE
@@ -73,7 +73,7 @@ const int FlipMask = 070;
 const int FlopMask = 07;
 
 
-//// 
+////
 //// Inline functions
 ////
 
@@ -160,7 +160,7 @@ inline int square_distance(Square s1, Square s2) {
 }
 
 
-//// 
+////
 //// Prototypes
 ////
 
index f2f6dd2602490f57a31168101229c9add58bf6db..d97a25a693831b047a547ba539d51fc01e7fec06 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index 869114e87e06492157a50214151947ad07063e35..73abe01cbd52b5dae3bffe2898eab94b78faab8d 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index f442ba094227e0d364aa63f00f922eb2771836bb..c4bc7aac258d8b04807bc31c4d698ebee9a53aab 100644 (file)
--- a/src/uci.h
+++ b/src/uci.h
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
index 7d7ce714b3e0b0c6e921fdd4f6a7cae368a19982..bc48d6e8d25d00e9f9ec2d2ccba7ed0e96957b6b 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -45,7 +45,7 @@ extern bool get_option_value_bool(const std::string &optionName);
 extern int get_option_value_int(const std::string &optionName);
 extern const std::string get_option_value_string(const std::string &optionName);
 extern bool button_was_pressed(const std::string &buttonName);
-extern void set_option_value(const std::string &optionName, 
+extern void set_option_value(const std::string &optionName,
                              const std::string &newValue);
 extern void push_button(const std::string &buttonName);
 
index 4e75d376963896250c1a90d2bdb7066f8a4e3c97..29fcf5fb99f153b9ea3a512cd1dfdd1fe1e84fd7 100644 (file)
@@ -7,12 +7,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -121,7 +121,7 @@ inline void operator/= (Value &v, int i) { v = Value(int(v) / i); }
 inline Value value_mate_in(int ply) {
   return Value(VALUE_MATE - Value(ply));
 }
-               
+
 inline Value value_mated_in(int ply) {
   return Value(-VALUE_MATE + Value(ply));
 }