Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 1507 Details for
Bug 3699
eboard 0.4.3 gcc 3.1 compilefix
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch
eboard-0.4.3-gcc31.patch (text/plain), 9.23 KB, created by
Thomas Weidner
on 2002-06-13 14:11:00 UTC
(
hide
)
Description:
the patch
Filename:
MIME Type:
Creator:
Thomas Weidner
Created:
2002-06-13 14:11:00 UTC
Size:
9.23 KB
patch
obsolete
>diff -ru eboard-0.4.3.orig/board.cc eboard-0.4.3/board.cc >--- eboard-0.4.3.orig/board.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/board.cc Thu Jun 13 20:55:18 2002 >@@ -144,7 +144,7 @@ > > // --- Board -------------------------- > >-Board::Board(bool withbugpane=false) : WidgetProxy() { >+Board::Board(bool withbugpane) : WidgetProxy() { > int i; > GtkWidget *tnb=0, *tl1, *tl2; > Text *text=0; >@@ -837,7 +837,7 @@ > queueRepaint(); > } > >-void Board::update(bool sndflag=false) { >+void Board::update(bool sndflag) { > int i,j,k; > AnimatedPiece *ap; > Position rpv; >@@ -2338,7 +2338,7 @@ > > // ------------- 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; >diff -ru eboard-0.4.3.orig/chess.cc eboard-0.4.3/chess.cc >--- eboard-0.4.3.orig/chess.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/chess.cc Thu Jun 13 20:55:18 2002 >@@ -254,7 +254,7 @@ > > void ChessGame::updatePosition(Position &p,int movenum,int blacktomove, > int wclock,int bclock,char *infoline, >- bool sndflag=false) { >+ bool sndflag) { > Position *np; > char z[32]; > >@@ -696,7 +696,7 @@ > pgn.set("FEN",(char *)(moves.front()->getFEN())); > } > >-bool ChessGame::savePGN(char *filename, bool append=false) { >+bool ChessGame::savePGN(char *filename, bool append) { > FILE *f; > char z[512],zz[512],*p; > const char *cp; >@@ -784,8 +784,8 @@ > 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, initial state (whitespace before movetext) >diff -ru eboard-0.4.3.orig/global.cc eboard-0.4.3/global.cc >--- eboard-0.4.3.orig/global.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/global.cc Thu Jun 13 20:55:18 2002 >@@ -205,11 +205,11 @@ > } > } > >-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); > } >@@ -591,7 +591,7 @@ > (*i)->setPasswordMode(pm); > } > >-void Global::debug(char *klass,char *method,char *data=0) { >+void Global::debug(char *klass,char *method,char *data) { > FILE *f; > char z[256],rm[512]; > time_t now; >@@ -883,7 +883,7 @@ > 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(); >diff -ru eboard-0.4.3.orig/movelist.cc eboard-0.4.3/movelist.cc >--- eboard-0.4.3.orig/movelist.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/movelist.cc Thu Jun 13 20:55:18 2002 >@@ -94,8 +94,8 @@ > } > > 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); > } > >diff -ru eboard-0.4.3.orig/network.cc eboard-0.4.3/network.cc >--- eboard-0.4.3.orig/network.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/network.cc Thu Jun 13 20:55:18 2002 >@@ -134,7 +134,7 @@ > 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; >diff -ru eboard-0.4.3.orig/notebook.cc eboard-0.4.3/notebook.cc >--- eboard-0.4.3.orig/notebook.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/notebook.cc Thu Jun 13 20:55:18 2002 >@@ -48,7 +48,7 @@ > 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 @@ > (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 @@ > 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 page_num,int color,int poly, >- Importance imp=IM_TOP) { >+ Importance imp) { > vector<Page *>::iterator pi; > GdkColor nc; > GtkStyle *style; >diff -ru eboard-0.4.3.orig/pieces.cc eboard-0.4.3/pieces.cc >--- eboard-0.4.3.orig/pieces.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/pieces.cc Thu Jun 13 20:55:18 2002 >@@ -810,7 +810,7 @@ > rescale(108); > } > >-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++) { >diff -ru eboard-0.4.3.orig/position.cc eboard-0.4.3/position.cc >--- eboard-0.4.3.orig/position.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/position.cc Thu Jun 13 20:55:18 2002 >@@ -249,7 +249,7 @@ > 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]; >@@ -306,7 +306,7 @@ > } > } > >-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; >@@ -436,7 +436,7 @@ > } > > 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; >@@ -549,7 +549,7 @@ > } > } > >-void Position::moveCartesian(int x1,int y1,int x2,int y2,variant Vr=REGULAR) { >+void Position::moveCartesian(int x1,int y1,int x2,int y2,variant Vr) { > piece color; > > // castling >@@ -631,7 +631,7 @@ > 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) { >@@ -972,7 +972,7 @@ > return(HouseString); > } > >-char * Position::getMaterialString(variant Vr=REGULAR) { >+char * Position::getMaterialString(variant Vr) { > int w=0,b=0,i,j,v; > > for(i=0;i<8;i++) >@@ -1146,7 +1146,7 @@ > } > > // 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) << " "; >@@ -1175,7 +1175,7 @@ > 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 >@@ -1195,7 +1195,7 @@ > 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; > >diff -ru eboard-0.4.3.orig/proto_xboard.cc eboard-0.4.3/proto_xboard.cc >--- eboard-0.4.3.orig/proto_xboard.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/proto_xboard.cc Thu Jun 13 20:55:18 2002 >@@ -240,7 +240,7 @@ > } > > void XBoardProtocolParser::gameOver(ExtPatternMatcher &pm,GameResult gr, >- int hasreason=1) >+ int hasreason) > { > char reason[64]; > ChessGame *refgame; >diff -ru eboard-0.4.3.orig/text.cc eboard-0.4.3/text.cc >--- eboard-0.4.3.orig/text.cc Thu Jun 13 20:56:48 2002 >+++ eboard-0.4.3/text.cc Thu Jun 13 20:55:18 2002 >@@ -196,14 +196,14 @@ > 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); >@@ -251,13 +251,13 @@ > } > } > >-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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3699
: 1507 |
1508