aboutsummaryrefslogtreecommitdiff
path: root/src/core/io_moves.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-08-18 14:26:45 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-08-18 14:26:45 +0200
commit18c9a8b8905304cf5f8fc15825769046a3144866 (patch)
treea7807bb32b0a5d9ded7d3cedccc598f64a9b00fe /src/core/io_moves.h
parentf25a10e19eca294c4e6a99e4f80ce5cfd11a0e5f (diff)
downloadnissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.tar.gz
nissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.zip
Reorganized folder structure
Diffstat (limited to '')
-rw-r--r--src/core/io_moves.h (renamed from src/io_move_trans.h)25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/io_move_trans.h b/src/core/io_moves.h
index cfeb93c..eb6290e 100644
--- a/src/io_move_trans.h
+++ b/src/core/io_moves.h
@@ -1,8 +1,6 @@
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 uint8_t readtrans(const char *);
4_static int writemoves(uint8_t *, int, char *); 3_static int writemoves(uint8_t *, int, char *);
5_static void writetrans(uint8_t, char *);
6 4
7_static uint8_t 5_static uint8_t
8readmove(char c) 6readmove(char c)
@@ -40,19 +38,6 @@ readmodifier(char c)
40 } 38 }
41} 39}
42 40
43_static uint8_t
44readtrans(const char *buf)
45{
46 uint8_t t;
47
48 for (t = 0; t < 48; t++)
49 if (!strncmp(buf, transstr[t], 11))
50 return t;
51
52 LOG("readtrans error\n");
53 return _error;
54}
55
56_static int 41_static int
57writemoves(uint8_t *m, int n, char *buf) 42writemoves(uint8_t *m, int n, char *buf)
58{ 43{
@@ -75,13 +60,3 @@ writemoves(uint8_t *m, int n, char *buf)
75 60
76 return b - buf; 61 return b - buf;
77} 62}
78
79_static void
80writetrans(uint8_t t, char *buf)
81{
82 if (t >= 48)
83 memcpy(buf, "error trans", 11);
84 else
85 memcpy(buf, transstr[t], 11);
86 buf[11] = '\0';
87}

Generated with cgit - Back to sebastiano.tronto.net