diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 08:53:38 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 08:55:25 +0200 |
| commit | fd5ddb3db9f50411ca579d84f225f265ca35b56a (patch) | |
| tree | b659112cc0e2abd6c7edb08b0938c0d2de4ca066 /src/nissy.c | |
| parent | c9e2d6466e42d6b779ac9ffa7c5ee9a9c7558df8 (diff) | |
| download | nissy-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.c | 8 |
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 *); | 13 | STATIC int parse_h48_options(const char *, uint8_t *, uint8_t *, uint8_t *); |
| 14 | _static int64_t write_result(cube_t, char [static 22]); | 14 | STATIC 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 | 26 | STATIC int |
| 27 | parse_h48_options(const char *buf, uint8_t *h, uint8_t *k, uint8_t *maxdepth) | 27 | parse_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 | 64 | STATIC int64_t |
| 65 | write_result(cube_t cube, char result[static 22]) | 65 | write_result(cube_t cube, char result[static 22]) |
| 66 | { | 66 | { |
| 67 | if (!isconsistent(cube)) { | 67 | if (!isconsistent(cube)) { |
