aboutsummaryrefslogtreecommitdiff
path: root/cube.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-11-19 22:03:17 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-11-19 22:03:17 +0100
commit2c8ad86805516211103df1ef7552d882f54748c3 (patch)
treefd3b1927a94c8aea02e6090cb9b441997fd7206d /cube.h
parentbb5abea645a31832e9d6a94cea09714a9b1632e3 (diff)
downloadnissy-core-2c8ad86805516211103df1ef7552d882f54748c3.tar.gz
nissy-core-2c8ad86805516211103df1ef7552d882f54748c3.zip
Removed src cube type, kept only H48 and LST (for now)
Diffstat (limited to 'cube.h')
-rw-r--r--cube.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/cube.h b/cube.h
index 6d701b4..f2d7300 100644
--- a/cube.h
+++ b/cube.h
@@ -86,20 +86,12 @@ Multiple representations of the cube as text are supported:
86 If OUT is the output in SRC format, one can use `cube_t cube = OUT` to 86 If OUT is the output in SRC format, one can use `cube_t cube = OUT` to
87 declare a new cube object. 87 declare a new cube object.
88 88
89- LST: similar to SRC, but only a list of comma-separated numbers is printed. 89- LST: a format for internal use and generating code.
90 90 The cube is printed as a comma-separated list of 20 integers, as they appear
91Not all formats are supported for both reading and writing. More formats 91 in cube_t. Corners come first, followed by edge (unlike H48).
92may be supported in the future.
93******************************************************************************/ 92******************************************************************************/
94 93
95/* Reads a cube from buf in the specified format, and return it.
96 * Supported formats: "H48".
97 */
98cube_t readcube(char *format, char *buf); 94cube_t readcube(char *format, char *buf);
99
100/* Write the given cube to buf in the specified format.
101 * Supported formats: "H48", "SRC", "LST".
102 */
103void writecube(char *format, cube_t cube, char *buf); 95void writecube(char *format, cube_t cube, char *buf);
104 96
105/****************************************************************************** 97/******************************************************************************

Generated with cgit - Back to sebastiano.tronto.net