X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=pgntags.c;h=d5321723e5fbf86dbc1fa32266270f7294a141d1;hb=5044bd45730eb785494c8a3ffc29cf05ead43068;hp=8a1f6b5da4031192b1f3cf3a6e6c5f4cbc8da73d;hpb=05bc30b15e31c427ce208495a889e9ff36e6642b;p=xboard.git diff --git a/pgntags.c b/pgntags.c index 8a1f6b5..d532172 100644 --- a/pgntags.c +++ b/pgntags.c @@ -1,23 +1,24 @@ /* * pgntags.c -- Functions to manage PGN tags - * XBoard $Id$ + * XBoard $Id: pgntags.c,v 2.1 2003/10/27 19:21:00 mann Exp $ * - * Copyright 1995 Free Software Foundation, Inc. + * Copyright 1995,2009 Free Software Foundation, Inc. * * ------------------------------------------------------------------------ - * This program is free software; you can redistribute it and/or modify + * + * GNU XBoard is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU XBoard is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. + * along with this program. If not, see http://www.gnu.org/licenses/. * + * * ------------------------------------------------------------------------ * * This file could well be a part of backend.c, but I prefer it this @@ -114,6 +115,9 @@ int ParsePGNTag(tag, gameInfo) /* xboard-defined extension */ gameInfo->variant = StringToVariant(value); success = TRUE; + } else if (StrCaseCmp(name, PGN_OUT_OF_BOOK) == 0) { + /* [AS] Out of book annotation */ + success = StrSavePtr(value, &gameInfo->outOfBook) != NULL; } else { if (gameInfo->extraTags == NULL) { oldTags = "";