[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] compile error: gnubg.c no-gui Win32
From: |
Nardy Pillards |
Subject: |
Re: [Bug-gnubg] compile error: gnubg.c no-gui Win32 |
Date: |
Tue, 02 Dec 2003 14:43:27 +0100 |
On 2 Dec 2003 at 1:39, Nardy Pillards wrote:
> On 30 Nov 2003 at 15:09, Nardy Pillards wrote:
>
> > gnubg.c: In function `HintChequer':
> > gnubg.c:3997: `pmr' undeclared (first use in this function)
> > gnubg.c:3997: (Each undeclared identifier is reported only once
> > gnubg.c:3997: for each function it appears in.) gnubg.c:4000:
> > `anMove' undeclared (first use in this function)
> >
> > (with GTK compiles fine)
> >
gnubg.c 3987 e.a. ....
Is it OK to change (for the no-gui to get build):
-----
#if USE_GTK
if ( fX && GTKGetMove( anMove ) ) {
/* we have a legal move in the GUI */
/* Note that we override the move from the movelist */
MoveKey ( ms.anBoard, anMove, auch );
fHasMoved = TRUE;
}
#endif /* ! USE_GTK */
if ( !fHasMoved && plLastMove && ( pmr = plLastMove->plNext->p ) &&
pmr->mt == MOVE_NORMAL ) {
/* we have an old stored move */
memcpy( anMove, pmr->n.anMove, sizeof anMove );
MoveKey( ms.anBoard, anMove, auch );
fHasMoved = TRUE;
}
-----
so it reads:
-----
#if USE_GTK
if ( fX && GTKGetMove( anMove ) ) {
/* we have a legal move in the GUI */
/* Note that we override the move from the movelist */
MoveKey ( ms.anBoard, anMove, auch );
fHasMoved = TRUE;
}
if ( !fHasMoved && plLastMove && ( pmr = plLastMove->plNext->p ) &&
pmr->mt == MOVE_NORMAL ) {
/* we have an old stored move */
memcpy( anMove, pmr->n.anMove, sizeof anMove );
MoveKey( ms.anBoard, anMove, auch );
fHasMoved = TRUE;
}
#endif /* ! USE_GTK */
-----
????
Nardy