diff options
Diffstat (limited to 'src/core/io_moves.h')
| -rw-r--r-- | src/core/io_moves.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/core/io_moves.h b/src/core/io_moves.h index eb6290e..a49a38b 100644 --- a/src/core/io_moves.h +++ b/src/core/io_moves.h | |||
| @@ -1,29 +1,29 @@ | |||
| 1 | _static uint8_t readmove(char); | 1 | STATIC uint8_t readmove(char); |
| 2 | _static uint8_t readmodifier(char); | 2 | STATIC uint8_t readmodifier(char); |
| 3 | _static int writemoves(uint8_t *, int, char *); | 3 | STATIC int writemoves(uint8_t *, int, char *); |
| 4 | 4 | ||
| 5 | _static uint8_t | 5 | STATIC uint8_t |
| 6 | readmove(char c) | 6 | readmove(char c) |
| 7 | { | 7 | { |
| 8 | switch (c) { | 8 | switch (c) { |
| 9 | case 'U': | 9 | case 'U': |
| 10 | return _move_U; | 10 | return MOVE_U; |
| 11 | case 'D': | 11 | case 'D': |
| 12 | return _move_D; | 12 | return MOVE_D; |
| 13 | case 'R': | 13 | case 'R': |
| 14 | return _move_R; | 14 | return MOVE_R; |
| 15 | case 'L': | 15 | case 'L': |
| 16 | return _move_L; | 16 | return MOVE_L; |
| 17 | case 'F': | 17 | case 'F': |
| 18 | return _move_F; | 18 | return MOVE_F; |
| 19 | case 'B': | 19 | case 'B': |
| 20 | return _move_B; | 20 | return MOVE_B; |
| 21 | default: | 21 | default: |
| 22 | return _error; | 22 | return UINT8_ERROR; |
| 23 | } | 23 | } |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | _static uint8_t | 26 | STATIC uint8_t |
| 27 | readmodifier(char c) | 27 | readmodifier(char c) |
| 28 | { | 28 | { |
| 29 | switch (c) { | 29 | switch (c) { |
| @@ -38,7 +38,7 @@ readmodifier(char c) | |||
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | _static int | 41 | STATIC int |
| 42 | writemoves(uint8_t *m, int n, char *buf) | 42 | writemoves(uint8_t *m, int n, char *buf) |
| 43 | { | 43 | { |
| 44 | int i; | 44 | int i; |
