repo.or.cz
/
rofl0r-openDOW.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2palpic: whitespace cleanup
[rofl0r-openDOW.git]
/
direction.c
blob
3ba0143e51e46163eef3cc27bff1fcc73939919e
1
#include
"direction.h"
2
3
const enum
direction directionbit_direction_lut
[] = {
4
[
DIRB_INVALID
] =
DIR_INVALID
,
5
[
DIRB_N
] =
DIR_N
,
6
[
DIRB_S
] =
DIR_S
,
7
[
DIRB_O
] =
DIR_O
,
8
[
DIRB_W
] =
DIR_W
,
9
[
DIRB_NW
] =
DIR_NW
,
10
[
DIRB_SW
] =
DIR_SW
,
11
[
DIRB_SO
] =
DIR_SO
,
12
[
DIRB_NO
] =
DIR_NO
,
13
};
14
15
const enum
direction_bits direction_directionbit_lut
[] = {
16
[
DIR_INVALID
] =
DIRB_INVALID
,
17
[
DIR_N
] =
DIRB_N
,
18
[
DIR_S
] =
DIRB_S
,
19
[
DIR_O
] =
DIRB_O
,
20
[
DIR_W
] =
DIRB_W
,
21
[
DIR_NW
] =
DIRB_NW
,
22
[
DIR_SW
] =
DIRB_SW
,
23
[
DIR_SO
] =
DIRB_SO
,
24
[
DIR_NO
] =
DIRB_NO
,
25
};