aboutsummaryrefslogtreecommitdiff
path: root/src/nissy.c
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/nissy.c
parentc9e2d6466e42d6b779ac9ffa7c5ee9a9c7558df8 (diff)
downloadnissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.tar.gz
nissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.zip
Rename constants from _underscore to CAPS
Diffstat (limited to 'src/nissy.c')
-rw-r--r--src/nissy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nissy.c b/src/nissy.c
index f8c1f4d..ac9a92c 100644
--- a/src/nissy.c
+++ b/src/nissy.c
@@ -10,8 +10,8 @@
10 10
11#include "nissy.h" 11#include "nissy.h"
12 12
13_static int parse_h48_options(const char *, uint8_t *, uint8_t *, uint8_t *); 13STATIC int parse_h48_options(const char *, uint8_t *, uint8_t *, uint8_t *);
14_static int64_t write_result(cube_t, char [static 22]); 14STATIC int64_t write_result(cube_t, char [static 22]);
15 15
16/* TODO: add option to get DR, maybe C-only, E-only, eo... */ 16/* TODO: add option to get DR, maybe C-only, E-only, eo... */
17#define GETCUBE_OPTIONS(S, F) { .option = S, .fix = F } 17#define GETCUBE_OPTIONS(S, F) { .option = S, .fix = F }
@@ -23,7 +23,7 @@ struct {
23 GETCUBE_OPTIONS(NULL, NULL) 23 GETCUBE_OPTIONS(NULL, NULL)
24}; 24};
25 25
26_static int 26STATIC int
27parse_h48_options(const char *buf, uint8_t *h, uint8_t *k, uint8_t *maxdepth) 27parse_h48_options(const char *buf, uint8_t *h, uint8_t *k, uint8_t *maxdepth)
28{ 28{
29 bool h_valid, k_valid, maxdepth_valid; 29 bool h_valid, k_valid, maxdepth_valid;
@@ -61,7 +61,7 @@ parse_h48_options_error:
61 return -1; 61 return -1;
62} 62}
63 63
64_static int64_t 64STATIC int64_t
65write_result(cube_t cube, char result[static 22]) 65write_result(cube_t cube, char result[static 22])
66{ 66{
67 if (!isconsistent(cube)) { 67 if (!isconsistent(cube)) {

Generated with cgit - Back to sebastiano.tronto.net