X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fmakepattern.c;h=0d510d929cf833a8203667d8c7c8a48b58244019;hb=68c554411d120d163045f77a80ad9009f7a73841;hp=34053d8d43039fae00da2c8e94d65ba9c9c9e844;hpb=fd2d3b3b66801eba904e700842604033c9af8c23;p=gnushogi.git diff --git a/gnushogi/makepattern.c b/gnushogi/makepattern.c index 34053d8..0d510d9 100644 --- a/gnushogi/makepattern.c +++ b/gnushogi/makepattern.c @@ -4,6 +4,7 @@ * ---------------------------------------------------------------------- * Copyright (c) 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation + * Copyright (c) 2008, 2013, 2014 Yann Dirson and the Free Software Foundation * * GNU SHOGI is based on GNU CHESS * @@ -36,7 +37,7 @@ #define MAX_OPENING_SEQUENCE 20 #define MAX_PATTERN 200 -char *patternfile = PATTERNFILE; +static char *patternfile = PATTERNFILE; small_short pattern_data[MAX_PATTERN_DATA]; /* minimal ShowMessage to avoid dependency on extraneous display code */ @@ -188,7 +189,6 @@ ScanPattern (char *s, short *pindex) void ReadOpeningSequences (short *pindex) - { FILE *fd; char s[256];