12 static char stone2char(enum stone s
);
13 char *stone2str(enum stone s
); /* static string */
14 enum stone
str2stone(char *str
);
16 static enum stone
stone_other(enum stone s
);
20 stone2char(enum stone s
)
25 /* Curiously, gcc is reluctant to inline this; I have cofirmed
26 * there is performance benefit. */
27 static inline enum stone
__attribute__((always_inline
))
28 stone_other(enum stone s
)
30 static const enum stone o
[S_MAX
] = { S_NONE
, S_WHITE
, S_BLACK
, S_OFFBOARD
};