X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=ngamelist.c;h=d43920b61f2acd06e22af7da369044f6a9c69903;hb=b26b0121f5fae16ac114604a488a4b7afe89e5c9;hp=72529a4281246960c3fe6b03d40e002bf723bb8e;hpb=55fdfba16e54a8c9e770124f4a468956b478e90c;p=xboard.git diff --git a/ngamelist.c b/ngamelist.c index 72529a4..d43920b 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 @@ -244,6 +244,12 @@ GameListPopUp (FILE *fp, char *filename) MarkMenu("View.GameList", GameListDlg); } +FILE * +GameFile () +{ + return glc ? glc->fp : NULL; +} + void GameListDestroy () { @@ -352,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++){ @@ -369,4 +375,3 @@ SaveGameListAsText (FILE *f) } return False; } -