update to eboard 0.7.0.
This commit is contained in:
parent
ec8d3f09f9
commit
65dc3e1fbe
@ -1,14 +1,15 @@
|
||||
# $OpenBSD: Makefile,v 1.16 2002/07/17 10:27:06 fgsch Exp $
|
||||
# $OpenBSD: Makefile,v 1.17 2002/12/13 14:56:43 fgsch Exp $
|
||||
|
||||
COMMENT= "gtk+ chess board interface"
|
||||
|
||||
DISTNAME= eboard-0.6.2
|
||||
DISTNAME= eboard-0.7.0
|
||||
CATEGORIES= games
|
||||
|
||||
HOMEPAGE= http://eboard.sourceforge.net
|
||||
|
||||
MAINTAINER= Federico Schwindt <fgsch@openbsd.org>
|
||||
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
@ -18,8 +19,12 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=eboard/}
|
||||
|
||||
LIB_DEPENDS= Imlib.19,gdk_imlib::graphics/imlib
|
||||
|
||||
MODULES= gettext
|
||||
|
||||
USE_X11= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
MAKE_FLAGS+= CXXFLAGS="${CXXFLAGS}" CFLAGS="${CFLAGS}"
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (eboard-0.6.2.tar.gz) = 29ca656e4daf1243afe6b7fd40f0256e
|
||||
RMD160 (eboard-0.6.2.tar.gz) = 8fb5f5cad48f9a36fc15dbb06ecb0cc063ccdcac
|
||||
SHA1 (eboard-0.6.2.tar.gz) = e0a621c4914c550ba3603babb414edded79c9a05
|
||||
MD5 (eboard-0.7.0.tar.gz) = d16a9f6f86e999d3772b889fadfb3850
|
||||
RMD160 (eboard-0.7.0.tar.gz) = f87a39e2df429cf34ea81e0f82c272ac5751bec0
|
||||
SHA1 (eboard-0.7.0.tar.gz) = cc46a2e390c7803b3f47526b4278938a207308bc
|
||||
|
@ -1,21 +0,0 @@
|
||||
$OpenBSD: patch-board_cc,v 1.1 2002/09/28 20:26:48 naddy Exp $
|
||||
--- board.cc.orig Sat Sep 28 20:58:34 2002
|
||||
+++ board.cc Sat Sep 28 20:59:15 2002
|
||||
@@ -626,7 +626,7 @@ void Board::setInfo(int idx,string &s) {
|
||||
queueRepaint();
|
||||
}
|
||||
|
||||
-void Board::update(bool sndflag=false) {
|
||||
+void Board::update(bool sndflag) {
|
||||
int i,j,k,rate;
|
||||
AnimatedPiece *ap;
|
||||
Position rpv;
|
||||
@@ -2005,7 +2005,7 @@ gboolean board_animate(gpointer data) {
|
||||
|
||||
// ------------- targets
|
||||
|
||||
-DropSource::DropSource(piece p, int x1,int y1,int w,int h,bool d=true) {
|
||||
+DropSource::DropSource(piece p, int x1,int y1,int w,int h,bool d) {
|
||||
X=x1; Y=y1;
|
||||
X2=X+w; Y2=Y+h;
|
||||
P=p;
|
@ -1,32 +0,0 @@
|
||||
$OpenBSD: patch-chess_cc,v 1.1 2002/09/28 20:26:48 naddy Exp $
|
||||
--- chess.cc.orig Sat Sep 28 21:00:15 2002
|
||||
+++ chess.cc Sat Sep 28 21:01:05 2002
|
||||
@@ -257,7 +257,7 @@ void ChessGame::fixExamineZigZag(Positio
|
||||
|
||||
void ChessGame::updatePosition(Position &p,int movenum,int blacktomove,
|
||||
int wclock,int bclock,char *infoline,
|
||||
- bool sndflag=false) {
|
||||
+ bool sndflag) {
|
||||
char z[32];
|
||||
|
||||
global.debug("ChessGame","updatePosition");
|
||||
@@ -738,7 +738,7 @@ void ChessGame::guessPGNFromInfo() {
|
||||
pgn.set("FEN", moves.front().getFEN() );
|
||||
}
|
||||
|
||||
-bool ChessGame::savePGN(char *filename, bool append=false) {
|
||||
+bool ChessGame::savePGN(char *filename, bool append) {
|
||||
char z[512];
|
||||
const char *cp;
|
||||
list<Position>::iterator li;
|
||||
@@ -827,8 +827,8 @@ bool ChessGame::ParsePgnGame(istream &f,
|
||||
char * filename,
|
||||
bool indexonly,
|
||||
int gameid,
|
||||
- variant v = REGULAR,
|
||||
- ChessGame *updatee = NULL) {
|
||||
+ variant v,
|
||||
+ ChessGame *updatee) {
|
||||
/*
|
||||
ok, now (0.4.x) we do this in a DFA-like manner
|
||||
0 = state 0 (whitespace before movetext)
|
@ -1,35 +0,0 @@
|
||||
$OpenBSD: patch-global_cc,v 1.1 2002/09/28 20:26:48 naddy Exp $
|
||||
--- global.cc.orig Sat Sep 28 21:02:17 2002
|
||||
+++ global.cc Sat Sep 28 21:03:43 2002
|
||||
@@ -260,11 +260,11 @@ void Global::deleteGame(ChessGame *cg) {
|
||||
}
|
||||
}
|
||||
|
||||
-void Global::appendGame(ChessGame *cg,bool RenumberDupes=true) {
|
||||
+void Global::appendGame(ChessGame *cg,bool RenumberDupes) {
|
||||
if (RenumberDupes) clearDupes(cg);
|
||||
GameList.push_back(cg);
|
||||
}
|
||||
-void Global::prependGame(ChessGame *cg, bool RenumberDupes=true) {
|
||||
+void Global::prependGame(ChessGame *cg, bool RenumberDupes) {
|
||||
if (RenumberDupes) clearDupes(cg);
|
||||
GameList.push_front(cg);
|
||||
}
|
||||
@@ -669,7 +669,7 @@ void Global::setPasswordMode(int pm) {
|
||||
(*i)->setPasswordMode(pm);
|
||||
}
|
||||
|
||||
-void Global::debug(char *klass,char *method,char *data=0) {
|
||||
+void Global::debug(char *klass,char *method,char *data) {
|
||||
char z[256];
|
||||
time_t now;
|
||||
string rm;
|
||||
@@ -1068,7 +1068,7 @@ void ChannelSplitter::createPane(int ch)
|
||||
panes.push_back(op);
|
||||
}
|
||||
|
||||
-void ChannelSplitter::appendToChannel(int ch,char *msg,int color,Importance im=IM_NORMAL) {
|
||||
+void ChannelSplitter::appendToChannel(int ch,char *msg,int color,Importance im) {
|
||||
int i,j;
|
||||
ensurePane(ch);
|
||||
j=panes.size();
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-mainwindow_cc,v 1.1 2002/09/28 20:26:48 naddy Exp $
|
||||
--- mainwindow.cc.orig Sat Sep 28 21:04:49 2002
|
||||
+++ mainwindow.cc Sat Sep 28 21:05:09 2002
|
||||
@@ -997,7 +997,7 @@ void MainWindow::openEngineBookmark(Engi
|
||||
}
|
||||
}
|
||||
|
||||
-void MainWindow::openEngine(EngineProtocol *xpp, EngineBookmark *ebm=0) {
|
||||
+void MainWindow::openEngine(EngineProtocol *xpp, EngineBookmark *ebm) {
|
||||
int i;
|
||||
global.debug("MainWindow","openEngine");
|
||||
disconnect();
|
@ -1,14 +0,0 @@
|
||||
$OpenBSD: patch-movelist_cc,v 1.1 2002/09/28 20:26:48 naddy Exp $
|
||||
--- movelist.cc.orig Sat Sep 28 21:05:47 2002
|
||||
+++ movelist.cc Sat Sep 28 21:07:28 2002
|
||||
@@ -95,8 +95,8 @@ MoveListWindow::~MoveListWindow() {
|
||||
}
|
||||
|
||||
void MoveListWindow::updateList(list<Position> &moves,
|
||||
- int over=0,GameResult result=UNDEF,
|
||||
- char *reason=0) {
|
||||
+ int over,GameResult result,
|
||||
+ char *reason) {
|
||||
populate_clist(moves,over,result,reason);
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-network_cc,v 1.1 2002/09/28 20:26:49 naddy Exp $
|
||||
--- network.cc.orig Sat Sep 28 21:09:51 2002
|
||||
+++ network.cc Sat Sep 28 21:10:03 2002
|
||||
@@ -135,7 +135,7 @@ int BufferedConnection::bufferMatch(char
|
||||
return(strstr(dump,match)!=0);
|
||||
}
|
||||
|
||||
-int BufferedConnection::consume(int handle, int amount=128) {
|
||||
+int BufferedConnection::consume(int handle, int amount) {
|
||||
int i,j;
|
||||
char sm[2048];
|
||||
if (amount>2048) amount=2048;
|
@ -1,14 +0,0 @@
|
||||
$OpenBSD: patch-network_h,v 1.1 2002/07/17 10:27:06 fgsch Exp $
|
||||
--- network.h.orig Sat Jul 6 18:05:11 2002
|
||||
+++ network.h Wed Jul 17 06:44:19 2002
|
||||
@@ -47,6 +47,10 @@
|
||||
#include "stl.h"
|
||||
#include "eboard.h"
|
||||
|
||||
+#if defined(__OpenBSD__)
|
||||
+#define SOL_TCP IPPROTO_TCP
|
||||
+#endif
|
||||
+
|
||||
class PidIssuer {
|
||||
public:
|
||||
virtual void farewellPid(int dpid)=0;
|
@ -1,39 +0,0 @@
|
||||
$OpenBSD: patch-notebook_cc,v 1.1 2002/09/28 20:26:49 naddy Exp $
|
||||
--- notebook.cc.orig Sat Sep 28 21:11:27 2002
|
||||
+++ notebook.cc Sat Sep 28 22:00:23 2002
|
||||
@@ -48,7 +48,7 @@ Page::Page() {
|
||||
gtk_widget_show(label);
|
||||
}
|
||||
|
||||
-Page::Page(int _number,GtkWidget *_content, char *_title, bool _removable=false) {
|
||||
+Page::Page(int _number,GtkWidget *_content, char *_title, bool _removable) {
|
||||
|
||||
GtkWidget *b,*p;
|
||||
|
||||
@@ -166,7 +166,7 @@ Notebook::Notebook() {
|
||||
(gpointer)this);
|
||||
}
|
||||
|
||||
-void Notebook::addPage(GtkWidget *what,char *title,int id,bool removable=false) {
|
||||
+void Notebook::addPage(GtkWidget *what,char *title,int id,bool removable) {
|
||||
Page *pg;
|
||||
global.debug("Notebook","addPage",title);
|
||||
pg=new Page(id,what,title,removable);
|
||||
@@ -205,7 +205,7 @@ int Notebook::getCurrentPageId() {
|
||||
return( pages[i]->number );
|
||||
}
|
||||
|
||||
-void Notebook::setTabColor(int pageid,int color,Importance imp=IM_TOP) {
|
||||
+void Notebook::setTabColor(int pageid,int color,Importance imp) {
|
||||
vector<Page *>::iterator pi;
|
||||
int i;
|
||||
global.debug("Notebook","setTabColor","1");
|
||||
@@ -217,7 +217,7 @@ void Notebook::setTabColor(int pageid,in
|
||||
}
|
||||
|
||||
void Notebook::setTabColor(int page_num,int color,int poly,
|
||||
- Importance imp=IM_TOP) {
|
||||
+ Importance imp) {
|
||||
vector<Page *>::iterator pi;
|
||||
GdkColor nc;
|
||||
GtkStyle *style;
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-pieces_cc,v 1.1 2002/09/28 20:26:49 naddy Exp $
|
||||
--- pieces.cc.orig Sat Sep 28 22:00:48 2002
|
||||
+++ pieces.cc Sat Sep 28 22:01:07 2002
|
||||
@@ -1198,7 +1198,7 @@ VectorPieces::~VectorPieces() {
|
||||
global.destroy("VectorPieces");
|
||||
}
|
||||
|
||||
-void VectorPieces::drawSquares(GdkPixmap *dest,GdkGC *gc,int sqside, int dx=0, int dy=0) {
|
||||
+void VectorPieces::drawSquares(GdkPixmap *dest,GdkGC *gc,int sqside, int dx, int dy) {
|
||||
int i,j;
|
||||
for(i=0;i<8;i++)
|
||||
for(j=0;j<8;j++) {
|
@ -1,86 +0,0 @@
|
||||
$OpenBSD: patch-position_cc,v 1.1 2002/09/28 20:26:49 naddy Exp $
|
||||
--- position.cc.orig Sat Sep 28 22:01:35 2002
|
||||
+++ position.cc Sat Sep 28 22:06:54 2002
|
||||
@@ -257,7 +257,7 @@ string & Position::getLastMove() {
|
||||
return(LastMove);
|
||||
}
|
||||
|
||||
-void Position::moveAnyNotation(char *m,piece color,variant Vr=REGULAR) {
|
||||
+void Position::moveAnyNotation(char *m,piece color,variant Vr) {
|
||||
int i,x,y,ml;
|
||||
piece pr;
|
||||
char xlate[12];
|
||||
@@ -317,7 +317,7 @@ void Position::moveAnyNotation(char *m,p
|
||||
}
|
||||
}
|
||||
|
||||
-void Position::moveStdNotation(char *m,piece color,variant Vr=REGULAR) {
|
||||
+void Position::moveStdNotation(char *m,piece color,variant Vr) {
|
||||
int from[2],to[2];
|
||||
int istake, isdrop;
|
||||
piece what, prom;
|
||||
@@ -449,7 +449,7 @@ void Position::checkCastlingPossibility(
|
||||
}
|
||||
|
||||
void Position::locate(piece p,int *src,int *dest,int istake,
|
||||
- variant Vr=REGULAR) {
|
||||
+ variant Vr) {
|
||||
int minx,maxx,miny,maxy;
|
||||
int i,j,dc,dr,m,n;
|
||||
piece kind,color;
|
||||
@@ -563,8 +563,8 @@ void Position::moveDrop(piece p,int x2,i
|
||||
}
|
||||
|
||||
void Position::moveCartesian(int x1,int y1,int x2,int y2,
|
||||
- variant Vr=REGULAR,
|
||||
- bool resolvepromotion=false)
|
||||
+ variant Vr,
|
||||
+ bool resolvepromotion)
|
||||
{
|
||||
piece color;
|
||||
|
||||
@@ -664,7 +664,7 @@ void Position::SANstring(char *src,char
|
||||
stdNotationForMove(x1,y1,x2,y2,prom,dest);
|
||||
}
|
||||
|
||||
-void Position::stdNotationForMove(int x1,int y1,int x2,int y2,piece prom,char *m,variant Vr=REGULAR) {
|
||||
+void Position::stdNotationForMove(int x1,int y1,int x2,int y2,piece prom,char *m,variant Vr) {
|
||||
Position after;
|
||||
stdNotationForMoveInternal(x1,y1,x2,y2,m);
|
||||
switch(prom) {
|
||||
@@ -1003,7 +1003,7 @@ string & Position::getHouseString() {
|
||||
return(HouseString);
|
||||
}
|
||||
|
||||
-string & Position::getMaterialString(variant Vr=REGULAR) {
|
||||
+string & Position::getMaterialString(variant Vr) {
|
||||
int w=0,b=0,i,j,v;
|
||||
char tmp[64];
|
||||
|
||||
@@ -1179,7 +1179,7 @@ bool Position::isDropLegal(piece p,int x
|
||||
}
|
||||
|
||||
// dc = defender color
|
||||
-bool Position::isSquareInCheck(int x,int y,piece dc,variant Vr=REGULAR) {
|
||||
+bool Position::isSquareInCheck(int x,int y,piece dc,variant Vr) {
|
||||
int i,j;
|
||||
|
||||
// cerr << "is square in check " << (char)('a'+x) << (y+1) << " ";
|
||||
@@ -1208,7 +1208,7 @@ bool Position::isSquareInCheck(int x,int
|
||||
return false;
|
||||
}
|
||||
|
||||
-bool Position::isInCheck(piece c,variant Vr=REGULAR) {
|
||||
+bool Position::isInCheck(piece c,variant Vr) {
|
||||
int i,j,kx,ky;
|
||||
|
||||
// FIXME: check rules for giveaway and losers variants
|
||||
@@ -1228,7 +1228,7 @@ bool Position::isInCheck(piece c,variant
|
||||
return(isSquareInCheck(kx,ky,c,Vr));
|
||||
}
|
||||
|
||||
-bool Position::isMate(piece c,variant Vr=REGULAR) {
|
||||
+bool Position::isMate(piece c,variant Vr) {
|
||||
int i,j,m,n;
|
||||
Position after;
|
||||
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-proto_xboard_cc,v 1.1 2002/09/28 20:26:49 naddy Exp $
|
||||
--- proto_xboard.cc.orig Sat Sep 28 22:08:47 2002
|
||||
+++ proto_xboard.cc Sat Sep 28 22:09:03 2002
|
||||
@@ -267,7 +267,7 @@ void XBoardProtocol::finalize() {
|
||||
}
|
||||
|
||||
void XBoardProtocol::gameOver(ExtPatternMatcher &pm,GameResult gr,
|
||||
- int hasreason=1)
|
||||
+ int hasreason)
|
||||
{
|
||||
char reason[64];
|
||||
ChessGame *refgame;
|
@ -1,36 +0,0 @@
|
||||
$OpenBSD: patch-text_cc,v 1.1 2002/09/28 20:26:49 naddy Exp $
|
||||
--- text.cc.orig Sat Sep 28 22:11:48 2002
|
||||
+++ text.cc Sat Sep 28 22:12:20 2002
|
||||
@@ -198,14 +198,14 @@ void Text::show() {
|
||||
gtk_widget_show(widget);
|
||||
}
|
||||
|
||||
-void Text::append(char *msg,int color,Importance imp=IM_NORMAL) {
|
||||
+void Text::append(char *msg,int color,Importance imp) {
|
||||
if (Filter.accept(msg)) {
|
||||
pushLevel(imp);
|
||||
gtk_ftext_append(GTK_FTEXT(text),msg,-1,color);
|
||||
}
|
||||
}
|
||||
|
||||
-void Text::append(char *msg,char *msg2,int color, Importance imp=IM_NORMAL) {
|
||||
+void Text::append(char *msg,char *msg2,int color, Importance imp) {
|
||||
char *d;
|
||||
d=(char *)g_malloc0(strlen(msg)+strlen(msg2)+1);
|
||||
strcpy(d,msg);
|
||||
@@ -253,13 +253,13 @@ void TextSet::removeTarget(Text *target)
|
||||
}
|
||||
}
|
||||
|
||||
-void TextSet::append(char *msg,int color,Importance imp=IM_NORMAL) {
|
||||
+void TextSet::append(char *msg,int color,Importance imp) {
|
||||
list<Text *>::iterator ti;
|
||||
for(ti=targets.begin();ti!=targets.end();ti++)
|
||||
(*ti)->append(msg,color,imp);
|
||||
}
|
||||
|
||||
-void TextSet::append(char *msg,char *msg2,int color,Importance imp=IM_NORMAL) {
|
||||
+void TextSet::append(char *msg,char *msg2,int color,Importance imp) {
|
||||
list<Text *>::iterator ti;
|
||||
for(ti=targets.begin();ti!=targets.end();ti++)
|
||||
(*ti)->append(msg,msg2,color,imp);
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-tstring_cc,v 1.1 2002/09/28 20:26:49 naddy Exp $
|
||||
--- tstring.cc.orig Sat Sep 28 22:12:42 2002
|
||||
+++ tstring.cc Sat Sep 28 22:12:58 2002
|
||||
@@ -72,7 +72,7 @@ string * tstring::token(char *t) {
|
||||
return(&ptoken);
|
||||
}
|
||||
|
||||
-int tstring::tokenvalue(char *t, int base=10) {
|
||||
+int tstring::tokenvalue(char *t, int base) {
|
||||
string *v;
|
||||
int n;
|
||||
v=token(t);
|
Loading…
Reference in New Issue
Block a user