bug-gnu-chess
[Top][All Lists]
Advanced

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

patches for gnuchess (fwd)


From: mcmahill
Subject: patches for gnuchess (fwd)
Date: Wed, 27 Dec 2000 18:39:52 -0500 (EST)

Hi,

I've fixed a few bugs in gnuchess.   This was for getting the correct
prototypes for some string functions (needed on 64-bit machines like
alpha's) and also a better machine endianness test.  You may want to
autoconf some of this.  This made gnuchesss work on a NetBSD-1.5/alpha
machine.  The endianness change will be required for all non-i386 little
endian machines (vax, mips, alpha, etc).

Thanks!

-Dan

--- book.c.orig Sat Oct 23 06:07:21 1999
+++ book.c      Tue Dec 26 19:07:35 2000
@@ -27,4 +27,5 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #ifdef NEVER
 #ifdef UNIX



--- cmd.c.orig  Sat Oct 23 06:07:32 1999
+++ cmd.c       Tue Dec 26 17:16:44 2000
@@ -27,4 +27,5 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <signal.h>
 #include <unistd.h>


--- search.c.orig       Fri Oct 15 23:51:49 1999
+++ search.c    Tue Dec 26 19:21:00 2000
@@ -29,4 +29,5 @@
 
 #include <stdio.h>
+#include <string.h>
 #include "common.h"
 


--- util.c.orig Fri Oct 15 23:56:56 1999
+++ util.c      Tue Dec 26 19:16:54 2000
@@ -33,4 +33,6 @@
 #include "common.h"
 #include <signal.h>
+#include <sys/types.h>
+#include <machine/endian.h>
 
 inline short leadz (BitBoard b)
@@ -49,5 +51,5 @@
 
    a.bitboard = b;
-#ifdef i386
+#if  (BYTE_ORDER == LITTLE_ENDIAN)
    if (a.v[3] != 0)
       return (lzArray[a.v[3]]);








reply via email to

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