X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fmakepattern.c;h=0d510d929cf833a8203667d8c7c8a48b58244019;hb=68c554411d120d163045f77a80ad9009f7a73841;hp=067c75868fe6fe36974a9c7a3fee18e3baf0851d;hpb=485ee905dd57ee67179c013ccd113935f5d6667f;p=gnushogi.git diff --git a/gnushogi/makepattern.c b/gnushogi/makepattern.c index 067c758..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,15 @@ #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 */ +void +ShowMessage(char *s) +{ + printf("%s\n", s); +} #define is_digit(c) (((c) >= '0') && ((c) <= '9')) #define is_alpha(c) ((((c) >= 'a') && ((c) <= 'z')) \ @@ -180,7 +189,6 @@ ScanPattern (char *s, short *pindex) void ReadOpeningSequences (short *pindex) - { FILE *fd; char s[256];