diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-01-09 09:38:38 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-01-09 09:38:38 +0000 |
commit | 3a5420524998c2fae8c4b1ea24306b8deed00183 (patch) | |
tree | 4426dcd8fb3fa44daf1332ed36f5ec53ca4ae236 /games-board/slibo/files | |
parent | Version bump (diff) | |
download | historical-3a5420524998c2fae8c4b1ea24306b8deed00183.tar.gz historical-3a5420524998c2fae8c4b1ea24306b8deed00183.tar.bz2 historical-3a5420524998c2fae8c4b1ea24306b8deed00183.zip |
Remove hearts, six, and slibo. The mask will be replaced by single kdelibs-3 placeholder mask to stop annoying kde-sunset migration.
Diffstat (limited to 'games-board/slibo/files')
-rw-r--r-- | games-board/slibo/files/0.4.4-gcc34.patch | 51 | ||||
-rw-r--r-- | games-board/slibo/files/slibo-0.4.4-gcc41.patch | 13 | ||||
-rw-r--r-- | games-board/slibo/files/slibo-0.4.4-gcc42.patch | 64 |
3 files changed, 0 insertions, 128 deletions
diff --git a/games-board/slibo/files/0.4.4-gcc34.patch b/games-board/slibo/files/0.4.4-gcc34.patch deleted file mode 100644 index 4737b2e02ebc..000000000000 --- a/games-board/slibo/files/0.4.4-gcc34.patch +++ /dev/null @@ -1,51 +0,0 @@ -diff -r -U 2 /tmp/slibo-0.4.4/src/engine.cpp /var/tmp/portage/slibo-0.4.4/work/slibo-0.4.4/src/engine.cpp ---- a/slibo-0.4.4/src/engine.cpp 2003-08-31 18:23:45.000000000 +0200 -+++ b/slibo-0.4.4/src/engine.cpp 2004-12-29 19:09:26.941957930 +0100 -@@ -18,4 +18,5 @@ - #include <sys/types.h> - #include <signal.h> -+#include <errno.h> - - #include <qmessagebox.h> -@@ -80,5 +81,5 @@ - //build argument list - int argc = (args.isEmpty()) ? 0 : args.contains(' ')+1; -- argv = new (char *)[argc+1]; -+ argv = new char *[argc+1]; - int i; - argv[0] = strdup(fname.latin1()); -diff -r -U 2 /tmp/slibo-0.4.4/src/sliboengine/search.c /var/tmp/portage/slibo-0.4.4/work/slibo-0.4.4/src/sliboengine/search.c ---- a/slibo-0.4.4/src/sliboengine/search.c 2003-08-30 01:45:00.000000000 +0200 -+++ b/slibo-0.4.4/src/sliboengine/search.c 2004-12-29 19:07:47.439235741 +0100 -@@ -68,7 +68,7 @@ - FILE *logfile = 0; - --static float searchq1(Board *, float beta, float alpha, int) __attribute__ ((regparm(1))); --static float searchq(Board *, float beta, float alpha, int) __attribute__ ((regparm(1))); --float search(Board *, int nullMove, int verifyNull, float beta, float alpha, int) __attribute__ ((regparm(1))); -+__attribute__ ((regparm(1))) static float searchq1(Board *, float beta, float alpha, int); -+__attribute__ ((regparm(1))) static float searchq(Board *, float beta, float alpha, int); -+__attribute__ ((regparm(1))) float search(Board *, int nullMove, int verifyNull, float beta, float alpha, int); - - //main search function. -@@ -78,5 +78,5 @@ - //returns the score of the position and the best line. - --float search(Board *b, int nullMove, int verifyNull, float alpha, float beta, int ply) { -+__attribute__((regparm(1))) float search(Board *b, int nullMove, int verifyNull, float alpha, float beta, int ply) { - static unsigned int clockCounter = 0; - -@@ -648,5 +648,5 @@ - //of a caller of opposite color it always returns a value less or equal - //the current postion, which allows some optimizations. --float searchq(Board * b, float alpha, float beta, int ply) { -+__attribute__ ((regparm(1))) float searchq(Board * b, float alpha, float beta, int ply) { - BEGIN_PROFILE(TIME_SEARCHQ); - float bestEval; -@@ -816,5 +816,5 @@ - //of a caller of opposite color it always returns a value less or equal - //the current postion, which allows some optimizations. --float searchq1(Board * b, float alpha, float beta, int ply) { -+__attribute__ ((regparm(1))) float searchq1(Board * b, float alpha, float beta, int ply) { - BEGIN_PROFILE(TIME_SEARCHQ); - float bestEval; diff --git a/games-board/slibo/files/slibo-0.4.4-gcc41.patch b/games-board/slibo/files/slibo-0.4.4-gcc41.patch deleted file mode 100644 index dfb84f01cbc7..000000000000 --- a/games-board/slibo/files/slibo-0.4.4-gcc41.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- src/sliboengine/search.c 2006-04-30 01:47:33.000000000 +0200 -+++ src/sliboengine/search.c.new 2006-04-30 01:56:28.000000000 +0200 -@@ -282,7 +282,9 @@ - inCheckSig(b); - b->color = -b->color; - Move *lastMove = movegen((constBoard *)b, firstMove); -- (ply <= 0) ? stats.qPos : stats.pos += lastMove - firstMove; -+ if (ply > 0) { -+ stats.pos += lastMove - firstMove; -+ } - - Move bestMove; - #ifdef PREHASH diff --git a/games-board/slibo/files/slibo-0.4.4-gcc42.patch b/games-board/slibo/files/slibo-0.4.4-gcc42.patch deleted file mode 100644 index f8b4d1b5860c..000000000000 --- a/games-board/slibo/files/slibo-0.4.4-gcc42.patch +++ /dev/null @@ -1,64 +0,0 @@ -Compile fixes for gcc4.2. -Submitted by Gene Seto at -http://bugs.gentoo.org/show_bug.cgi?id=188069 - ---- slibo-0.4.4/src/flatview.old 2007-08-09 16:48:34.000000000 +0000 -+++ slibo-0.4.4/src/flatview.cpp 2007-08-09 16:54:53.000000000 +0000 -@@ -43,14 +43,14 @@ - //convert board to screen coordinates - - QPoint FlatView::board2screen(CoorFloat q) { -- int squaresize = (width() <? height())/8; -+ int squaresize = (width() < height() ? width() : height())/8; - return QPoint((int)(q.x*squaresize), (int)((8.0-q.y)*squaresize)); - } - - //convert screen to board coordinates. - - CoorFloat FlatView::screen2board(QPoint p1) { -- float squaresize = (width() <? height())/8.0; -+ float squaresize = (width() < height() ? width() : height())/8.0; - return CoorFloat(p1.x() / squaresize, p1.y() / squaresize); - } - -@@ -65,7 +65,7 @@ - } - - void FlatView::resizeEvent(QResizeEvent *e) { -- int squaresize = (e->size().width() <? e->size().height())/8; -+ int squaresize = (e->size().width() < e->size().height() ? e->size().width(): e->size().height())/8; - int nsize = squaresize * 8; - if (nsize != width() || nsize != height()) { - resize(nsize, nsize); -@@ -92,7 +92,7 @@ - } - - void FlatView::paintEvent(QPaintEvent*) { -- int squaresize = (width() <? height())/8; -+ int squaresize = (width() < height() ? width() : height())/8; - QTime t = QTime::currentTime(); - - QValueList<ViewPiece>::iterator i; ---- slibo-0.4.4/src/glview.old 2007-08-09 16:48:39.000000000 +0000 -+++ slibo-0.4.4/src/glview.cpp 2007-08-09 16:56:30.000000000 +0000 -@@ -288,8 +288,8 @@ - q = q + CoorFloat((p2x*vy - p2y*vx), (ux*p2y - uy*p2x)) * (1.0/det); - // q.x += (p2x*vy - p2y*vx) / det; - // q.y += (ux*p2y - uy*p2x) / det; -- q.x = 0.0 >? q.x <? 7.0; -- q.y = 0.0 >? q.y <? 7.0; -+ q.x = std::min(std::max(0.0, (double)q.x), 7.0); -+ q.y = std::min(std::max(0.0, (double)q.y), 7.0); - lastq = q; - d *= 0.5; - } ---- slibo-0.4.4/src/sliboengine/main.old 2007-08-09 16:33:22.000000000 +0000 -+++ slibo-0.4.4/src/sliboengine/main.c 2007-08-09 16:33:32.000000000 +0000 -@@ -22,6 +22,7 @@ - - #include <stdio.h> - #include <stdlib.h> -+#include <string.h> - #include <signal.h> - #include <unistd.h> - #include <getopt.h> |