diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-25 18:35:47 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-25 18:35:47 +0100 |
| commit | 56048d13b73ec6e6a9c59d62e82f41e69a3994bd (patch) | |
| tree | 49fc5d50e739a399897425756c08a73ba5924ddb /test | |
| parent | 0f4931c8de298b0f97aba1757c9538f48adb30c6 (diff) | |
| download | nissy-core-56048d13b73ec6e6a9c59d62e82f41e69a3994bd.tar.gz nissy-core-56048d13b73ec6e6a9c59d62e82f41e69a3994bd.zip | |
More safety with pointers using VLA function parameters
Diffstat (limited to '')
| -rw-r--r-- | test/111_h48map/h48map_tests.c | 10 | ||||
| -rw-r--r-- | test/112_gendata_h48short/gendata_h48short_tests.c | 8 | ||||
| -rw-r--r-- | test/test.h | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/test/111_h48map/h48map_tests.c b/test/111_h48map/h48map_tests.c index 7fdfb3d..927b157 100644 --- a/test/111_h48map/h48map_tests.c +++ b/test/111_h48map/h48map_tests.c | |||
| @@ -2,11 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | #define MAXPOS 1000 | 3 | #define MAXPOS 1000 |
| 4 | 4 | ||
| 5 | void h48map_create(h48map_t *, uint64_t, uint64_t); | 5 | void h48map_create(h48map_t [static 1], uint64_t, uint64_t); |
| 6 | void h48map_destroy(h48map_t *); | 6 | void h48map_destroy(h48map_t [static 1]); |
| 7 | void h48map_insertmin(h48map_t *, uint64_t, uint64_t); | 7 | void h48map_insertmin(h48map_t [static 1], uint64_t, uint64_t); |
| 8 | uint64_t h48map_value(h48map_t *, uint64_t); | 8 | uint64_t h48map_value(h48map_t [static 1], uint64_t); |
| 9 | kvpair_t h48map_nextkvpair(h48map_t *, uint64_t *); | 9 | kvpair_t h48map_nextkvpair(h48map_t [static 1], uint64_t [static 1]); |
| 10 | 10 | ||
| 11 | char str[STRLENMAX]; | 11 | char str[STRLENMAX]; |
| 12 | 12 | ||
diff --git a/test/112_gendata_h48short/gendata_h48short_tests.c b/test/112_gendata_h48short/gendata_h48short_tests.c index b6ff00e..2ed42c1 100644 --- a/test/112_gendata_h48short/gendata_h48short_tests.c +++ b/test/112_gendata_h48short/gendata_h48short_tests.c | |||
| @@ -2,11 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | #define MAXPOS 200 | 3 | #define MAXPOS 200 |
| 4 | 4 | ||
| 5 | void h48map_create(h48map_t *, uint64_t, uint64_t); | 5 | void h48map_create(h48map_t [static 1], uint64_t, uint64_t); |
| 6 | void h48map_destroy(h48map_t *); | 6 | void h48map_destroy(h48map_t [static 1]); |
| 7 | kvpair_t h48map_nextkvpair(h48map_t *, uint64_t *); | 7 | kvpair_t h48map_nextkvpair(h48map_t [static 1], uint64_t [static 1]); |
| 8 | size_t gendata_cocsep(void *, uint64_t *, cube_t *); | 8 | size_t gendata_cocsep(void *, uint64_t *, cube_t *); |
| 9 | uint64_t gendata_h48short(gendata_h48short_arg_t *); | 9 | uint64_t gendata_h48short(gendata_h48short_arg_t [static 1]); |
| 10 | 10 | ||
| 11 | char str[STRLENMAX]; | 11 | char str[STRLENMAX]; |
| 12 | 12 | ||
diff --git a/test/test.h b/test/test.h index 8c117cb..e753977 100644 --- a/test/test.h +++ b/test/test.h | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | #include "../src/arch/arch.h" | 12 | #include "../src/arch/arch.h" |
| 13 | #include "../src/solvers/solutions_types_macros.h" | 13 | #include "../src/solvers/solutions_types_macros.h" |
| 14 | #include "../src/solvers/tables_types_macros.h" | 14 | #include "../src/solvers/tables_types_macros.h" |
| 15 | #include "../src/solvers/h48/coordinate_macros.h" | 15 | #include "../src/solvers/h48/coordinate_types_macros.h" |
| 16 | #include "../src/solvers/h48/map_types_macros.h" | 16 | #include "../src/solvers/h48/map_types_macros.h" |
| 17 | #include "../src/solvers/h48/gendata_types_macros.h" | 17 | #include "../src/solvers/h48/gendata_types_macros.h" |
| 18 | #include "../src/solvers/coord/types_macros.h" | 18 | #include "../src/solvers/coord/types_macros.h" |
