~ubuntu-branches/debian/sid/gnome-chess/sid

« back to all changes in this revision

Viewing changes to src/makros.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2005-09-04 18:16:43 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050904181643-qfph33u3pa4azz5h
Tags: 0.3.3-6
* Fix problems with gcc 4.0:
  + debian/patches/021-gcc-4.0-fixes.diff: New patch.
  + Closes: #258798 "FTBFS with gcc-3.4: label at end of compound statement"
* Fix wrong Debian patch:
  + debian/patch/019-assertions.diff: Fixed.
  + Partly addresses bug #247846 "Crashes after a few moves (assertion
    failed)". This fix is not perfect. As Göran Weinholt notes in the
    bug report, assertions are not the way to go, but are a temporary
    stop-gap measure. (Better assertions than unpredicable results.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
typedef gushort Square;
31
31
typedef gchar   Piece;
32
32
 
 
33
typedef enum {
 
34
        GAME_NONE,          /*  No game                */
 
35
        GAME_PAUSED,        /*  Game is paused         */
 
36
        GAME_PROGRESS,      /*  Game is in progress    */
 
37
        GAME_ABORTED,       /*  Game was aborted       */
 
38
        GAME_WHITE,         /*  White won the game     */
 
39
        GAME_BLACK,         /*  Black won the game     */
 
40
        GAME_DRAW           /*  Draw                   */
 
41
} GameResult;
 
42
 
33
43
/* Various empty defines */
34
 
#define NONE            0
35
44
 
36
45
/* Generated movelist */
37
46
#define AB_ZUGL         512     /*  Length of list generated moves      */
38
47
#define AB_ZUG_S        256     /*  Beginning of generated capture moves*/
39
48
 
40
49
/* Colours */
41
 
#define WHITE           1       /*  White to Move                       */
42
 
#define BLACK           129     /*  Black to move                       */
 
50
#define NONE            0       /*  No one                      */
 
51
#define WHITE           1       /*  White                       */
 
52
#define BLACK           129     /*  Black                       */
43
53
 
44
54
/* Notation types */
45
55
#define SAN             0       /*  Standard algebraic notation         */
46
56
#define COORD           1       /*  Coordinate notation                 */
47
57
 
48
 
/* Game results */
49
 
#define GAME_NONE       0       /*  No game                             */
50
 
#define GAME_PAUSED     1       /*  Game is paused                      */
51
 
#define GAME_PROGRESS   2       /*  Game is in progress                 */
52
 
#define GAME_ABORTED    3       /*  Game was aborted                    */
53
 
#define GAME_WHITE      4       /*  White won the game                  */
54
 
#define GAME_BLACK      5       /*  Black won the game                  */
55
 
#define GAME_DRAW       6       /*  Draw                                */
56
 
 
57
 
/* Board window modes */
58
 
#define COMPUTER_BLACK  1
59
 
#define COMPUTER_WHITE  2
60
 
#define AUTOPLAY        3
61
 
#define ANALYSE         4
62
 
#define HUMANS          5
63
 
 
64
58
#define PIECE_SIZE 40
65
59
 
66
60
#define  OL            9     /********************************************/
103
97
#define WPIECE(c) ((c) & 32)   /* white piece? */
104
98
#define BPIECE(c) ((c) & 64)   /* black piece? */
105
99
 
 
100
#define IS_PROMOTION(c) ((c) & 128) /* promotion encoded? */
 
101
 
106
102
/****************************************************************/
107
103
/*                      Squares                                 */
108
104
/****************************************************************/