Go to the source code of this file.
|
#define | foreach_empty(empty, list) for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) |
|
#define | foreach_even_empty(empty, list, parity) for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) if ((parity & empty->quadrant) == 0) |
|
#define | foreach_odd_empty(empty, list, parity) for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) if (parity & empty->quadrant) |
|
List of empty squares.
- Date
- 1998 - 2017
- Author
- Richard Delorme
- Version
- 4.4
◆ foreach_empty
#define foreach_empty |
( |
|
empty, |
|
|
|
list |
|
) |
| for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) |
Loop over all empty squares
◆ foreach_even_empty
#define foreach_even_empty |
( |
|
empty, |
|
|
|
list, |
|
|
|
parity |
|
) |
| for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) if ((parity & empty->quadrant) == 0) |
Loop over all empty squares on even quadrants
◆ foreach_odd_empty
#define foreach_odd_empty |
( |
|
empty, |
|
|
|
list, |
|
|
|
parity |
|
) |
| for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) if (parity & empty->quadrant) |
Loop over all empty squares on odd quadrants
◆ SquareList
double linked list of squares
◆ empty_remove()
remove an empty square from the list.
- Parameters
-
◆ empty_restore()
restore the list of empty squares
- Parameters
-