From fd5ddb3db9f50411ca579d84f225f265ca35b56a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 5 Sep 2024 08:53:38 +0200 Subject: Rename constants from _underscore to CAPS --- src/core/io_moves.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/core/io_moves.h') 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 @@ -_static uint8_t readmove(char); -_static uint8_t readmodifier(char); -_static int writemoves(uint8_t *, int, char *); +STATIC uint8_t readmove(char); +STATIC uint8_t readmodifier(char); +STATIC int writemoves(uint8_t *, int, char *); -_static uint8_t +STATIC uint8_t readmove(char c) { switch (c) { case 'U': - return _move_U; + return MOVE_U; case 'D': - return _move_D; + return MOVE_D; case 'R': - return _move_R; + return MOVE_R; case 'L': - return _move_L; + return MOVE_L; case 'F': - return _move_F; + return MOVE_F; case 'B': - return _move_B; + return MOVE_B; default: - return _error; + return UINT8_ERROR; } } -_static uint8_t +STATIC uint8_t readmodifier(char c) { switch (c) { @@ -38,7 +38,7 @@ readmodifier(char c) } } -_static int +STATIC int writemoves(uint8_t *m, int n, char *buf) { int i; -- cgit v1.3