X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=ngamelist.c;h=cf937ac1fec6ca99f04aceaf909122930b4aef47;hb=204df43a817c927d4db73f81cd4b4ce5075def6b;hp=649e16baba2e00f04142276c4a901b57f004434d;hpb=74506c0e852b35465c651f331e010ca7e60e7dd3;p=xboard.git diff --git a/ngamelist.c b/ngamelist.c index 649e16b..cf937ac 100644 --- a/ngamelist.c +++ b/ngamelist.c @@ -1,7 +1,7 @@ /* * ngamelist.c -- Game list window, Xt-independent front-end code for XBoard * - * Copyright 1995, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * Copyright 1995, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -195,7 +195,7 @@ GameListPrepare (int byPos, int narrow) lg->position = pos; lg = (ListGame *) lg->node.succ; } -GetTimeMark(&t2);printf("GameListPrepare %ld msec\n", SubtractTimeMarks(&t2,&t)); + if(appData.debugMode) { GetTimeMark(&t2);printf("GameListPrepare %ld msec\n", SubtractTimeMarks(&t2,&t)); } DisplayTitle("XBoard"); *st = NULL; return listLength; @@ -358,7 +358,7 @@ SaveGameListAsText (FILE *f) /* Copy the list into the global memory block */ if( f != NULL ) { - + lg = (ListGame *) gameList.head; for (nItem = 0; nItem < ((ListGame *) gameList.tailPred)->number; nItem++){ @@ -375,4 +375,3 @@ SaveGameListAsText (FILE *f) } return False; } -