aboutsummaryrefslogtreecommitdiff
path: root/src/core/io_moves.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-09-05 08:53:38 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-09-05 08:55:25 +0200
commitfd5ddb3db9f50411ca579d84f225f265ca35b56a (patch)
treeb659112cc0e2abd6c7edb08b0938c0d2de4ca066 /src/core/io_moves.h
parentc9e2d6466e42d6b779ac9ffa7c5ee9a9c7558df8 (diff)
downloadnissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.tar.gz
nissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.zip
Rename constants from _underscore to CAPS
Diffstat (limited to 'src/core/io_moves.h')
-rw-r--r--src/core/io_moves.h26
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); 1STATIC uint8_t readmove(char);
2_static uint8_t readmodifier(char); 2STATIC uint8_t readmodifier(char);
3_static int writemoves(uint8_t *, int, char *); 3STATIC int writemoves(uint8_t *, int, char *);
4 4
5_static uint8_t 5STATIC uint8_t
6readmove(char c) 6readmove(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 26STATIC uint8_t
27readmodifier(char c) 27readmodifier(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 41STATIC int
42writemoves(uint8_t *m, int n, char *buf) 42writemoves(uint8_t *m, int n, char *buf)
43{ 43{
44 int i; 44 int i;

Generated with cgit - Back to sebastiano.tronto.net