diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-04 14:29:00 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-04 14:29:00 +0200 |
| commit | 283effb16646112ee9c6bba57e021e80f322b29f (patch) | |
| tree | 3c0ad588e550f86df21687e82a17e9f1f60443be /test/090_tables_readwrite | |
| parent | fc150adaf3bff133da0e59d842f13b7b21297fc0 (diff) | |
| download | nissy-core-283effb16646112ee9c6bba57e021e80f322b29f.tar.gz nissy-core-283effb16646112ee9c6bba57e021e80f322b29f.zip | |
Avoid repeating typedefs in tests
Diffstat (limited to 'test/090_tables_readwrite')
| -rw-r--r-- | test/090_tables_readwrite/tables_readwrite_tests.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/090_tables_readwrite/tables_readwrite_tests.c b/test/090_tables_readwrite/tables_readwrite_tests.c index 73c4e21..9238207 100644 --- a/test/090_tables_readwrite/tables_readwrite_tests.c +++ b/test/090_tables_readwrite/tables_readwrite_tests.c | |||
| @@ -1,25 +1,5 @@ | |||
| 1 | #include "../test.h" | 1 | #include "../test.h" |
| 2 | 2 | ||
| 3 | #define INFOSIZE 512 | ||
| 4 | #define INFO_SOLVER_STRLEN 100 | ||
| 5 | #define INFO_DISTRIBUTION_LEN 21 | ||
| 6 | |||
| 7 | typedef struct { | ||
| 8 | uint64_t distribution[INFO_DISTRIBUTION_LEN]; | ||
| 9 | uint64_t type; | ||
| 10 | uint64_t infosize; | ||
| 11 | uint64_t fullsize; | ||
| 12 | uint64_t hash; | ||
| 13 | uint64_t entries; | ||
| 14 | uint64_t classes; | ||
| 15 | uint64_t next; | ||
| 16 | char solver[INFO_SOLVER_STRLEN]; | ||
| 17 | uint8_t h48h; | ||
| 18 | uint8_t bits; | ||
| 19 | uint8_t base; | ||
| 20 | uint8_t maxvalue; | ||
| 21 | } tableinfo_t; | ||
| 22 | |||
| 23 | bool readtableinfo(const void *, tableinfo_t *); | 3 | bool readtableinfo(const void *, tableinfo_t *); |
| 24 | bool writetableinfo(const tableinfo_t *, void *); | 4 | bool writetableinfo(const tableinfo_t *, void *); |
| 25 | 5 | ||
