1
--- src/notation.h.old 2001-05-31 19:16:03.000000000 +0200
2
+++ src/notation.h 2003-06-12 03:44:17.000000000 +0200
4
* You should have received a copy of the GNU General Public License
5
* along with this program; if not, write to the Free Software
6
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
8
+ * Changed in 2003 by Sebastian Rittau <srittau@debian.org>
9
+ * for Debian GNU/Linux (bug fixes).
15
/* Standard Algebraic Notation Functions */
16
char * move_to_san (Position *pos, Square from, Square to);
17
-int san_to_move (Position *pos, char *p, Square *from, Square *to);
18
+gboolean san_to_move (Position *pos, char *p, Square *from, Square *to);
22
--- src/notation.c.old 2001-06-28 22:59:39.000000000 +0200
23
+++ src/notation.c 2003-06-12 03:44:01.000000000 +0200
25
* You should have received a copy of the GNU General Public License
26
* along with this program; if not, write to the Free Software
27
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
29
+ * Changed in 2003 by Sebastian Rittau <srittau@debian.org> for
30
+ * Debian GNU/Linux (bug fixes).
38
+ g_assert(*p >= 'a' && *p <= 'h');
39
+ g_assert(*(p + 1) >= '1' && *(p + 1) <= '8');
41
*from = (*p - 'a' + 1) + (*(p + 1) - '1' + 2 ) * 10;
44
+ g_assert(*p >= 'a' && *p <= 'h');
45
+ g_assert(*(p + 1) >= '1' && *(p + 1) <= '8');
47
*to = (*p - 'a' + 1) + (*(p + 1) - '1' + 2 ) * 10;
56
san_to_move (Position *pos, char *str, Square *from, Square *to)
58
Square zugliste[AB_ZUGL];
60
if (!strcmp (p, str)) {
87
if (!strcmp (p, str)) {
105
if (!strcmp(p,str)) {
113
@@ -328,12 +338,12 @@
114
if (!strcmp(p,str)) {