bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Predefined boards - Windows build 021130


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Predefined boards - Windows build 021130
Date: Sun, 1 Dec 2002 09:14:35 +0000
User-agent: Mutt/1.4i

On Sun, Dec 01, 2002 at 01:24:26AM +0100, Nardy Pillards wrote
> 
> This code in gtkprefs.c now:
> 
>   pch = sz = g_strdup ( pbdeSelected->szBoardDesign );
>   printf ( "board design: '%s'\n", pch);
>   while( ParseKeyValue( &sz, apch ) ) {
>     BoardPreferencesParam( &bd, apch[ 0 ], apch[ 1 ] );
>     printf ( "'%s' = '%s'\n", apch[ 0 ], apch[ 1 ] );
>   }
>   g_free ( pch );
> 
> (and -mwindows added to have the DOS-window while gnubg running)
> 
> result:
> board design: '
>       '
> (no other lines)

Hmm, well, at least that explains why you get all zeroes. The board
design string should have been the 16 lines from the <design> tag.

The next change:

Add the output line below in ScanCharacters line 1938 in gtkprefs.c:

  parsecontext *ppc = pv;
  char *sz = g_strndup ( pchIn, cch );

  outputf ( "Scan: %d %d '%s'\n", cch, ppc->aps[ ppc->ips ], sz );

  switch ( ppc->aps[ ppc->ips ] ) {

I've a feeling why might be wrong.

Jørn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]