138 |
139 |
139 /* secure versions - use, if index is not checked with isidx() */ |
140 /* secure versions - use, if index is not checked with isidx() */ |
140 #define fileidx_s(c) (isfile(c)?fileidx(c):POS_UNSPECIFIED) |
141 #define fileidx_s(c) (isfile(c)?fileidx(c):POS_UNSPECIFIED) |
141 #define rowidx_s(c) (isrow(c)?rowidx(c):POS_UNSPECIFIED) |
142 #define rowidx_s(c) (isrow(c)?rowidx(c):POS_UNSPECIFIED) |
142 |
143 |
|
144 /** |
|
145 * Cleans up a game state and frees the memory for the movement list. |
|
146 * @param gamestate the game state to clean up |
|
147 */ |
143 void gamestate_cleanup(GameState *gamestate); |
148 void gamestate_cleanup(GameState *gamestate); |
144 |
149 |
145 /** |
150 /** |
146 * Maps a character to a piece. |
151 * Maps a character to a piece. |
147 * |
152 * |